On Fri, Dec 07, 2007 at 03:52:38PM -0800, Doug Rintoul wrote: > 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.
I will be annoyed if you do this. This is same as all_ALL in terms of annoyance. You never know when scim update itself and run its postinst in chinese locale. Under ssuch situation, it will reset setting against your will. Very flakey system ituation, indeed. If you have specific languages which this package is better than default, use 50 specifically for it. Package script has the root power. Basically, do not make intrusive modification to other packages just because it worked in some limited scenario unless it is cordinated action with the other packages. Osamu -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]