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

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Input Japanese using uim#)


Installation

Anthy

Simply do a :

# pacman -S anthy

UIM

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

Configuration

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 :

$ 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

http://uim.freedesktop.org/wiki/OfficialUserDocument
http://en.wikibooks.org/wiki/Uim