How to use Chinese in Debian Gnome Gui Desktop
[steps]
0. locale support for chinese
1. chinese font file ("simsun.ttf")
2. font-config
3. X input method (XCIN from http://xcin.linux.org.tw)
4. Gnome settings
[details]
[0.1 modify "/etc/locale.gen"]
add this line(for simplified-chinese i.e. GB2312)
"zh_CN gb2312"
[0.2 run "locale-gen" as root]
[1.1 copy font file]
source file: we need "simsun.ttf" (this file maybe
found at http://www.arphic.com.tw)
the file size is about 10 MegaBytes
put this file into "~/misc/fonts"
[2.1 edit "~/.fonts.conf"]
make sure that this file contains this line
"<dir>~/misc/fonts</dir>"
the dir "~/misc/fonts" is where we will put our
font-file and can be changed if you like somewhere
else.
if you prefer system-wide usable font file, then you
should put the font-file into a system-wide readable
dir, for example "/misc/fonts" and edit
"/etc/fonts.conf" to point to that dir or put
font-file into dir declared by "<dir>" directive in
"/etc/fonts.conf"
[2.2 run "fc-list" as dedicated user]
this step may not be necesary.
I'm not sure this may cause font-config to update its
font-cache.
[3.1 run "apt-get install xcin" as input]
this will install package "xcin"
details about this package may be found at
http://xcin.linux.org.tw
[3.2 test xcin as root]
enter this two command:
root# export LANG=zh_CN
root# xcin
then you'll get outputs like these:
============================================================================
XCIN (Chinese XIM server) version xcin <version
number>.
(module ver: <version number>, syscin ver: <version
number>).
(use "-h" option for help)
xcin: locale "zh_TW.Big5" encoding "big5"
xcin: XIM server "xcin" transport "X/"
xcin: inp_styles: Root OverTheSpot
============================================================================
Congratulations! this means that your xcin dose work.
if you get error messages like this:
============================================================================
xcin: locale "zh_CN.GB2312" encoding "gb2312"
xcin: error: /etc/xcinrc:
IM section "array30": SETKEY: value not
specified.
============================================================================
this means your "/etc/xcinrc" contains error, this is
due to the package author 's mistake
modify "/etc/xcinrc" , there is some text like below ,
delete the string "array30", keep anything else
untouched
===========================================
...
...
(define zh_CN.GB2312
'((DEFAULT_IM "pinyin")
(DEFAULT_IM_MODULE "gen_inp")
(DEFAULT_IM_SINMD "DEFAULT")
(PHRASE "default.phr")
(CINPUT (pinyin shuangpin jtcj_gb
wubizixing phonegb2
array30 zh_hex))
^^^^^^^^^--delete!
...
...
============================================
you 'll get something like this
========================================
...
...
(define zh_CN.GB2312
'((DEFAULT_IM "pinyin")
(DEFAULT_IM_MODULE "gen_inp")
(DEFAULT_IM_SINMD "DEFAULT")
(PHRASE "default.phr")
(CINPUT (pinyin shuangpin jtcj_gb
wubizixing phonegb2
zh_hex))
...
...
========================================
[4.1 start Gnome]
choose language "chinese - simplified" from gnome
login window
and login
[4.2 automatic start "xcin" when login into gnome]
this can be done by "Application -> Desktop seting ->
startup"
[4.3 logout and save session-default and re-login]
you'll find your desktop is now chinese and a small
xcin window located in the desktop
press CTRL-left_shift to toggle among various input
method
input methods include: Wubi, Pinyin, Zhuyin and so on
you can start gedit from "application -> accessory" to
test if you can input chinese
[A]
XCIN seems does not support UTF-8
date: 10 Oct, 2004
hope this will help.
Good luck!
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
Reply to: