Subsections

3 Word Processing in Chinese

3.1 CJK

3.2 How do I use latex2html to generate Chinese HTML pages?

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



Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06



Latex2html already supports CJK languages. Just add:

charset='gb2312';
to $(HOME)/.latex2html-init, and run:
latex2html -iso CN foo
to generate the HTML file.

3.3 Why does vim only delete half a Chinese character each time?

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/12/01



Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06



First, set up your environment variables according to FAQ 2.4. Next, add the following:

set fe=prc
to $(HOME)/.vimrc.

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/12/01



Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06



This is no longer necessary in vim 6.0.

3.4 How can I display Chinese in xpdf?

Contributed by: mailto:foka@debian.orgAnthony Fok 2001/03/22



Contributed by: mailto:ygh@debian.orgYu Guanghui 2001/10/20



Translated by: mailto:szuwen.huang@attbi.comSteven Huang 2002/06/06



he correct fonts are only available in Woody (testing) and Sid (unstable) . You will also need to add the following in to your emph$(HOME)/.Xresources file:

$(HOME)/.Xresources
xpdf.t1TimesRoman: /usr/share/fonts/type1/gsfonts/n021003l.pfb
xpdf.t1TimesItalic: /usr/share/fonts/type1/gsfonts/n021023l.pfb
xpdf.t1TimesBold: /usr/share/fonts/type1/gsfonts/n021004l.pfb
xpdf.t1TimesBoldItalic: /usr/share/fonts/type1/gsfonts/n021024l.pfb
xpdf.t1Helvetica: /usr/share/fonts/type1/gsfonts/n019003l.pfb
xpdf.t1HelveticaOblique: /usr/share/fonts/type1/gsfonts/n019023l.pfb
xpdf.t1HelveticaBold: /usr/share/fonts/type1/gsfonts/n019004l.pfb
xpdf.t1HelveticaBoldOblique: /usr/share/fonts/type1/gsfonts/n019024l.pfb
xpdf.t1Courier: /usr/share/fonts/type1/gsfonts/n022003l.pfb
xpdf.t1CourierOblique: /usr/share/fonts/type1/gsfonts/n022023l.pfb
xpdf.t1CourierBold: /usr/share/fonts/type1/gsfonts/n022004l.pfb
xpdf.t1CourierBoldOblique: /usr/share/fonts/type1/gsfonts/n022024l.pfb
xpdf.t1Symbol: /usr/share/fonts/type1/gsfonts/s050000l.pfb
xpdf.t1ZapfDingbats: /usr/share/fonts/type1/gsfonts/d050000l.pfb
xpdf.chineseGBFont: -*-song-medium-r-normal-*-%s-*-*-*-*-*-gb2312.1980-0
xpdf.chineseCNSFont: -*-ming-medium-r-normal-*-%s-*-*-*-*-*-big5-0

After reloading the X resources, xpdf should be able to display Chinese characters.

Debian Chinese Project