[Uim] Uim defaults to pinyin

gabor gabor at z10n.net
Fri Aug 27 19:30:45 EEST 2004


On Fri, 2004-08-27 at 14:27 +0100, Nick wrote:
> Hi,
> 
> I've installed uim-xim from debian-sarge.  I'm
> currently using gdm as login manager.
> 
> However, uim starts with gdm but defaults systemwide
> to pinyin.  This is no problem if I'm using e.g.
> gedit, in which I can change the input method, but if
> I want to use mozilla-firefox (no right click) I can't
> change to Japanese input.
> 
> I would idealy like uim to default to uim-anthy or
> uim-canna.  Can anyone help me do this?

yes... ;)

locally or globally?

locally:

export GTK_IM_MODULE=uim-anthy


globally:

edit /etc/gtk-2.0/gtk.immodules

basically gtk parses this files, and finds a matching line to select the input module.

each line specifies an input module, and somehow also the locale..
i am not sure how this exactly works, but more& less:
example:

"uim-anthy" "uim-anthy (ja)" "gtk+" "" "ja"

this says use uim-anty for 'ja' locale

the problem is that when  there are more suitable lines, it picks the last one.

and i had (and you probably have) this one after uim-anthy:

"uim-pinyin-big5" "uim-pinyin-big5 (*)" "gtk+" "" "*"

which means use uim-pinyin-big5 for every locale.

simple move the uim-anthy line below this one,
and optionally also change the "ja" part to "*".

hope this helps,
gabor








More information about the uim mailing list