Linux中文支持
警告
已恢复历史版本
当前版本 00000005 在备份中缺失;以下内容来自最新可读取版本 00000004。
中文输入法
fcitx
小企鹅输入法(五笔、拼音等)
apt-get install fcitx
scim(Smart Common Input Method)
apt-get install scim scim-tables-zh
scim
在debian中安装scim后,输入法可能不会随着X启动而自动加载。可以在/etc/X11/Xsession.d/目录中添加文件95scim,内容如下:
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
scim -d
在英文的locale下,无法使用scim中文输入,可以运行:
sudo update-alternatives --config xinput-all_ALL
选择scim
scim-python
http://code.google.com/p/scim-python/
fitx
http://code.google.com/p/fitx/
中文排序
让文件名是中文的文件按照拼音顺序排列:安装locale-pinyin:
sudo apt-get install locale-pinyin
然后设置LC_COLLATE=zh_CN@pinyin.utf8,可以通过在/etc/environment文件中添加这一行实现:
LC_COLLATE="zh_CN@pinyin.utf8"
然后重新登录就可以起作用了