Sunday, June 25, 2006

Japanese Input in linux

I was trying to setup Japanese input in linux. This was not an easy task, however I found it easier than windows. Here's what I did (on ubuntu):

1) sudo apt-get install im anthy scim-gtk2-immodule scim-uim scim-qtimm
2) Create a file called 75custom-write_japanese in /etc/X11/Xsession.d/
Paste the following lines in it:
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export XIM_PROGRAM="scim -d"
export QT_IM_MODULE="scim"

3) sudo dpkg-reconfigure locales
(Over here, if you have the option of selecting anything, select en_US.UTF-8. But I was not given the option of selecting)

4) Add scim -d to your startup. For KDE, make a file ~/.kde/Autostart/startscim
Paste the following lines:
#!/bin/sh
scim -d

5) Run: chmod 744 ~/.kde/Autostart/startscim

6) Restart the X server.

Now you will see a nice little gtk-applet sitting in the systray. You can click on it, configure it, and use it to select Japanese or English. It takes a while to get used to it. It will also popup an annoying panel of its own when you select Japanese input. You can drag this to a place more convenient.

All in all, it works well, and I'm happy with it.

Information taken from this page

No comments: