LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1110|回复: 1

fedora2英文环境scim设置过程,scim真棒!!

[复制链接]
发表于 2004-10-23 09:51:52 | 显示全部楼层 |阅读模式
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后可以正常使用中文,两全齐美!!!
发表于 2004-10-24 08:25:33 | 显示全部楼层
软件是越来越完善了,fcitix和scim都非常好!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表