制作有全拼及五笔功能的输入法(1) 本实例说明:制作一个具有全拼及五笔功能的输入法。 1、在windows系统下 步骤1:获取全拼原码表。 首先,利用搜索工具搜索Imegen.exe可执行文件,如图1所示。
2、在Linux系统下 步骤2:下载win码表转换成SCIM码表工具mb2scim。 http://down.50918.cn/33066_1634_detail_129925.html [root@localhost 0616]# unrar x mb2scim(ver20050409).rar 注:解压操作最好是在LINUX下进行。 [root@localhost 0616]# ls header.txt mb2scim.dpr mb2scim(ver20050409).rar readme.txt winzm-2k.txt mb2scim MB2SCIM.exe pv.txt WINPY.TXT zm.txt 其中,WINPY.TXT是在windows下生成的. t@localhost 0616]# ./mb2scim WINPY.TXT winpyx.txt This module must be distributed under the terms of the GNU General Public License (GPL), version 2. A copy of this license can be found at:http://www.borland.com/kylix/gpl.html. MB2SCIM ver. 20050402 Sofoot Group 2001-2005 www.ai7.org sofoot@163.com Reading... ################################################# Writing... ################################################# OK
步骤4:获到五笔码表。 [root@localhost 0616]# cd /usr/share/scim/tables/ [root@localhost tables]# scim-make-table Wubi.bin -o Wubi.txt Loading table file Wubi.bin ... Saving table file Wubi.txt ... 步骤5:生成全拼五笔码表,即全拼码表与五笔码表合并。 用gedit分别打开winpyx.txt和Wubi.txt。 如图3所示: