Input Japanese using uim

From ArchWiki
Revision as of 21:35, 23 April 2007 by Julien (talk | contribs) (New page: Category:Internationalization (English) Category:HOWTOs (English) {{stub}} = Installation = == Anthy == Simply do a : # pacman -S anthy == UIM == === Using pacman === # pacman...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Simply do a :

# pacman -S anthy


Using pacman

# pacman -S uim

Compiling from source

  1. Get uim from the UIM download page
  2. Extract the files
  3. 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/ > ~/.immodules
# echo "/opt/uim/lib" >> /etc/
# /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

You can now configure uim preferences by running :

$ uim-pref-gtk

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.


Useful literature