CS691x Project

Jiefeng Li, Junli Liu

Display, Input and Print Chinese in Linux

 

1. Project Goal

2. Simple Introduction to Chinese

3. Installation and Configuration of cxterm

3.0. What is cxterm

3.1. Hardware and System Software Requirement

4. Display Chinese

5. Input Chinese

6. Print Chinese

7. What to do next

 

1. Project Goal:

2. Simple Introduction to Chinese

3. Installation and Configuration of cxterm:

3.0. What is cxterm?
-- a Chinese virtual terminal running under X Window System

3.1. Hardware and System Software Requirement

  • Any hardware configuration that supports Unix and X window.

  • Examples:
            Sun workstation, HP, DEC station, IBM/RT, IBM/RS, SGI, ...
            386/486/Pentium PC (with VGA or better), Macintosh,
            Visual X Terminal, NCD, HP/X, ...
  • A complete version of X Window System Version 11 (Release 4 or higher). Cxterm needs the following X11 standard libraries: Xlib, Xt, Xaw, Xmu, and Xext.
  • 3.2. Installation and Configuration of cxterm-5.0

    3.2.1. Excerpts for installation from cxterm5.0.p3.tar.gz file:

    Download cxterm5.0.p3.tar.gz from ftp://ftp.ifcss.org/pub/software/x-win/cxterm/,
    which contains both cxterm codes and Chinese fonts.

    # tar -xvzf cxterm5.0.p3.tar.gz    ; decompres the packed
    # cd cxterm-5.0 
    # ./config.sh                                         ; login as root to execute config.sh

      0. Read COPYRIGHT Notice
      1. Compile, Install, and Configure "CXTERM 5.0" in One Step
      2. Compile cxterm (not to install)
      3. Install cxterm (after successful compilation in 2)
      4. Install additional Chinese font(s) for your X window
      5. Configure your account for using cxterm (after installation in 3)
      x. Exit
    Please choose (0/1/2/3/4/5/x) :

    # 1                    ; choose 1 to start compiling

        1. Install in directories of your choice.
        2. Install in the system X Window directories (may need "root" access).
        0. Exit cxterm installation.
    Please choose (1,2,0) [1] :

    # 1                    ; choose 1 to install it in the directories of your choice

        Where do you want to put the executable binary files for cxterm?
        Enter the full path name [/home/grad4/jliu/bin] :
    # /home/grad4/jliu/cxterm/bin

        Where do you want to put the dictionary files for cxterm?
        Enter the full path name [/home/grad4/jliu/dict] :
    # /home/grad4/jliu/cxterm/dict
     
        Where do you want to put the cxterm manual pages?
        Enter the full path name [/home/grad4/jliu/man] :
    # /home/grad4/jliu/cxterm/man
     
        Where do you want to put the cxterm documentation?
        Enter the full path name [/home/grad4/jliu/doc/cxterm] :
    # /home/grad4/jliu/cxterm/doc/cxterm
    #
        Do you want to do the font installation (y/n) [n] ?
    # y
        Where do you want to put the X11 font files?
        Enter the full path name [/home/grad4/jliu/xfonts] :
    # /home/grad4/jliu/cxterm/xfonts
    #
        a window will pop up to display chinese characters (font verification)
    #
        Do you want to set up your account (y/n) [y] ?
    # n
         CXTERM 5.0 installation completed.

    # export PATH=$PATH:/home/grad4/jliu/cxterm/bin ; add path
    # CXterm -gb/-big5           ; start cxterm using gb/big5 codes

    3.2.2. installation from .rpm files:

    4. Display Chinese:

    5. Input Chinese:

    F1    -->    English
    F2    -->    IC ( Internal Code)                       
    F3    -->    cxterm Input Configuration
    F4    -->    TonePY (Dai4 Diao4 Pin1 Yin1) 
    F5    -->    QJ (Quan2 Jiao3)
    F6    -->    PY (Wu2 Diao4 Pin1 Yin1)     ; I use it often
    F7    -->    WuBi                                       ;  for professional typists
    F8    -->    English
    F9    -->    SW (Shou3 Wei3)
    F10  -->    TeleCode
    F11  -->    Hiragana

    6. Print Chinese:

    cnprint is a printing tool for the purpose of changing Chinese text files into PostScript format,  and it supports GB, HZ, and BIG5 codes simultaneously.

    7. What to do next: