From owner-freebsd-questions Thu Jan 17 3:27:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f264.law9.hotmail.com [64.4.8.139]) by hub.freebsd.org (Postfix) with ESMTP id 481C437B400 for ; Thu, 17 Jan 2002 03:27:33 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 17 Jan 2002 03:27:33 -0800 Received: from 202.98.16.2 by lw9fd.law9.hotmail.msn.com with HTTP; Thu, 17 Jan 2002 11:27:33 GMT X-Originating-IP: [202.98.16.2] From: "Liu Siwei" To: freebsd-questions@cn.FreeBSD.org Cc: phj@cn.freebsd.org Subject: FreeBSD使用Linux的miniChinput实现汉字输入 Date: Thu, 17 Jan 2002 11:27:33 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 17 Jan 2002 11:27:33.0230 (UTC) FILETIME=[F4D7D8E0:01C19F49] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 大家好: 我非常喜欢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