Home Map Index Search News Archives Links About LF
[Top Bar]
[Bottom Bar]
[Penelope Marr]
Penelope Marr
About the Author: He enjoys most time on Rock 'n Roll music and Linux. Loves to work with Linux fans all over the world. And spends spare time learning script languages.

Displaying Chinese in Netscape
Big5 fonts

Linux in Chinese


Abstract: This brief article describes how to enable chinese locale on a "standard" linux box. Much of this information and more is contained in the Chinese-HOWTO. It is supplied here in order to provide the minimum information to those interested on following upcoming articles of LinuxFocus in Chinese.

How to display Chinese characters in your Netscape Navigator

Netscape 2.0 or later supports both BIG5 and GB character codes, but we will explain the installation of the BIG5 character set only. For the time being, the LinuxFocus Chinese edition mainly supports BIG5 Chinese. Contributions from GB code s is welcome, and the following directions should be equally applicable to GB code as well.

To display Chinese in Netscape there are three steps:

  1. Get the Chinese fonts.
    Although many modern distributions of Linux include this font nevetheless you can always download BIG5 fonts from ftp://ftp.ifcss.org/pub/software/fonts/big5/bdf/ Download eb5-24k2.bdf.gz to your local directory. This file has to be prepare to installation into your X system. First convert the '.bdf' into a '.pcf' file and then compress it.
    # gzip -cd eb5-24k2.bdf.gz | \
    #  bdftopcf -t > eb5-24k2.pcf
    # gzip eb5-24k2.pcf 
  2. Install the Chinese X fonts.
    # mv eb5-24k2.pcf.gz /usr/X11R6/lib/X11/fonts/misc/
    # cd /usr/X11R6/lib/X11/fonts/misc
    # mkfontdir .

    The file fonts.dir in that directory should now contain this line:

    eb5-24k2.pcf.gz -kc-kai-medium-r-normal-fantizi-24-240-75-75-c-240-big5-0

    You could create an alias for the font as well. For instance, add the following line to your fonts.alias file:

    taipeik24 "-kc-kai-medium-r-normal-fantizi-24-240-75-75-c-240-big5-0"

    Next, let the X Server to reload the new font by running:

    # xset fp rehash
  3. Run 'netscape', and configure 'Document Encoding' as 'Traditional Chinese'
  4. Select the Chinese fonts you want.

The above description is, in fact, a summary from the Chinese-HOWTO. If you find any problems using Chinese fonts be sure to refer to the first.

This website is maintained by Miguel Angel Sepulveda
© Penelope Marr
LinuxFocus 1998