Input Japanese using uim
Simply do a :
# pacman -S anthy
# pacman -S uim
Compiling from source
- Get uim from the UIM download page
- Extract the files
- In the extracted files' folder do
$ ./configure $ make # make install
Depending on the way you installed UIM and your Desktop Environment or Window Manager configuration varies.
Here are the steps I followed to get it to work with Gnome, after having compiled uim from sources with
$ ./configure --prefix=/opt/uim
You need of course to adapt commands to your system or simply skip unecessary steps if you did an install using pacman.
$ gtk-query-immodules-2.0 /opt/uim/lib/gtk-2.0/2.10.0/immodules/im-uim.so > ~/.immodules
# echo "/opt/uim/lib" >> /etc/ld.so.conf # /sbin/ldconfig
Edit your ~/.xprofile file, for instance :
export GTK_IM_MODULE='uim' export GTK_IM_MODULE_FILE=~/.immodules export QT_IM_MODULE='uim' uim-xim & export XMODIFIERS=@im='uim'
In the case you've compiled uim from sources and set a --prefix option you might consider updating your PATH so you can run uim related applications easily, for instance :
export UIM_HOME=/opt/uim PATH=$UIM_HOME/bin:$PATH
You can now configure uim preferences by running :
which brings forth a GUI.
You can run uim-xim or logout/login to test your settings.
Provided everything went well you should be able to input Japanese in X.