wxcxyz 发表于 2005-11-1 19:26:29

How can i change to chinese-in

how can i change to chinese-input states,i am new user of debain.please help me,thanks

yjwork 发表于 2005-11-2 12:49:35

apt-get install fcitx
建一个文本文件95xinput   内容:
case "$LANG" in
zh_TW*)
/usr/bin/fcitx
XMODIFIERS="@im=fcitx"
;;
zh_HK*)
/usr/bin/fcitx
XMODIFIERS="@im=fcitx"
;;
zh_CN*)
/usr/bin/fcitx
XMODIFIERS="@im=fcitx"
;;
esac

export XMODIFIERS


拷备到/etc/X11/Xsession.d/
cp 95xinput /etc/X11/Xsession.d/
sed -i '1i\LC_ALL=zh_CN.GB2312' /etc/environment
sed -i -e 's/LANG=zh_CN/LANG=zh_CN.GB2312/' /etc/environment
echo G_BROKEN_FILENAME=1 >> /etc/environment
echo G_FILENAME_ENCODING=@gbk >> /etc/environment
然后注销看看
页: [1]
查看完整版本: How can i change to chinese-in