Subsections

4 应用程序设定

4.1 怎么能让 Netscape 显示中文呢?

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



首先安装 netscape-zh-resource-476
apt-get install netscape-zh-resource-476
然后需要进入 控制中心-观感-主题-风格,将 apply fonts and colors to non-kde apps 设为无效,或者修改 Netscape.ad

4.2 xchat 菜单已经显示中文了,为什么还不能在聊天室窗口输入显示中文?

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



您必须先设定聊天室窗口的字体。将 设定-设定-聊天室窗口中的 use gtk_fontset_load intead of gtk_font_load 选中,然后确认字体中包含以下内容:
-b&h-lucidatypewriter-medium-r-normal-*-*-120-*-*-m-*-*-*, -default-*ng-medium-r-normal-*-*-140-*-*-c-*-*-*

4.3 如何设置中文 KDE2 和 KOffice?

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



首先要按照问题 [*] & [*] 设置好环境变量。 然后设定

$(HOME)/.fontguess
[big5-0][gb2312.1980-0]
helvetica ming song
courier kai kai
times ming song
lucida ming song
进入 KDE ,在控制中心-个性化-国家和语言里,设定 cn,zh_CN.GB2312,set-gbk,然后重新启动 KDE 就可以了。
如果使用 kdm,在 $(HOME)/.xsession 作如下设定:
$(HOME)/.xsession
export LANG=zh_CN.GB2312
export LC_ALL=zh_CN.GB2312
export LC_CTYPE=zh_CN.GB2312
export KDE_LANG=zh_CN.GB2312
export XMODIFIERS=@im=Chinput
chinput
exec kde2

4.4 为什么星际译王在 KDE2 下显示不了中文呢?

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



KDE2 默认状态下,会用 KDE2 的字体和颜色设置去覆盖非 KDE 程序相应的设置。
有两个解决办法:

4.5 我的邮件有 GB,Big5,HZ 编码的,我能不能给它们自动转换成一种编码呢?

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



您可以用 zh-autoconvert 配合 procmail 来完成这个功能。 zh-autoconvert 是一个 GB,Big5,HZ 自动识别转换的软件, 它有一个例子程序--convmail.pl,在 /usr/doc/zh-autoconvert/examples 下,您可以把它复制到 $HOME/bin 下,然后建立一个 $HOME/mimemail 的目录。 参考 /usr/doc/zh-autoconvert/examples/procmail.example 建立自己的 $HOME/.procmail 文件。

4.6 如何能够让 AbiWord 显示中文?

Contributed by: mailto:hashao@china.comHa Shao 2001/01/05



It uses X's font for display and type1 for printing. It actually uses ttf for CJK printing, thanks to hj's work on this part.

To display Chinese, you have to:

The fonts.dir format is just like native X fonts.dir except it has trailing numbers for font ascend, descend and width.

This is my GB2312/fonts.dir

GB2312/fonts.dir
8
Song-Medium-GBK-H, -default-song-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Song-Medium-GBK-H, -default-song-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Song-Medium-GBK-H, -default-song-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Song-Medium-GBK-H, -default-song-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Kai-Medium, -default-kai-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Kai-Medium, -default-kai-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Kai-Medium, -default-kai-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Kai-Medium, -default-kai-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000

This is my Big5/fonts.dir

Big5/fonts.dir
8
Ming-Medium-GBK-H, -default-ming-medium-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Ming-Medium-GBK-H, -default-ming-bold-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Ming-Medium-GBK-H, -default-ming-medium-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Ming-Medium-GBK-H, -default-ming-bold-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Kai-Medium, -default-kai-medium-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Kai-Medium, -default-kai-bold-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Kai-Medium, -default-kai-medium-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Kai-Medium, -default-kai-bold-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000

Contributed by: mailto:foka@debian.orgAnthony Fok 2001/02/25



建议安装 Debian unstable 里面的 abiword_0.7.13-0.1 或更新的版本,而我们也希望在不久的将来把这些中文字体的设定加入 abiword 软件包中。这样,就不必再劳烦大家亲自动手了。另外, CLE 所用的 fonts.dir 设置,跟 Ha Shao 提供的稍有不同,如下:

/usr/share/abisuite/fonts/zh-CN/fonts.dir:

8
Arphic-MingGB-GB-EUC-H, -Arphic-AR PL SungtiL GB-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Arphic-MingGB-Bold-GB-H, -Arphic-AR PL SungtiL GB-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Arphic-MingGB-Slant-GB-H, -Arphic-AR PL SungtiL GB-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Arphic-MingGB-Slant-GB-H, -Arphic-AR PL SungtiL GB-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Arphic-KaiGB-GB-EUC-H, -Arphic-AR PL KaitiM GB-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Arphic-KaiGB-Bold-GB-H, -Arphic-AR PL KaitiM GB-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Arphic-KaiGB-Slant-GB-H, -Arphic-AR PL KaitiM GB-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Arphic-KaiGB-Slant-GB-H, -Arphic-AR PL KaitiM GB-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000

