[Pkg-ime-devel] RFS: scim-kmfl-imengine

Doug Rintoul doug_rintoul at sil.org
Fri Dec 7 23:52:38 UTC 2007


Ming Hua wrote:
> I am curious about how you are going to set im-switch though. Are you
> going to set them just for several specific languages? Or are you going
> to set the all_ALL (pseudo-)locale setting? Or is there another way to
> set it for all languages that I don't know?
My initial thought was to set it for the default language, i.e. the 
language specified at installation time. The code I have written to do 
this is as follows:

# use im-switch to set up the scim environment
tmplang=${LC_ALL:-${LC_CTYPE:-${LANG}}}                                                                                       

tl=${tmplang%%.*}
update-alternatives --install /etc/X11/xinit/xinput.d/$tl xinput-$tl 
/etc/X11/xinit/xinput.d/scim-immodule 50                         
im-switch -s scim-immodule -l 
$tmplang                                                                                                 

 
Not sure if this is the best way to do it though. all_ALL would probably 
ensure scim-immodule is still used even if the user changed his locale. 
Again, I am open to suggestions.

Doug.



More information about the Pkg-ime-devel mailing list