Friday 20 November 2009

Japanese Input for Anki or other Qt Apps.

MB 4,1=> Ubuntu 9.10 => Primary Desktop Gnome + Secondary Desktop KDE

Installed Anki but Anki is Qt app.
Installed scim/skim in both Gnome and KDE, but Japanese input only works for Gtk apps.

Uninstalled scim (maybe ok to leave it installed and install skim components for later as well)

In Gnome, run ibus daemon: System => Preferences => IBus Preferences => Input Method =>Japanese Anthy => close. There shouldn't be any problems in setting up IBus, although again Qt apps didn't work for me. Gtk apps work fine though.
I don't think it was necessary, but in my attempt to get IBus working for Qt apps I followed these instructions:

http://www.uluga.ubuntuforums.org/showthread.php?p=8293772

Logout of Gnome Desktop.
Log into KDE and follow these instructions to installed relevant scim/skim from repository (if not already installed):

http://kubuntuforums.net/forums/index.php?topic=13489.0

Because these instructions are for Edgy, I skipped the first three instruction codes from part 1, and used the KDE's equivalent to synaptic to get the scim/skim from the repository. Should also be okay to install from the Gnome Desktop via synaptic then log into KDE. Follow the instructions carefully, especially the all Caps part and instead of logout then login may have to restart for some parts.

Once installed, test that scim works ok for Qt apps such as kate and Anki.

Logout or restart and login using Gnome Desktop. CJK inputs can then be used for Qt apps. using skim, while IBus is used to input CJK for Gtk apps.


Note: Anki works fine with Japanese input under Linux Mint 8 on the GDM with just iBus installed. That is there is no need to install KDE on Linux Mint 8 to get Japanese IME working for QT apps.