/usr/share/abisuite/fonts/zh-TW/fonts.dir:

8
Arphic-MingB5-B5-H, -Arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Arphic-MingB5-Bold-B5-H, -Arphic-AR PL Mingti2L Big5-bold-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Arphic-MingB5-Slant-B5-H, -Arphic-AR PL Mingti2L Big5-medium-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Arphic-MingB5-Slant-B5-H, -Arphic-AR PL Mingti2L Big5-bold-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Arphic-KaiB5-B5-H, -Arphic-AR PL KaitiM Big5-medium-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Arphic-KaiB5-Bold-B5-H, -Arphic-AR PL KaitiM Big5-bold-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Arphic-KaiB5-Slant-B5-H, -Arphic-AR PL KaitiM Big5-medium-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Arphic-KaiB5-Slant-B5-H, -Arphic-AR PL KaitiM Big5-bold-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000

两种方法, AbiWord 都接受。哪个比较正确?我暂时也不知道。(嘻嘻!)

4.7 如何在 mutt 中使用中文?

Contributed by: mailto:ygh@debian.orgYu Guanghui 2001/02/01



首先,确认你使用的是 mutt-1.3.12 以上的版本。然后,按照问题 [*] 设置好环境变量。修改 $(HOME)/.muttrc

$(HOME)/.muttrc
set charset=gb2312
set send_charset=us-ascii:iso-8859-1:gb2312:big5:utf-8

4.8 如何在 X/Emacs 中使用中文

Contributed by: mailto:zw@debian.orgZhao Way 2001/02/27



请在 /.emacs 中添加:

$(HOME)/.emacs
(setup-chinese-gb-environment)
(set-face-font 'default '("-isas-*-16-*-gb2312.1980-0" "-eten-*-16-*-big5-0") 'global '(mule-fonts) 'prepend)
如果您在 FSF Emacs 或者当 XEmacs 运行在控制终端上时,发现上面的代码运行 有问题,请把您的问题报告 debian-chinese-gb@lists.debian.org 。 X/Emacs 是一个庞大的软件,请帮助我们一起改进这一段 FAQ 谢谢。

在新版 Debian 中的 XEmacs 已经可以支持 XIM 协议,所以您可以经由 xcin 或 者 chinput 这样的 XIM Server 在 XEmacs 中输入中文。相关信息,请参考相应 的 FAQ 段落。

Contributed by: mailto:scheme@cmmail.comScheme 2001/09/10



当 locale 设置 LC_ALL 为 zh_CN 或 zh_TW 等, Emacs/XEmacs 的 dired 模式下的 buffer 不能被正确解读,导致该模式下的文件系 统操作失败。
从 Fumitoshi Ukai 等朋友处得到帮助后,归纳为如下解决方案:
如果使用的是 Emacs20 ,可在 /.emacs文件中加入

$(HOME)/.emacs
;; To ensure proper functioning under the dired mode
;; with zh_CN/zh_TW locale settings
(load "ls-lisp")

如果使用的是 XEmacs21 ,由于 XEmacs21 的发布中没有 ls-lisp 程序,需要先把 s-lisp.el 文件从 Emacs20 的发布中复制到 XEmacs21 的路径下,建议复制到 /.xemacs/下,并在 /.xemacs/init.el 中加入以上内容。为了运行提高效率,可以在X Emacs21 中编译 ls-lisp.el 文件。 .

4.9 如何让 XMMS 中显示中文

Contributed by: mailto:ygh@debian.orgYu Guanghui 2001/07/06



您必须先设定窗口的字体。在 XMMS 左上角点击鼠标右键,调出菜单,然后选择 选项-功能设定- Fonts 中的 use fontsets 选中,然后确认字体中包含以下内容:
-default-song-medium-r-normal-*-*-120-*-*-c-*-gb2312.1980-0

选中 Use X font ,确认字体中包含:
-default-song-medium-r-normal-*-*-120-*-*-c-*-gb2312.1980-0

4.10 在 Eterm 中显示输入中文

Contributed by: mailto:shell@shellhung.orgShell Hung 2001/08/09



在 Debian 的 unstable 的 Eterm 0.9.1 已经有了中文 Big5 的 patches , 不过除了字体不正确外,编译的字元都是使用 Unicode , 而不是 Big5 的, 所以 预设是没有中文的支援。

要使 Eterm 能够显示及输入中文, 必需要有 taipeifonts 及 xcin,可以透过 apt-get 找取,详见其他的 FAQ 项目。

唯独要修改的可能是 $<$Eterm-0.9.1$>$ 这句,如果您是使用 Eterm 0.9, 请把后最的``.1'' 移走,否则这个文件会在 Eterm 执行时因为读取错误而没有中文的支援。 注意一点,预设会读取 font 2 字体, 您亦可以使用 font default 1 来决定读取字体 的缺省值,或是透过 Eterm 的设定来完成,详见 Eterm 的使用手册。


Debian 中文计划