2010/11/12

Japanese input in Kubuntu 10 (installation guide)

How to install Japanese input (similarly Korean or Chinese) in Kubuntu 10 or other Debian linux with KDE 4 desktop.

last update: 12.11.2010

Foreword: This is only Japanese input (step-by-step from the scratch) installation guide I've written in English. I've tested it on fresh Kubuntu 10.10 installation in virtual machine. KDE 4 is almost as bad as KDE 3 in terms of Japanese support. Ibus replaced scim causing a great deal of confusion in community of users. Thankfully I've Windows 7 Ultimate - japanese input installed by default and IME is still way better than anthy. btw I'm not native English speaker.

1. Open terminal K → Applications → System → Terminal
2. Install ibus module anthy (Japanese input module for linux) and ibus module for GTK (recommended. Otherwise ibus won't work in GTK applications). Execute usual command for installation of packages:
sudo apt-get install ibus-anthy ibus-gtk

Alternative:
You could also use the graphical installer. K → Applications → System → Software Management, but you will have to find every package by name (ibus) manually.

Note: For Korean input install ibus-hangul, Chinese input install ibus-pinyin

3. Start ibus from terminal  ibus-setup or from the desktop main menu K → Applications → Settings → Keyboard Input Methods
4. In the middle (the 2nd) tab Input Method select from list menu Japanese - Anthy and click add. Close the dialog window and switch back to the terminal window.

Ibus Preferences
5. In your home directory open file .xsessionrc If you don't have the file then create it. Add into the file these commands* (session variables):
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

6. Execute command for autostart of the ibus on login to KDE:
echo "ibus-daemon -d -x -r -n kde" > $HOME/.kde/Autostart/ibus-daemon-autostart.sh && chmod +x $HOME/.kde/Autostart/ibus-daemon-autostart.sh

7. Restart system for changes to take effect.
Use keyboard shortcut default CTRL+SPACE to switch input - anthy.

*You can use default text editor kate. Simply execute from terminal kate file_name

Žádné komentáře: