[Top bar]
[Bottom bar]
This article is available in: English  Castellano  Deutsch  Francais  Nederlands  Portugues  Russian  Turkce  Korean  

[Penelope Marr]
by Penelope Marr
<marr(at)nccu.edu.tw>

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.
Content:

 

Enabling Chinese on Linux

[Ilustration]

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.


Webpages maintained by the LinuxFocus Editor team
© Penelope Marr, FDL
LinuxFocus.org
Translation information:
en --> -- : Penelope Marr <marr(at)nccu.edu.tw>

2002-10-20, generated by lfparser version 2.32