|
scim真棒!!!!谢谢苏哲老兄!!
我的locale为en_US.UTF-8,用fcitx出不来,只好用scim,参考以下文档修改启动脚本,成功
http://freedesktop.org/~suzhe/ma ... nual.html#id2440756
以下是我的修改过程:
用vi打开/etc/X11/xinit/xinitrc.d/xinput
因为我没有使用iiimf所以以下代码注释掉
#
# check $XIM and set a default $XIM value.
#
# default to iiim if htt server is running
#if [ -z "$XIM" ]; then
# case $tmplang in ( ar* | be* | ja* | ko* | th* | zh* | *_IN* )
# if /sbin/service IIim status 2>/dev/null | /bin/grep -q pid ; then
# XIM=htt
# fi
# ;;
# esac
#fi
下面的修改与文档稍有不同
# otherwise revert to legacy XIM client
if [ -z "$XIM" ]; then
case $tmplang in
...
# XIM="xcin-zh_CN.GB2312"
fi
;;
en_US*)#在文档中此处应该为zh_CN*,但因为我的locale为en_US*因此,做如此修改
if [ -e /usr/bin/scim ]; then
XIM="SCIM"
#elif [ -e /usr/X11R6/bin/xcin ]; then
# export LC_CTYPE=zh_CN.GB2312
# XIM="xcin-zh_CN.GB2312"
fi
;;
zh_TW*)
...
esac
fi
增加如下代码
#
# set a proper XIM program with respect to $XIM
#
if [ -z "$XIM_PROGRAM" ]; then
case "$XIM" in
...
;;
SCIM)
XIM_PROGRAM=scim
XIM_ARGS="-d"
;;
...
esac
fi
好了,这样启动x则自动启动scim,
locale设置成en_US的好处是,在字符界面下面显示英文,防止出现乱码,我的x用kde安装kde-i18n后可以正常使用中文,两全齐美!!! |
|