An Input Method for Malayalam
(This document is still in _DRAFT_ state)
This input is based on the Malayalam Inscript keyboard layout.
and Malayalam unicode character set.
This is the standared keyboard layout proposed by Kerala government.
This layout will be default in the GNU/Linux with Malayalam support.
Though now it requires X Window System and best support is available in GNOME.
Inputting Malaylam numerals and other old characters are described below.
First of all download the following files :
Inscript Keyboard layout is available here.
Add the font to your personal font directory (you need not be a
A detailed description for installing font is available here.
For the time being just do like this :
bash$ cp nonstdml.ttf $HOME/personal-fonts/
(If the directory is not existing just create it)
Now, add an entry to $HOME/personal-fonts/fonts.dir like :
(this is the entry for the font available here)
A sample fonts.dir file is here.
To add this font directory to X font path :
bash$ cd $HOME/personal-fonts
bash$ xset fp+ `pwd`
bash$ xset fp rehash
Now copy the XKB file to /usr/X11R6/lib/X11/xkb/symbols/ (login as root)
bash# cp ml /usr/X11R6/lib/X11/xkb/symbols/
Now, compile Malayalam locale (login as root)
Copy the locale to /usr/share/i18n/locales/
bash# cp ml_IN /usr/share/i18n/locales/
bash# localedef -i ml_IN -f UTF-8 /usr/share/locale/ml_IN.UTF-8/
Then, copy the Compose file to
bash# cp Compose /usr/X11R6/lib/X11/locale/ml_IN.UTF-8/
( If directory not existing, just create it)
Open the file /usr/X11R6/lib/X11/locale/compose.dir
and add these two entries at appropriate positions :
(Be carefull, the second line has a colon in between)
A sample compose.dir file is here.
Before that change the locale :
bash$ export LC_ALL=ml_IN.UTF-8
(Add this entry to $HOME/.bashrc for conveniance)
Run the shell script to select the keyboard layout.
bash$ ./ml_setkb basic
(option basic is required, other option is 'mlplusnum' to include
malayalm numerals in the shift locations of indo-arabic numerals)
To input someting select X Input Method (right click in
GEdit)press both shift, now you are swithed to Malayalam mode
now start typing.
To input any "Koottaksharas" press the consonant (vyanchanam)
visarga (chandrakkala) and again the consonant. If you are
inputing in correct order proper rendering will occur.
Inputting Malayalm old charcters
Suppose you want to input Malayalam vocalic LL
just do like this :
bash$ xmodmap -e "keycode 33 = U0D0C"
Keycode 33 is 'w' so by pressing 'w' you will get
the desired unicode value. Unicode values of old character are given below :
Note : Sorting order for these characters are not included
Please report any bug at firstname.lastname@example.org
Copyright (C) 2002 SMC Project Team
Verbatim copying and distribution of this entire article is
permitted in any medium, provided this notice is preserved.
$Date: 2002/10/25 08:15:24 $ $Author: baijum81 $