Path: liyi.freeshell.org » computer » debian » input-method

配置 SCIM

环境:Debian (3.1, sarge): Xorg (1:7.1.0-11); GNOME (1:2.14.3.5); SCIM (1.4.4-7)。

1. 设置 locale

# dpkg-reconfigure locales

选择 locales,如 en_US.UTF-8, zh_CN.UTF-8, zh_CN.GBK。

2. 安装 SCIM

# apt-get install scim scim-gtk2-immodule scim-modules-socket \
> scim-modules-table scim-pinyin scim-tables-zh

3. 修改 /etc/gtk-2.0/gtk.immodules

- "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh" 
+ "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh:en" 
- "scim" "SCIM Input Method" "scim" "/usr/share/locale" ""
+ "scim" "SCIM Input Method" "scim" "/usr/share/locale" "zh:en"

4. 重启 X

中、英文环境下都可以输入中文。

Category: /computer/debian | Permalink

Contact info

liyi.jpg

Name: Li Yi
Email: email.png
More info ...

Recent entries
Categories

Website of Li Yi