在 debian testing 上 emacs23 也要 mule-ucs 来使用 scim。看下面的提示包含下面一行:
install/mule-ucs: Byte-compiling for emacs23 ...This will take a while ... done.
可以看到还是要 mule-ucs 支持中文的。当然还是要在命令前加环境变量。
在论坛上搜索文章,很少提到 mule-ucs 的,唉,搞的人很郁闷。
总的来说,emacs 输入法有三种
1,M-x set-input-method 回车,然后选一个,如 chinese-py。因为我用五笔,而里面没有五笔,因此要装一个。下面的地址有 wubi 的安装和配置。
http://daiyuwen.freeshell.org/gb/index.html
注:
1:上面的网址有些时间没有更新了,关于它的命令也都变也了 wubi 开头的了。你可以 M x wubi TAB 来看到它们。
2:启动 chinese-wubi 后在五笔字形上点右鍵会出来帮助,包括五笔的一份说明和快捷键列表。
3:自定义词组很简单,只要一个词组一行就可以了。然后用上面网址给出的命令来生成,注意词组文件是 gb 编码。在 en_US.UTF-8 的 locale 下还要把生成的 wubi-rules.el 改成 utf8 编码。编码转换可以用 autogb 来完成,十分方便。
2,安装 sicm-bridge,怎么配置看那个 .el 文件,最后虽然把 scim 弄出来了但不矢道怎么切换,而那个网頁居然是日文的。记得有看到一篇文章里说想学好 emacs 就要把英文和日文学好,看来一点都不假。
3,安装 mule-ucs。debian testing 里会自动加裁, ubuntu 不知道。
但在 xfce 的 launcher 中直接输入
LANG=zh_CN.UTF-8 不起作用。没关系,我们可以在 /usr/local/bin 中写入一个 xemacs 文件,然后把图标指向它。
echo 'LANG=zh_CN.UTF-8 emacs $*' > /usr/local/bin/xemacs
chmod +x /usr/local/bin/xemacs
下面这个命令是我在删掉 mule-ucs 后测试 emacs 不能使用 scim 输入法后重新安装上它时用的。
$sudo aptitude remove mule-ucs+
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
mule-ucs
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/728kB of archives. After unpacking 4,927kB will be used.
Writing extended state information... Done
Selecting previously deselected package mule-ucs.
(Reading database ... 306540 files and directories currently installed.)
Unpacking mule-ucs (from .../mule-ucs_0.85~0.20061127-3_all.deb) ...
Setting up mule-ucs (0.85~0.20061127-3) ...
install/mule-ucs: Byte-compiling for emacs23 ...This will take a while ... done.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done