LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2253|回复: 0

mepis chinese howto

[复制链接]
发表于 2006-9-21 09:35:56 | 显示全部楼层 |阅读模式
http://www.mepislovers.org/modul ... 6&post_id=20630

I guess there are a lot of people out there who'd love to have their SimplyMEPIS display and input Chinese. I'm one of them and this is my experience setting up Simplified Chinese support. This is adapted from Debian HK's "Make your Debian Sid support Chinese".

(Traditional Chinese can display, but the fonts look incomplete, some characters don't display at all. Anyone can help here? )

System info: SimplyMEPIS 2004.04 fresh install with kernel 2.6.7.

Everything has to be done as root.

Assuming you've already set up /etc/sources.list and done a apt-get update from kpackage,

1. Fire up kpackage to retrieve and install the following packages:
Quote:

    a. fcitx - a very small, easy to use X input method server, similar to MS IME
    b. xfonts-intl-chinese - fonts needed by fcitx
    c. ttf-arphic-bkai00mp - Arphic free traditional chinese KaitiM fonts
    d. ttf-arphic-bsmi00lp - Arphic free traditional chinese Mingti2L fonts
    e. ttf-arphic-gkai00mp - Arphic free simplified chinese KaitiM fonts
    f. ttf-arphic-gbsn00lp - Arphic free simplified chinese SungtiL fonts



2. Add the following line in /etc/locale.gen:
Quote:

    en_US ISO-8859-1
    zh_TW BIG5
    zh_CN GB2312



3. Then run locale-gen.
Quote:

    # locale-gen
    Generating locales...
    en_US.ISO-8859-1... done
    zh_CN.GB2312... doen
    zh_TW.BIG5... done
    Generation complete.
    #



4. Confirm the following locale name is showed after typing locale -a:
Quote:

    C
    POSIX
    en_US
    en_US.iso88591
    zh_CN
    zh_CN.gb2312
    zh_TW
    zh_TW.big5



5. In /etc/X11/Xsession.d directory, create a new file named 95xim with following content:
Quote:

    export LANG="zh_CN.GB2312"
    export LC_CTYPE="zh_CN.GB2312"
    export LC_ALL="zh_CN.GB2312"

    # fcitx will start in background by default
    /usr/bin/fcitx
    XMODIFIERS="@im=fcitx"

    export XMODIFIERS


(If you want to use Big5 encoding to view Traditional Chinese, replace all the "zh_CN.GB2312" in the file with "zh_TW.Big5". But it didn't look good on my system.)

6. Logout and then log in again to have the X server read the 95xim file. Fcitx should load at at the same time as the startup splash screen is displayed. It is a small toolbar at the top edge of the screen.

7. Press Ctrl+space in any input field or text editor to display the input bar. Then pinyin method can be used. To switch input method, click the pinyin button (1st button from right) on the main fcitx toolbar until it changes to the desired input method.

8. Done! Simplified Chinese will now display and input correctly.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表