Anthy (japanese input) keyboard shortcut
15,612
- Using Ubuntu Software Center install ibus-anthy. This will give you Japanese keyboard layout.
- Once you installed iBus, open Dash and look for iBus. Once iBus is running, go to the second tab called Input Method.
- Make sure "Customize Input Selection Method" is checked. Click on Select and Input Method and select Japanese > anthy. Do not chose "Anthy (m17n)" it does not allow F7, F8 etc. to change fonts Then hit the Add button to add this input method. If Japanese is not at the top, click on it and click Up button to move it to the top. Click on Close button. You will notice a keyboard icon on the top panel in Unity.
- Now, open a new window of LibreOffice or Gedit or where ever you want to type in Japanese and hit Ctrl+Space. This will change the input method to Anthy for that app. You will notice that the icon on the tray now shows Aち. If you don't see Aち and see the keyboard icon or another language icon on the top panel, click on it and select Japanese-anthy. Now type you can type in Japanese.
Hope this helps

Author by
Thomas Moulard
Updated on September 18, 2022Comments
-
Thomas Moulard 8 months
One particularly interesting keyboard shortcut when typing japanese is the ability to switch the current input between the 3 set of characters which can be used in japanese.
On Windows and most of the japanese input systems, the conversion from hiragana to katakana for instance is bound to F7. Is there a way to mimic this behavior on Ubuntu (and preferably using a key which is less commonly used than this one)?
Generally speaking, is there a way to tune the behavior of Anthy on Ubuntu?
Thanks.
PS: Just to make things clear japanese input works but is unpractical. I want to customize the japanese input behavior, not have directions for initial setup.
-
user68186 over 10 yearsPossible bug: bugs.launchpad.net/ubuntu/+source/ibus-m17n/+bug/555638
-
Thomas Moulard over 10 yearsThanks to the bug report pointed by user68186 I just understood the problem. For some reason there is two Anthy modes in IBus. The first one I was using (anthy - m17n) do not provide the configuration window that the Anthy mode provides. This mode seems to allow the complex behavior I was looking for.
-
user68186 over 10 yearsYou are welcome. I have edited my answer to reflect the distinction between the two choices. If this works for you, consider accepting my answer as the correct one.
-
-
Thomas Moulard over 10 yearsI may be overseeing something but this tutorial covers how to setup japanese input on Ubuntu (which works fine) and not how to customize japanese input (aka Anthy) behavior.
-
Thomas Moulard over 10 yearsSame comment as zuberuber answer.
-
user68186 over 10 yearsAdded distinction between "anthy" and "anthy (m17n)." You want anthy and not (m17n).
-
matty about 8 yearsIn elementary os freya, after closing the IBus Preferences dialog and running
sudo apt-get install ibus-anthy
, I still didn't have a Japanese-Anthy input method, so I ranibus restart
(no sudo). When I reopened the IBus Preferences > Input Methods dialog, Japanese-Anthy was there. In summary, I think ibus will sometimes need to be restarted after installing "modules" such as ibus-anthy.