[Technique]The Easiest Way to Use SCIM in English Environment under Ubuntu
I have incidentally found a very simple way to use SCIM pinyin input in english environment under Ubuntu (mine is 6.06 BTW).
In /etc/X11/xinit,
there is a dir called 'xinput.d', which I guess has sth to do with input methods.
There are some symbolic links in that dir, maybe one called 'zh_CN', another in my system is 'zh_TW'.
zh_CN points to /etc/alternatives/xinput-zh_CN
after 'cat zh_CN', I believe that this file is the script which will be run when we enter X using Chinese language localization.
So I hopelessly created a same symbolic link as zh_CN, which I named 'en_US', and, it WORKS FINE!
==================================
CONCLUSION: just run:
ln -s /etc/alternatives/xinput-zh_CN /etc/X11/xinit/xinput.d/en_US
==================================
And this single command does it once and for all.
Enjoy.
|