Monday, April 29, 2013

Japanese Input - Arch Linux - ibus and mozc

To get Japanese Input working I tried various walkthroughs and many different packages and settings on Arch Wiki's. All of which are still excellent for information pertaining to each individuals needs.
However with that said...after I magically got it sometimes happens, I didn't know what I did to get it working ><

So I cracked out my Arch Linux Laptop and started thru the process documenting what I did and making sure I understood what it was doing. At the end, I once again finally got the Japanese Input to work in Arch Linux but this time I had weeded out the junk and made sure that each step was crucial to actually pulling this task off for future installations of Arch for mine and your sanity. This is my documentation of what I did and if you follow this guide I am confident you will also have Japanese Input by the end of this tutorial.(If some steps are redundant or not needed I apologize.)

My Machine at the time of installation:
Date: 04-29-13

 Install Japanese Input in Arch Linux
(I use AUR for all my packages in this install, go here for help with that)

1. Install some fonts that look better for Kana.

    yaourt -S otf-ipafont ttf-droid

2. Install uim-mozc and ibus (This may take a while, just read what is asking and choose yes or no)

    yaourt -S uim-mozc ibus

4. Install Japanese Dictionary from this link:

    I downloaded this one at the time:

Enter the following commands in terminal"

mkdir ~/.anthy
mkdir ~/.anthy/imported_words_default.d
cp alt-cannadic-091230/extra/*.t ~/.anthy/imported_words_default.d/

5. Add mozc to enabled items


 then click Edit and move mozc over to enabled

6. Add the following to ~/.xinitrc

   export GTK_IM_MODULE=ibus
   export XMODIFIERS=@im=ibus
   export QT_IM_MODULE=ibus
   ibus-daemon -d -x &
7. Log out and Back In.

8. Right click on ibus in systray and goto Preferences

9. Add English (Place it on top for default Lang choice)

10. Add Japanese mozc

11. I would reboot and log in fresh to make sure all settings are holding and working.

12. Try opening terminal and maybe a web interface and make sure you can type in English, then press Ctrl+Space to choose Japanese then try and type in Kana.

Hopefully you are typing in Japanese now!

Here are the sites that probably will help best for reference sake:

No comments:

Post a Comment