[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to set up Chinese display / input environment under Linux Fedora Core 4



 
    
how to set up Chinese display / input environment under Linux Fedora Core 4
---------------------------------------------------------------------------

+ running Fedora Core 4 English version:

[terrence@raider ~]$ uname -a
Linux raider 2.6.13-1.1526_FC4 #1 Wed Sep 28 19:15:04 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

[terrence@raider ~]$ cat /etc/fedora-release 
Fedora Core release 4 (Stentz)

+ download and install fcitx:

[terrence@raider ~]$ rpm -qa | grep fcitx
fcitx-3.2.050827-fc4

+ fcitx document asks to add this part, but doesn't work at all

[terrence@raider ~]$ cat .xinput.d/zh_CN 
XIM=fcitx
XIM_PROGRAM=fcitx
GTK_IM_MODULE=fcitx
XMODIFIERS="@im=fcitx"
gnome-im-settings-daemon >/dev/null

+ put something .bashrc:

[terrence@raider ~]$ cat .bashrc
# .bashrc
...
## default LANG=en_US.UTF-8
unset LANG
unset GDM_LANG

## FCITX 
# export LC_CTYPE="zh_CN"		# LC_CTYPE will decide the default character encoding in gnome-terminal
export XMODIFIERS="@im=fcitx"

+ delte .gconfd, .gconf, .gnome2_private, .gnome2 directories under home 
  directory; login GNOME Windows Manager session with zh_CN as the default 
  language, create zh_CN and en_US profiles for gnome-terminal 

  in gnome-terminal en_US profile set font "MiscFixed 14"
  in gnome-terminal zh_CN profile set font "AR PL KaitiM GB 16"

+ login out GNOME session; login FVWM session

[terrence@raider ~]$ ls -al .fcitx/
total 2292
drwx------   2 terrence terrence    4096 Oct 20 17:52 .
drwxr-xr-x  47 terrence terrence    4096 Oct 20 18:16 ..
-rw-r--r--   1 terrence terrence    1685 Oct 20 17:05 config
-rw-r--r--   1 terrence terrence     196 Oct 20 17:52 profile
-rw-r--r--   1 terrence terrence  553464 Oct  2 22:14 pyindex.dat
-rw-r--r--   1 terrence terrence 1763255 Oct 20 17:52 wbx.mb

[terrence@raider ~]$ fcitx 

[terrence@raider ~]$ gnome-terminal --window-with-profile=en_US --geometry 80x60

[terrence@raider ~]$ gnome-terminal --window-with-profile=zh_CN --geometry 80x60

BTW, you can copy an existing gnome-terminal "en_US" and "zh_CN" configuration to your home directory:

[terrence@raider ~]$ find .gconf/apps/gnome-terminal/
.gconf/apps/gnome-terminal/
.gconf/apps/gnome-terminal/global
.gconf/apps/gnome-terminal/global/%gconf.xml
.gconf/apps/gnome-terminal/profiles
.gconf/apps/gnome-terminal/profiles/en_US
.gconf/apps/gnome-terminal/profiles/en_US/%gconf.xml
.gconf/apps/gnome-terminal/profiles/zh_CN
.gconf/apps/gnome-terminal/profiles/zh_CN/%gconf.xml
.gconf/apps/gnome-terminal/profiles/%gconf.xml
.gconf/apps/gnome-terminal/profiles/Default
.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml
.gconf/apps/gnome-terminal/%gconf.xml



Google