the Linux - Ubunto logo depicted under water

How to Type in Hindi in Linux – Ubuntu

Christoph DusenberyHindi Language, Technology Leave a Comment

Overview

Note: This post was written using Linux - Ubuntu (22.04.2).

When setting out to write this post, I had been aware of Linux for some thirty years but had never really tried it on any of my computers. To my mind, Linux was the highly customizable OS used by highly savvy users. So I was pleasantly surprised by how very user friendly it is. Additionally, it seems to beat out Windows 11 when it comes to typing in Hindi!

Logo of Linux - Ubuntu
Linux is available in various "distributions" and for this post I used Ubuntu. The following is a guide for how to type in Hindi when running Ubuntu. If you’re using a Mac, check out my post on How to Type in Hindi on a Mac and if you're using Windows 11, you can read How to Type in Hindi in Windows 11.

Typing in Roman Transliteration

Are you looking for a way to type Hindi in Roman transliteration? Check out my page on how to type Hindi-Urdu words in Roman.

#1 - Add Hindi in Settings

Linux - Keyboard Settings
Linux - Add an inpur source
  1. Click on the Show Applications button and select the gear icon to open Settings.
  2. Select Keyboard (near the middle of the list on the left-hand side).
  3. Under Input Sources, click on the + symbol.
  4. Click on Other and then the system should generate a long list of languages and their various keyboards.
  5. Scroll down to find the Hindi keyboards (it's alphabetical). Highlight one of the three options, such as Hindi (KaGaPa, phonetic) and then click Add.
  6. You should see that Hindi (KaGaPa, phonetic) is added to your list of Input Sources.
Linux - adding a Hindi keyboard
Linux - Keyboard Settings

#2 - Switching Languages

After adding Hindi in Settings, you'll have a few different ways of switching between languages.

Using the System Tray

Look for the language button on the right side of your system tray (usually at the top right-hand corner of your screen). It should display the current input language, such as en for English and hi for Hindi. Click on it and select Hindi (KaGaPa, phonetic) from the menu.

Linux - Switching Languages

Using a Keyboard Shortcut

You can also switch languages quickly using the keyboard shortcut Super Key + Space. This will allow you to quickly cycle through the installed keyboards.

If you want to change that shortcut, you can find it and modify by doing the following:

  1. Go to Settings.
  2. Select Keyboard.
  3. At the bottom, there's a section called Keyboard Shortcuts. In that section, click on View and Customize Shortcuts.
  4. From the list of Keyboard Shortcuts, select Typing.
  5. Click on Switch to next input source and then enter whatever keyboard shortcut you prefer. If you wish, you can also change the shortcut for Switch to previous input source, which is especially helpful if you have three or more keyboards installed.
Linux - Keyboard Shortcuts
Linux - Keyboard Shortcuts - Switch to next input source

#3 - Hindi Keyboard Layouts

In the above instructions we added the keyboard Hindi (KaGaPa, phonetic), but that's not the only option. In the build of Ubuntu I'm currently using (22.04.02), it also gives me the option to add Hindi (Bolnagri) or Hindi (Wx) for a total of three Hindi keyboard options.

All three options are relatively phonetic and quite similar to the Hindi - QWERTY keyboard I use on Mac OS (which is my personal favorite). All three of them use the shift and the "super key" (i.e. the Windows key in Windows or the "option" key on a Mac) to cover all of the Devanagari characters.

The differences among the three seem to be in how to type the characters which don't easily correspond to English letters like ऋ or ष, and other retroflex consonants like ट, ठ, ड and ढ. There's also a difference in how they handle typing conjunct consonants. To stop the inherent अ, type the F key with Hindi (KaGaPa, phonetic), the C key with Hindi (Bolnagri), and the A key with Hindi (Wx).

Here are images of the keyboard layouts of all three options.

Hindi (KaGaPa, phonetic)
Linux - Keyboard - Hindi (KaGaPa, phonetic)
Hindi (Bolnagri)
Linux - Keyboard - Hindi (Bolnagri)
Hindi (Wx)
Linux - Keyboard - Hindi (Wx)

#4 - Typing in Hindi

Once you’ve switched to one of the Hindi keyboards, you can start typing in Devanāgarī. When you're first starting, you should refer to the Keyboard Layout image for whichever keyboard you're using. To access that image, do the following:

  1. Go back to Settings → Keyboard.
  2. Click on the drop-down menu next to the keyboard you're using.
  3. Select View Keyboard Layout.
  4. The image of the layout should appear.
Linux - View Keyboard Layout

Unlike the in-built keyboard viewers in Mac OS and Windows 11, this is just an image. In other words, you can't click on the different keys—you can only use it as a reference while you're learning the layout.

Try typing in Hindi using one of the built-in word processors (like Text Editor or LibreOffice Writer). As you can see in the image below, it can be helpful to have the keyboard layout image right above (or below) the word processor.

Linux - Typing in Hindi in LibreOffice

Where Can You Type in Hindi?

You can type in Hindi anywhere within Linux - Ubuntu as long as the application supports Unicode text input. This includes:

Text Editors: Text Editor, LibreOffice Writer, etc.

Web Browsers: FireFox, etc.

Email Clients: Thunderbird Mail, etc.

Most modern applications support Unicode, so you should have no trouble typing in Hindi across various platforms and applications.

By following these steps, you’ll be able to type in Hindi on your Linux - Ubuntu computer.

Hindi Fonts

Want to try Hindi fonts other than the system defaults? Head over to my Hindi Fonts page and explore a wide range of fonts available for free download.

Leave a Reply

Your email address will not be published. Required fields are marked *