Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
First,apt-get install netscape-zh-resource-476.
Then, launch Control Center. Under Look and Feel Style,
disable ``apply fonts to non-KDE apps''. Alternatively, edit Netscape.ad.
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
You still have to set the font for the chat window. First, enable
``use gtk_fontset_load instead of gtk_font_load'' in the Setup Chat Window menu, and ensure that the fonts include the following:
-b&h-lucidatypewriter-medium-r-normal-*-*-120-*-*-m-*-*-*£¬ -default-*ng-medium-r-normal-*-*-140-*-*-c-*-*-*¡£
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
First, set up your environment variables as instructed in &
. Then, create the $(HOME)/.fontguess file as follows:
$(HOME)/.fontguess
[big5-0][gb2312.1980-0]
helvetica ming song
courier kai kai
times ming song
lucida ming song
Run Control Center, select "cn,zh_CN.GB2312,set-gbk" under Personalization Nationality and Language, and restart KDE.
If you use kdm, modify $(HOME)/.xsession to:
$(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
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
By default, KDE imposes its fonts and color settings to non-KDE applications. There are two solutions:
/usr/bin/stardic -xrm '*fontList:9x15bold=English, hz16=Chinese, yb10x20=YB'
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
You can use zh-autoconvert in concert with procmail to accomplish this. zh-autoconvert automatically detects and converts Chinese encodings, and comes with a sample program called convmail.pl under /usr/doc/zh-autoconvert/examples. You can copy that to $(HOME)/bin, and create a $(HOME)/mimemail directory. Consult /usr/doc/zh-autoconvert/examples/procmail.example for instructions on building your own $(HOME)/.procmail configuration file.
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
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
Alternatively, install abiword_0.7.13-0.1 in Debian unstable. We hope to include the Chinese font settings above into the package in the near future. Also, the fonts.dir settings in CLE differ slightly, as follows:
/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 accepts both. I don't know which is more correct.
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
First, ensure that you are using version 1.3.12 or above. Next, follow the instructions on environment variables in
$(HOME)/.muttrc
set charset=gb2312
set send_charset=us-ascii:iso-8859-1:gb2312:big5:utf-8
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
Add the following to $(HOME)/.emacs
$(HOME)/.emacs
(setup-chinese-gb-environment)
(set-face-font 'default '("-isas-*-16-*-gb2312.1980-0" "-eten-*-16-*-big5-0") 'global '(mule-fonts) 'prepend)
If you encounter problems with this while using FSF Emacs or XEmacs,
please report them to debian-chinese-gb@lists.debian.org. X/Emacs is a
large and complex software, so please help us improve this FAQ.
In newer versions of Debian, XEmacs supports XIM, so you can use XIM
servers like xcin or chinput to enter Chinese. Refer to the relevant FAQs
for details.
Contributed by: mailto:scheme@cmmail.comScheme 2001/09/10
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
When locale setting LC_ALL is set to zh_CN or zh_TW, the buffer of Emacs and XEmacs under dired mode cannot be correctly decoded. According to various contributors, including Fumitoshi Ukai, you can add the following:
$(HOME)/.emacs
;; To ensure proper functioning under the dired mode
;; with zh_CN/zh_TW locale settings
(load "ls-lisp")
XEmacs21 does not contain the ls-lisp program, so you need to copy s-lisp.el from Emacs20. We suggest you copy it into $(HOME)/.xemacs, and add the above into $(HOME)/.xemacs/init.el. .
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
You need to set the proper font by hitting the right mouse button at the
upper left corner of the xmms window. Select Settings Fonts
use fontsets, and make sure that it contains the following:
-default-ming-medium-r-normal-*-*-120-*-*-c-*-big5-0Also select "Use X font", and ensure it contains the same.
or
-default-song-medium-r-normal-*-*-120-*-*-c-*-gb2312-0
Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06
Eterm 0.9.1 in Debian unstable already contains some Big5 patches, but the fonts are incorrect and the character set is Unicode, so it does not support Chinese by default.
You will need taipeifonts and xcin to support Chinese in eterm. Refer to other FAQs for details.
Eterm-0.9.1
![]()
begin attributes
font 1 8x16
font 2 12x24
end attributes
begin multichar
font 1 -*-fixed-medium-r-normal--16-*-*-*-*-*-big5.eten-0
font 2 -*-fixed-medium-r-normal--24-*-*-*-*-*-big5.eten-0
encoding big5
end multichar
begin xim
input_method xcin
preedit_type OverTheSpot
end xim
You may have to change the line with Eterm-0.9.1
. If you are using
Eterm 0.9, you will need to remove the trailing ``.1'', or the file will not
be read properly. Note that by default font 2 will be read. You can also use
the ``font default 1'' directive to select another default, or set it inside
Eterm. Refer to the Eterm manual for details.
Debian Chinese Project