Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2002 11:27:33 +0000
From:      "Liu Siwei" <swliu77@hotmail.com>
To:        freebsd-questions@cn.FreeBSD.org
Cc:        phj@cn.freebsd.org
Subject:   FreeBSD使用Linux的miniChinput实现汉字输入
Message-ID:  <F264QAkBrKA9jeIjF9Q0001a9ea@hotmail.com>

next in thread | raw e-mail | index | archive | help
大家好:
    
我非常喜欢FreeBSD,而且一直在使用它。但是我对它的中文文件系统不支持非常遗憾,而且phj的两个汉字输入的ports使用起来也不尽人意!freebsd的chinput在输入较快时会down掉,chinput2需要mysql,很麻烦!而且输入也不方便。
    
因此我就设法改变FreeBSD的汉字输入。浏览FreeBSD的handbook时发现它说linux的模拟能运行90%的linux程序,我突然想起是否能在FreeBSD上直接运行相对比较成熟的linux上的chinput。所以我用rpm(在/compat/linux/usr/bin/下)安装了redhat7.2第二张光盘上的miniChinput(使用了强制安装的选项)。然后ldd 
/compat/linux/usr/bin/chinput发现缺少相应的库文件,我又安装了以下的rpm包:
imlib
libjpeg
libgif
libtiff
libuntiff
直至ldd 
/compat/linux/usr/bin/chinput时不缺文件为止。然后修改Chinput.ad(在/compat/linux/usr/lib/Chinput下),把字体社置中的big5字体改为gb2312.1980(因为我的系统里没有安装big5字体)。
    到此就一切OK了!
    在$HOME/.xinitrc中设置:
......
export LANG=zh_CN.EUC
export XMODIFIERS=@im=Chinput
/compat/linux/usr/bin/chinput &
......
然后启动或重启X,就可以实现和linux下一样方便的汉字输入了,比起FreeBSD下的两个ports使用方便多了。

phj:能否把这做个port放在www.freebsd.org上呢?


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F264QAkBrKA9jeIjF9Q0001a9ea>