I decided to try enabling Japanese input on my system this weekend. I did get it to work, and here is how:
- I first Googled it. ^___________^
- I then made sure the following language and font packages were installed:
- I then made sure to install the following input packages and their associated libraries:
- I made sure that canna and jserver services were running at startup: “chkconfig –add canna” and “chkconfig –add jserver” (run as root)
- I appended to /etc/sysconfig/i18n the following lines:
- XIM_PROGRAM=”scim -d”
- I restarted gdm, and got a keyboard icon in my tray area.
- I configured it and disabled all languages but English and Japanese, noting that CTRL + Space toggles it on and off.
Now, when either of us uses CTRL + Space and selects Japanese, we have a variety of methods to input Japanese, whether it is katakana, hiragana, or kanji. This is on a standard US keyboard (no Japanese keys). The method we like best is Prime, which allows hiragana and kanji input, a list of selections as you type, and other options. I also set the list to be verticle. In a nutshell, I took a shotgun approach to packages, installing everything related to japanese, canna, anthy, uim, scim, skim, and prime, excluding those packages applying to other languages.
I did have a big problem after modifying the i18n file, however. Firefox would no longer open. After much digging, I found that the problem was that we were using the Mozilla build of Firefox, not the distro-supplied build. The distro-supplied build was compiled on a more recent version of gcc than the Mozilla build, and after I switched a few icon paths around, we were back in business. From what I read, this would also affect Thunderbird users in the same manner. So either use the distro-supplied version if you run into this problem, or compile from source (make sure to compile in SCIM support).
This method of enabling Japanese input seems to work globally across the desktop, regardless of the application. Remember, though, YMMV.
The pages that best helped me out for this are:
- Troubleshooting Firefox and SCIM: scim-im.org troubleshooting article
- Enabling Japanese input globally: http://www.h4.dion.ne.jp/~apricots/scim-anthy/howto.html