http://CJK-Howto.net


CJK-HOWTO

CJK-Testing

Fonts-HOWTO

DownloadFonts

Unicode

UTF

Config-Examples


Console

Terminal

Editors

InputMethod

Mail

Printing



1U Rackmount Chassis

Custom-Chassis.com

Linux-1U.net

1U-ITX.net


ITX-Blades.net


Small PC cases

Mini-Box.net

Wrap-Box.net

Wrap-OS.net


Wan-Sim.net



Linux-Consulting.com

Linux-CAE.net

Linux-Sec.net

Linux-Boot.net

Linux-Backup.net

Linux-Wireless.org

Linux-Office.net

Linux-Video.net

Linux-VOIP.net

Linux-Jobs.net

Linux-Diff.net

1U-Raid5.net

Linux-Howto.net


Spam Reporting



Free Linux CDs

ISO9660.org

Distro-CD.org

Patch-CD.org




Contact



Linux is a registered trademark of
Linus Torvalds

More Linux Legalese


CJK-Howto
( Chinese-Japanese-Korean )

( chinese emphasis )



  • New CJK Howto

  • Minimum Setup
  • Install your multi-lingual Xterm and input method
    Some basic commands to test your multi-lingual system
      you# source ~/.i18n.big5
      you# CXterm -big5 &
      you# CXterm -gb &

      cxterm# xcin &

      cxterm# xxx demo.BIG5.txt
      cxterm# xxx demo.GB.txt
        where xxx == more, less, vi

      cxterm# echo "Send yourself a test big5 email" | \
        mutt -s "Send big5 email" -a Big5.content.txt you@your_domain.com

        pine-4.3 seems to send/read big5 emails w/o problems
        ( pine does base64 encode though )

    General Info
    UniCode.org
    UniCode.org CJK Unihan
    hclrss.demon.co.uk Unicode Resources

    Li18nux.org
    Debian.org Intro to i18n
    Xcin.linux.org.tw i18n Intro ( in chinese )

    Gnome.org i18n
    KDE.org International
    RPMFind.net International KDE
    kde-i18n-Chinese-Big5-1.93-1.noarch.rpm
    kde-i18n-Chinese-1.93-1.noarch.rpm
    Linux-Easy.com Big5 KDE
    Linux-Easy.com Traditional KDE
    Linux-Easy.com Japanese KDE
    Linux-Easy.com Korean KDE

    Non-English Linux Distros

    HowTo - FAQs
    HOWTOs
    FAQs
    Chinese-version HOWTOs
    Misc
    Chinese Fonts
    Big5 - HongKong/Taiwan
    GB --- mainland china - GuoBiao

    *.bdf Binary Distribution Format
    *.pcf Portable Compiled Format
    *.snf Server Normal Format

    Utah.edu X11 Window Fonts
    X-TT.dsl.gr.jp X11 TT Font
    FreeType.org

    Cathay.net Installing Fonts
    Ocrat.com GB and Big5 fonts
    linux.cis.NCTU.edu.tw fonts
    MIT.edu lots of fonts, gb2ps, hbf, XCterm.ad
    CUHK.hk lots of fonts
    cuhk.hk font convertors
    stben.be fonts
    Debian.org Fonts
    UCI.edu gbk, utf8 fonts
    Arphic.com.tw fonts-ttf-gb2312, fonts-ttf-big5

    Abobe.com simplified
    Abobe.com traditional

  • Installing fonts
      Typical path to Chinese fonts that you should install into:
        /usr/X11R6/lib/X11/fonts/Chinese
        /usr/local/Chinese/fonts

      # Creates a file: fonts.dir
      mkfontdir /usr/local/Chinese/fonts

  • Temporarily install the fonts ( or edit XF86Config )
      xset +fp /usr/local/Chinese/fonts
      xset fp rehash

  • Check if your Chinese fonts are loaded/recognized
      xlsfonts | grep -i big5
      xlsfonts | grep -i gb

      Tell X11 Apps to talk to xcin ( input method server )
        export XMODIFIERS=@im=xcin

      env | grep LANG

  • Automatically load the new fonts ( after testing )
      vi /etc/X11/XF86Config
        # wherever you loaded your Chinese fonts
        FontPath "/usr/local/Chinese/fonts"

      Restart X11

  • Example Chinese Docs
    Mojikyo.org MultiLingual Test Page
    Vancouver-WebPages.com MultiLinugal Test Pages
    Omron.co.jp
    cl.cam.ac.uk UTF-8 Demo
    Cogsci.ed.ac.uk Unicode Demo

    Cnd.org ( Chines News Digest )
    Cathay.net
    Ocrat.com Display Chinese Text
    Ocrat.com GB and Big5
    RPI.edu
    LinuxAid.com.cn
    Houstoncul.org Big5
    UCI.dedu gbk test docs
    UCI.edu utf8 test docs

    Cuhk.edu.hk Catonese

    Bell-Labs Mandarin speech synthesis
    Bell-Labs.com Mandarin-GB speech synthesis

    Various Chinese Software
    Pitt.edu
    linux.cis.NCTU.edu.tw various apps
    Sunsite.Bilkent.edu.tr lots of (x)terms, Chinese-Tools,
    Iblilio.org Chinese ( chinese-tools ..
    cuhk.hk linux apps
    ORA.com
    Cpatch.org
    LinPus.com.tw
    LinuxEden.com
    Suse.com kde-i18n-zh_TW-2.2.1-0.noarch.rpm
    ccsun57.cc.ntu.edu.tw
    Debian.org Debian Chinese Project News

    EastLinux.com
    CLE v1.0 (atayal) Release - Chinese Language Extension
    FreeBSD.org Ports to Chinese fonts
    FreshPorts.org Ports to Chinese fonts
    cnpa.yzu.edu.tw FreeBSD

    linux.cis.nctu.edu TaBE ( Taiwan and Big5 Encoding )

    programmer.lib.sjtu.edu.cn CCE - Chinese Console Environment


    X11 Configurations
  • X11 Setup
    • X Server
    • ~/.Xdefaults
        xcin.in1: 3-dayi.tab
        xcin.in2: array30.tab
        xcin.in4: cj.tab
        xcin.in5: pinyin.tab
        xcin.in9: zmdbosh.tab

        xtDefaultFontSet: -*-big5-0,-adobe-*-iso8859-1
        xedit*international: True
        xedit*fontSet: -*-big5-0,-adobe-*-iso8859-1

        # xrdb -merge ~/.Xdefaults
        # xrdb -load ~/.Xdefaults

    • ~/.xinitrc
        LANG="zh_TW.big5"
        export LC_CTYPE="zh_TW.big5"
        export LC_ALL="zh_TW.big5"
        export XMODIFIERS="@im=xcin"

        xcin &

      cnd.org Setting Up WWW Clients to Launch Chinese Viewer
      Cathay.net .mime.types, .mailcap

    • ~/.mime.types
        application/chinese-gb gb
        application/chinese-hz hz
        application/chinese-big5 big5 b5

    • ~/.mailcap
        application/chinese-gb; xhzview %s
        application/chinese-hz; hz2gb < %s | xhzview
        application/chinese-big5; b2g %s | xhzview

    • ~/.il8n -- /etc/sysconfig/i18n
      • For Big5 Support ( ~/.i18n.big5 )
          LC_ALL=zh_TW.big5
          ENC=big5
          XIM=xcin
          XMODIFIERS="@im=xcin"

      • For GB2312 Support ( ~/.i18n.gb )
          LC_ALL=zh_CN
          ENC=gb
          XIM=xcin-zh_CN
          XMODIFIERS="@im=xcin-zh_CN"

      • Reset back to English ( ~/.i18n.en )
          export LANG=en_us
          unset LANGUAGE
          unset LC_ALL
          unset LC_CTYPE
          unset ENC
          unset XIM
          unset XMODIFIERS


    • locale
        Check for path
          /usr/X11R6/lib/X11/locale
          /usr/lib/X11/locale -- ( usually a link to the above )
          /usr/lib/locale
          /usr/share/locale
          /usr/local/share/locale -- ( installed by mutt-1.3.23 )

        cd /path/locale ; ln -s zh_TW zh_TW.big5

        grep -i zh_TW.big5 /path/to/locale/locale.dir
        grep -i zh_CN /path/to/locale/locale.dir

        vi /usr/lib/X11/locale/zh/XLC_LOCALE
          use_stdc_env False

        locale -a | grep zh


  • MultiLingual Xterms
  • xterm ( MultiLinugal )
  • cxterm ( Chinese xterm )
  • kterm ( MultiLingual Xterm )
  • rxvt.org ouR eXtended Virtual Terminal

      ICS.UCI.edu rxvt

      crxvt -im cj
      crxvt -im xcin -km big5
      crxvt -font 8x16 -fnb5 taipei16

  • Korean Xterms
  • X11 Input Methods
  • Chinese Input Servers
      Xcin.Linux.org.tw xcin, libtabe ( X Window Chinese INput )
      gnu.org Unicon for Chinese/Korean/Japanese
      ftp.sra.co.jp kinput2, kterm
      SourceForge.net DIM Debian Chinese Input Method
      chinput


      ~/.xcinrc -- /etc/chinese/xcin/xcinrc
      cp /usr/src/xcin/etc/{xcinrc,xcinrc.LINUX} /etc/chinese/xcin
      -- or -- /usr/local/etc/xcinrc

      xcin seems to install into: /usr/local/share/locale

      xcin: xx : X locale "zh_TW.big5" is not supported by your system
        Verify that xcin is looking in the right locale directory

  • Japanese Input Servers
  • Korean Input Servers
      ami
      hanIM


  • Editing Chinese Docs
  • Editors
      xedit
      cvim, celvis, cjoe,
      vim

        ./configure --with-x --enable-multibyte --enable-fontset --enable-xim

      mule

      Tamago

  • Emailing Chinese Docs
  • MTA
  • MUA
  • Web Browsers for Chinese Sites
    Printing Chinese Docs

    Linux User Groups

    Misc Chinese Docs
  • MS Windows stuff


  • Copyright © 2000
    Linux-Consulting
    All Rights Reserved.
    Updated: Sun Oct 16 18:30:41 2005 PDT