OpenOffice.org support for  Malayalam


Here are the steps for supporting Malayalam in OpenOffice.org and similar apps.: 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 /usr/X11R6/lib/X11/locale/ml_IN.UTF-8 /
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 :
ml_IN.UTF-8/Compose     ml_IN.UTF-8
ml_IN.UTF-8/Compose:     ml_IN.UTF-8
A sample compose.dir file is here.

Now login as a user, copy the Xmodmap file to .xmodmaprc in your home directory
To switch your keyboard map :
bash$ xmodmap $HOME/.xmodmaprc

Also add the font to your personal font directory (you need not be a superuser)
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 :
nonstdml.ttf -misc-NonStdMl-medium-r-normal--0-0-0-0-p-0-iso10646-1
(this is the entry for the font available here)
A sample fonts.dir file is here.
In this font we followed the layout of Thoolika font (Not GPLed)

To add this font directory to X font path :
bash$ cd $HOME/personal-fonts
bash$ xset fp+ `pwd`
bash$ xset fp rehash

Now you are ready to open OpenOffice.org
Before that change the locale :
bash$ export LC_ALL=ml_IN.UTF-8
(Add this entry to $HOME/.bashrc for conveniance)

Inputting Malayalam

To input someting press both shift, now you are swithed to Malayalam mode now start typing. To input any "Koootaksharas" press right window key and then the required characters(not need to input 'chandrakala'). The keyboard layout will be available here (wait few days).

Bugs

There is no chance for any bug, though if you find anything of that sort please report at baiju@freeshell.org