英文环境下使用scim输入中文的超简单方法!!!

系统字体配置、中文显示和输入法问题
回复
头像
maxyang2008
帖子: 67
注册时间: 2008-12-30 20:38

英文环境下使用scim输入中文的超简单方法!!!

#1

帖子 maxyang2008 » 2009-08-31 16:51

几天突然想在英文环境下使用中文输入法,原因是因为没有使用gnome和kde桌面环境而使用了openbox,导致中文显示和英文显示都不理想,尤其是难看的英文让我看着相当难受阿~
于是乎就想到要切换到英文环境中,但是中文输入这个问题又不能避免,放狗搜了一下,得到的都是些看起来相当复杂的方法,于是就想自己弄弄看。无意中在一篇帖子中看到有人说是用im-switch就可以简单实现。于是乎就看了看im-switch的帮助文件。结果让我充满了期待,只要一个命令就可以了。
废话少说,现在就将自己的方法提供给大家,还望有什么意见及时提出

首先,先要确保自己已经安装了scim,然后切换到英文环境。
第二,打开一个终端,输入im-switch -h就会出现下面的帮助内容

Input Method Switcher 0.3+debian1.10

"im-switch" configures the input method to be automatically switched based
on the locale (ll_CC) using Debian "update-alternatives" mechanism.
When "im-switch" is invoked from root user, it sets system wide alternatives.

Usage: im-switch [-v][-z ll_CC] -s inputmethodname
to set a specific input method for the language
im-switch [-v][-z ll_CC] -c
to set an input method for the language by menu
im-switch [-v][-z ll_CC] -a
to revert to the default input method for the language
im-switch [-v][-z ll_CC] -l
to list current settings and available input methods for
the language, and also all the available languages
im-switch -h
to show this help

The "ll_CC" argument of -z takes the form "<language>_<teritory>" and
is used to override the current locale (ISO 639 / ISO 3188) : eg "-z ja_JP"

The use of -v option produces verbose outputs.


根据显示的内容可以看出,’im-switch -s 输入法名称‘是用来给当前语言设置输入发的,im-switch -c是用来利用菜单方法来选择的。下面我们选择第二种方法,输入“im-switch -c",然后就会出现下面的提示:

There are 8 candidates which provide IM for /home/yangjia/.xinput.d/en_US:

Selection Alternative
-----------------------------------------------
+ 1 default
2 default-xim
3 none
* 4 scim
5 scim-bridge
6 scim-immodule
7 scim-pinyin
8 th-xim
System wide default for en_US (or all_ALL) locale is marked with [+].
Press enter to keep the current selection[*], or type selection number:

接下来输入你想要设定的输入法的编号回车,然后重启x就好了。

呵呵,相当简单吧
为学日益,为道日损
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: 英文环境下使用scim输入中文的超简单方法!!!

#2

帖子 hcym » 2009-08-31 17:06

我还没这么搞过,英文环境输入中文

但愿能帮助几个鬼哭狼嚎的主
:em04
回复