Using SCIM in English interface

惭愧啊,在ubuntu里搞定中文输入法竟然花费了近一天的时间。其实如果是把语言设置为中文的话也没那么多麻烦。只是我个人偏好英语的界面(再说ubuntu的中文界面下字体很难看),问题就出在这里了。只要切换到英语的界面,scim就不管用了。在网上看到了解决办法:

先用这句来安装im-switch和scim

sudo apt-get install im-switch scim

然后用下面两句来进行设置:

sudo im-switch -s scim -z all_ALL
im-switch -s scim -z all_ALL

结果我的问题就出在这里了,其实有错误提示,但我一直没有看到,提示内容是:

No system wide default defined just for locale en_US .
Use "all_ALL" quasi-locale and set IM.
update-alternatives: Cannot find alternative `/etc/X11/xinit/xinput.d/scim’.

没注意这里的提示我还到处找别的原因,又试着装了fcitx,接着卸了又装,装了又卸,还手动修改/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules,都不起作用。直到看到错误提示,才想起,原来是要update-alternatives。用下面这句:

update-alternatives –install /etc/X11/xinit/xinput.d/all_ALL xinput-all_ALL /etc/X11/xinit/xinput.d/scim 30

完了之后再用上面那两句来设置,没有错误提示了,重启就OK了。

Ubuntu (pronounced "oo-boon-too")

Ubuntu is a South African ethical ideology focusing on people’s allegiances and relations with each other. The word comes from the Zulu and Xhosa languages. Ubuntu (pronounced "oo-boon-too") is seen as a traditional African concept, is regarded as one of the founding principles of the new republic of South Africaband is connected to the idea of an African Renaissance.

A rough translation of the principle of Ubuntu is "humanity towards others". Another translation could be: "the belief in a universal bond of sharing that connects all humanity".

         "A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed."

Archbishop Desmond Tutu

As a platform based on Linux, the Ubuntu operating system brings the spirit of ubuntu to the software world.

(Above is from the document "About Ubuntu")