Linux FAQ's & Manuals


xim

xim (= x input method) is a generic api to build applictions which have support for international input.

all applications which have support for the xim-protocol build in, can be used to input japanese, chinese and korean.

many x11 applications already support xim, for example:


table 1: xim servers working on suse linux
lc_ctype xmodifiers xim server default start key conversion distributed with
backend suse linux
ja_jp* "@im=kinput2" kinput2 shift-space canna yes
ja_jp* "@im=kinput2" kinput2 shift-space freewnn yes
ja_jp* "@im=nicolatter" nicolatter control-o canna yes
ja_jp* "@im=nicolatter" nicolatter control-space freewnn yes
ja_jp* "@im=jmode" jmode shift-space -- yes
ja_jp* "@im=kinput2" kinput2 shift-space wxg no
ja_jp* "@im=htt" atokx_client shift-space atokmngdaemon no
ko_kr* "@im=ami" ami shift-space -- yes
zh_tw* "@im=xcin-zh_tw" xcin control-space -- yes
zh_cn* "@im=xcin-zh_cn" xcin control-space -- yes
zh_cn* "@im=scim" scim control-space -- yes


to use xim, a xim server program must be running (and sometimes a conversion backend as well). table 1 shows the xim servers which currently work on suse linux.

note: atok x and wxg are not free software and are not distributed with suse linux. for more information on atok x see section 6.1.5, for more information on wxg see section 6.2.3.

the default key-sequence to switch between english and non-english mode listed in table 1 can usually be changed. please refer to the section of the respective xim server to find out how to change the default key-sequence.

lc_ctype is an environment variable which indicates how characters should be handled. if lc_ctype is unset, it inherits its value from lang or lc_all. xmodifiers is an environment variable indicating which xim server to talk to.

it is possible to run several xim servers at the same time and select with lc_ctype and xmodifiers the xim server one wants to use for an application. for example if kinput2, nicolatter, and ami are concurrently running, one can start a mlterm with japanese input via kinput2 enabled with

     ~$ lc_ctype=ja_jp.utf-8 xmodifiers="@im=kinput2" mlterm 

a mlterm with japanese input via nicolatter enabled with

     ~$ lc_ctype=ja_jp.utf-8 xmodifiers="@im=nicolatter" mlterm 

and a mlterm with korean input via ami enabled with

     ~$ lc_ctype=ko_kr.utf-8 xmodifiers="@im=ami" mlterm 

these may all run concurrently.



subsections
2005-03-09