Chinese solution for emacs

| No Comments | No TrackBacks

Chinese solution for emacs

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
====================================================================================================
    NTEmacs Chineselization
    Version: NTEmacs 21.1
    Environment: cygwin, Windows 2000 SP2
===================================================================================================
    1. Check menu Options->Mule->Set Language Environment->Chinese->Chinese-GB
       Turn on Chinese mode
    2. Click menu Options->Save Options
    3. WuBi input method
       Download WuBi.tar.gz from http:www.linux.org.cn/emacs/WuBi.tar.gz or http:www.17fun.org/emacs/WuBi.tar.gz
       Extract both WuBi.el and WuBi.elc to DRIVE:/.../emacs-21.1/lisp
       Add following into .emacs
             ; Chinese Wubi IME
        (register-input-method  "chinese-wubi" "Chinese-GB" 'quail-use-package "WuBi" "ChIME::YuleWB::" "WuBi")
         If you like to set WuBI as default Chinese IME, just open .emacs and find "chinese-py-punct" change to 
         "chinese-wubi".
    4. Add following line into .emacs for change font menu to Unix style
        ; Set font select style to Unix
        (setq w32-use-w32-font-dialog nil)
    5. Install BDF fonts
       Reference: http:www.gnu.org/software/emacs/windows/faq5.html#windows-font
        I. Download BDF fonts of ftp:ftp.gnu.org/gnu/intlfonts/intlfonts-1.2-split/16dots.tar.gz
          Extract 16dots.tar.gz to a directory
            i.e. i:/gnu/intlfonts-1.2
       II. Set bdf font directory, add following lines into .emacs
        ; bdf font directory
        (setq bdf-directory-list
                 '("i:/gnu/intlfonts-1.2/Asian" "i:/gnu/intlfonts-1.2/Chinese" "i:/gnu/intlfonts-1.2/Chinese.X"
                "i:/gnu/intlfonts-1.2/Ethiopic" "i:/gnu/intlfonts-1.2/European" "i:/gnu/intlfonts-1.2/Japanese"
                "i:/gnu/intlfonts-1.2/Japanese.X" "i:/gnu/intlfonts-1.2/Korean.X" "i:/gnu/intlfonts-1.2/Misc/"))
        (setq w32-bdf-filename-alist
                 (w32-find-bdf-fonts bdf-directory-list))
       III. Create fontset by add following lines into .emacs
         (create-fontset-from-fontset-spec
         "-*-fixed-medium-r-normal-*-16-*-*-*-c-*-fontset-bdf,
         japanese-jisx0208:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1983-*,
         katakana-jisx0201:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0201*-*,
         latin-jisx0201:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0201*-*,
         japanese-jisx0208-1978:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1978-*,
         thai-tis620:-misc-fixed-medium-r-normal--16-160-72-72-m-80-tis620.2529-1,
         lao:-misc-fixed-medium-r-normal--16-160-72-72-m-80-MuleLao-1,
         tibetan-1-column:-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-80-MuleTibetan-1,
         ethiopic:-Admas-Ethiomx16f-Medium-R-Normal--16-150-100-100-M-160-Ethiopic-Unicode,
         tibetan:-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-160-MuleTibetan-0")    
         IV. Add bdf font to font-encoding-alist
           ;; Need to add some fonts to font-encoding-alist since the bdf fonts
          ;; are type 0 not the default type 1.
           (setq font-encoding-alist
           (append '(("MuleTibetan-0" (tibetan . 0))
                 ("GB2312"        (chinese-gb2312 . 0))
                 ("JISX0208"      (japanese-jisx0208 . 0))
                 ("JISX0212"      (japanese-jisx0212 . 0))
                 ("VISCII"        (vietnamese-viscii-lower . 0))
                 ("KSC5601"       (korean-ksc5601 . 0))
                 ("MuleArabic-0"  (arabic-digit . 0))
                 ("MuleArabic-1"  (arabic-1-column . 0))
                 ("MuleArabic-2"  (arabic-2-column . 0))) font-encoding-alist))
            V. Set DBF font as default
            (set-default-font "fontset-bdf")
 
    6. Bonus option: add following line can change to a good background color, which is my favorite.
        ; Set background color
            (set-background-color "mintcream")
====================================================================================================
    End of NTEmacs Chineselization
====================================================================================================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

No TrackBacks

TrackBack URL: http://www.yuleshow.com/cgi-bin/mt/mt-tb.cgi/713

Leave a comment

Pages

Powered by Movable Type 5.01

About this Entry

This page contains a single entry by Yule Show published on June 1, 2004 12:38 PM.

Spell check for emacs was the previous entry in this blog.

Alternative Chinese solution is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.