免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 827 | 回复: 0
打印 上一主题 下一主题

mepis chinese howto [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-29 21:36 |只看该作者 |倒序浏览

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.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26092/showart_289277.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP