Typing in Devnagri/Hindi/Marathi in Linux

I would like to explain how to type in Devnagri (Hindi, Marathi, Sanskrit, etc) using the Wx layout of the keyboard under Linux. The keyboard layout is based on Sanskrit language.

WxLayout

WxLayout

First of all lets see how to type normal mulakshar
क ख ग घ ङ ( k K g G f) So to type use the letter k, use K and so on.
च छ ज झ ञ (c C j J F)
ट ठ ड ढ ण (t T d D N)
त थ द ध न (w W x X n)
प फ ब भ म (p P b B m)
य र ल व श (y r l v S)
स ष ह (s R h)
(right alt + l)
क्ष (k + a + (shift + r)) (use ‘a’ to create jod-akshar)
त्र (w + a + r)
ज्ञ (j + a + (shift + f))

How to type vowels?
अ आ इ ई
Here one has to use combination of keys. The right alt key is the special key which is always used to type the vowels.
To type , use (right alt + a)
To type, use (right alt + shift + a)
(right alt + i)
(right alt + shift + i)
(right alt + u)
(right alt + shift + u)
(right alt + e)
(right alt + shift + e)
(right alt + o)
(right alt + shift + o)
अं (Type and then add ं (shift + m)) (There should be no space after )
अः (Type and then add ः (shift + h))

Below are the vowels mostly used in Sanskrit.
(right alt + q)
(right alt + shift + q)
(right alt + shift + l)

How to type barakhadi?
You just have to combine the above mulakshar with the vowels.

क का कि की कु कू के कै को कौ कं कः
k
का (k + (shift + a))
कि (k + i)
की (k + (shift + i))
कु (k + u)
कू (k + (shift + u))
के (k + e)
कै (k + (shift + e))
को (k + o)
कौ (k + (shift + o))
कं (k + (shift + m))
कः (k + (shift + h))

कृ (k + q)
कॄ (k + (shift + q))
कॢ (k + (shift + l))

Special characters

अँ ( + z)
श्र ((shift + s) + a + r )
AUM (shift + right alt + z)
avagraha (right alt + z)

Example of words:
रमेश (r+m+e+S)
कृष्ण (k+q+R+a+N)

The above knowledge should be enough for one to start using Devnagri/Hindi/Marathi script on computer in Linux.

How to get अॅ or any other Unicode character not specified in the keymap. Click Here for complete Unicode chart of Devnagri.

Below is the way to get the required Unicode in Linux
ctrl + shift + u you will get u (You need to be in English keyboard layout)
release your fingers and type the Unicode number u0945
press spacebar and you will get

The above is the temp way of doing it. Permanent way of doing is to edit the symbol file.
sudo vim /usr/share/X11/xkb/symbols/in (You need root permission to edit)
Find your corresponding layout, in my case wx, edit one of the keys which you wont use.
I edited the tilde key, below is the edited keymap.

// key {      [     grave, asciitilde, 2, 3    ]     };

key {       [     grave, asciitilde, 0x1000945, 3    ]     };

New Keymap (Look at the ~(tilde) key)

New Keymap (Look at the ~(tilde) key)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s