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

王朝other·作者佚名  2008-05-18
窄屏简体版  字體: |||超大  

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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航