LinuxSir.Org  
| 网站首页 | 注册账号 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
 
主题工具
旧 06-09-21, 09:35 第 1 帖
xiaoarly
 
 
 
注册会员  
  注册日期: Sep 2006
  帖子: 138
  精华: 0
 

标题: mepis chinese howto


http://www.mepislovers.org/modules/n...&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.
  xiaoarly 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 21:50


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2010, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2009, LinuxSir.Org