LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1231|回复: 4

如何使用scim的大众形音码表转成ibus码表并在ibus上运行。

[复制链接]
发表于 2009-2-25 19:11:09 | 显示全部楼层 |阅读模式
如何使用sicm的大众形音码表转成ibus并能运行。
以前把大众形音专成scim码表,之后用一条命令
scim-make-table adzxy.txt -b -o /usr/share/scim/tables/Xdzxy.bin
就可一在scim上运行。
请问大家ibus如何做呢???
发表于 2009-2-26 09:43:39 | 显示全部楼层
码表生成命令是:ibus-table-createdb

转换前要按ibus的格式生成txt文件,然后再用ibus-table-createdb  s 码表文件.txt,它会生成如下文件:.db,.engine,拷至相应目录即可。

附件是码表的template.txt

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-26 10:04:28 | 显示全部楼层
谢谢.
可不可以再告诉我下这是为什么?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2009-2-26 10:29:21 | 显示全部楼层
ibus-table-createdb --help
Usage: tabcreatedb.py [options]

Options:
  -h, --help            show this help message and exit
  -n NAME, --name=NAME  set the database name we will use, default is none
  -s SOURCE, --source=SOURCE
                        tell me which file is the source file of IME, default
                        is xingma.txt.bz2
  -e EXTRA, --extra=EXTRA
                        tell me which file is the extra words file for IME,
                        default is
  -p PINYIN, --pinyin=PINYIN
                        tell me which file is the source file of pinyin,
                        default is /usr/share/ibus-
                        table/data/pinyin_table.txt.bz2
  -o, --no-create-index
                        do not create index on database, only for distrubution
                        purpose, normal user should not invoke this flag!
  -i, --create-index-only
                        only create index on exist database
  -d, --debug           print extra debug messages


  -b BINPATH, --bin-path=BINPATH
                        tell me where the ibus-engine-table is in your system,
                        e.g. "/usr/bin/" or "/usr/bin/ibus-engine-table". If
                        you have already installed ibus-table, I can use
                        "which" to find it out.
  -k PKGDATA_PATH, --pkgdata-path=PKGDATA_PATH
                        tell me where the ibus-engine-table where is
                        pkgdatadir of ibus-table.

应该是ibus-table-createdb -s 码表文件.txt ,不好意思。
你那是没有找到码表的txt,用默认的xingma.txt.bz2了。

然后用ibus-engine-table -t   注册生成的码表。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-26 12:12:00 | 显示全部楼层
Thanks a million, it works!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表