当前位置:操作系统 > Unix/Linux >>

英文Locale下的中文显示和输入

Fedora Core 1 Install - Chinese

  - Install Fedora

  - Select only English(USA) locale.

  - Select and install packages Gnome, Development, Kernel Development, Gnome Development and X Development

  - Install Fonts

  - Copy Microsoft Windows's TrueType fonts to /usr/share/fonts/windows

  The fonts are available at \WINNT\Fonts or similar directory.

  Create the directory if no exist.

  Launch the following commands,

  # cd /usr/share/fonts/windows

  # ttmkfdir .

  # cp fonts.scale fonts.dir

  # chkfontpath --add /usr/share/fonts/windows

  - Fonts

  (Arial) - arial.ttf arialbd.ttf arialbi.ttf ariali.ttf

  (Courier New) - cour.ttf courbi.ttf courbd.ttf couri.ttf

  (Tahoma) - tahoma.ttf tahomabd.ttf

  (Verdana) - verdana.ttf verdanab.ttf verdanai.ttf verdanaz.ttf

  (Simplified Chinese) - simsun.ttc

  (Traiditional Chinese) - mingliu.ttc

  (Kroea) - batang.ttc gulim.ttc

  (Japenese) - msgothic.ttc msmincho.ttc

  - Install Input Method

  - SCIM

  Smart Common Input Method platform

  http://www.turbolinux.com.cn/~suzhe/scim/

  We can use SCIM in English locale (en_US.UTF-8)

  - Download

  - Main Program

  scim-0.8.2-1.i586.rpm

  http://www.turbolinux.com.cn/~suzhe....8.2-1.i586.rpm

  - Smart Pinyin

  scim-chinese-0.2.6-1.i586.rpm

  http://www.turbolinux.com.cn/~suzhe....2.6-1.i586.rpm

  - Install

  # rpm -hUv scim*.rpm

  - Configure

  - Modify /etc/X11/xinit/xinitrc.d/xinput

  Apply the following patch

  115c115,118

  < XIM="none"

  ---

  > # XIM="none"

  > if [ -e /usr/bin/scim ]; then

  > XIM="SCIM"

  > fi

  174a178,180

  > SCIM)

  > XIM_PROGRAM=scim

  > XIM_ARGS="-d" ;;

  Also change zh_CN*), zh_TW*), etc. to use SCIM if you want

  - Modify /etc/gtk-2.0/gtk.immodules

  Apply the following patch

  37c37

  < "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:zh"

  ---

  > "xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:zh"

  Also comment the IMs you don't need

  - Done

  Restart X

  - Patch usage

  # patch -f <PATCHFILE> <FILETOPATCH> -b
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,