This is a follow-up on the former articles "Writing Japanese with Ubuntu 14.04 Trusty Tahr", "Writing Japanese with Ubuntu 12.04 Precise Pangolin" and "Writing Japanese with Ubuntu 10.04 Lucid Lynx".
Compared to Ubuntu 14.04 Trusty Tahr, setting up the Japanese input in Ubuntu again became simpler and better integrated. The default Japanese Input Method is now Mozc (the open-source component of Google's Japanese IME, which is used in Android and Chrome OS) instead of Anthy and I won't explain how to set up Anthy anymore since Mozc really works great.
The installation is actually very simple with one little stumbling stone which I will guide you over so you won't trip. So let's start:
- Because Mozc is not installed with the base-system, you have to install the Japanese language support first. Otherwise Mozc won't be available as input-method in the Text Entry settings. Additionally this will install some nice Japanese fonts and Japanese translations for Ubuntu if you ever want to use your System in Japanese. So let's begin by opening the System Settings and then the Language Support.
- If you get a message saying that the language support is not installed completely, you can either ignore it or let it install documentations and translations for the other installed languages on your system. In the Language Support-window, click on "Install / Remove Languages...".
- Scroll down or type "J" and check the checkbox next to Japanese in the "Installed"-column. After this, click on "Apply Changes".
- Next you have to enter your password.
- The necessary packages will now be downloaded and installed. Nothing to do for you in this step, but you can already start to save open documents and close unused windows in preparation for the next one. :-)
- After the Japanese language support is installed, you have to log out. This is the small stumbling stone I mentioned before. For Mozc to show up in the list of input-methods, the session needs to be restarted. This is really kind of annoying but there's nothing you can do about that at this point. :-(
- Once you did a logout / login-cycle, open the System Settings and click on Text Entry.
- In the "Text Entry"-window, click on the small Plus-sign at the bottom of "Input sources to use".
- Select the entry "Japanese (Mozc) (IBus)" from the list and click on "Add".
- "Japanese (Mozc) (IBus)" should now show up inside the "Text Entry"-window and Mozc should be available in the menu-bar's menu. You probably want to change the setting "Use the same source for all windows" to "Allow different sources for each window" and switch to "New windows use the default source". Additionally you eventually want to reassign the key to switch to the next input source. I normally use the "Pause"-key to toggle between languages.
- Now fire up some text-editor and try it by clicking on "Mozc" in the text entry menu, set the input mode to hiragana and type some japanese. Switching between candidates is done by pressing the spacebar and katakana-conversion is done by pressing F7.
I hope, this article answered all your first questions regarding Japanese input in Ubuntu.
If this article was useful to you, you might also be interested in my (short) list of Japanese learning materials and software for Linux and how to type specific symbols and radicals in Mocz / Google’s Japanese IME.