LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: Awei

关于ibus的五笔输入方面的问题。

[复制链接]
发表于 2009-4-25 09:54:22 | 显示全部楼层
码表里DYNAMIC_ADJUST = TRUE。
这个调整顺序是记录在哪,家目录下的.ibus/tables下?
回复 支持 反对

使用道具 举报

发表于 2009-4-26 08:48:43 | 显示全部楼层
~/.ibus/tables/xxx-user.db

是sqlite3的数据库
回复 支持 反对

使用道具 举报

发表于 2009-4-27 10:45:40 | 显示全部楼层
生成有~/.ibus/tables/trm-user.db,但用sqlitebrowser看了下,没有什么内容,正常的应该是有记录编码是吧?

试了下五笔,确实可以,对比下码表的txt头部,也没见有异常,奇怪得很。
这是我的trm.txt的头部:
### File header must not be modified
### This file must be encoded into UTF-8.
### This table under GPL
### comments start with ### not single #
### Derive from the format of SCIM Table, so you can modify the table from
### scim-tables' table
###SCIM_Generic_Table_Phrase_Library_TEXT
###VERSION_1_0

### Begin Table definition.
BEGIN_DEFINITION

### An unique id to distinguish this table among others.
### Use uuidgen to generate this kind of id.
UUID = 51818212-3303-11de-a4b9-00301b3962a9

### A unique number indicates the version of this file.
### For example the last modified date of this file.
### This number must be less than 2^32.
### Just make your table version-able
SERIAL_NUMBER = 20090427

### ICON can be any format as long as your pygtk can recognized
### the most widely ones are "png" and "svg", letter one is recommended
ICON = trm-py.svg

### The default name of this table, this is needed
NAME = Trm

### The local names of this table, this is optional
NAME.zh_CN = 天然-拼音码
NAME.zh_HK = 天然-拼音码
NAME.zh_TW = 天然-拼音码

### Supported languages of this table
### sigle "zh_CN" just be recognized as zh_CN,
### but "zh_CN, zh_HK" or more zh_XX will be recognized as zh;
### and "en_US, zh_CN" will be just ignored.
LANGUAGES = zh_CN,zh_SG,zh_TW,zh_HK

### The author of this table
AUTHOR =

### Prompt string to be displayed in the status area, CN will be replaced by
### the gettext tools in runtime as 中.
STATUS_PROMPT = CN

### Valid input chars.
VALID_INPUT_CHARS = 123456789abcdefghijklmnopqrstuvwxyz

### The max number of input keys for every phrase or character.
MAX_KEY_LENGTH = 4

### Use full width punctuation by default
DEF_FULL_WIDTH_PUNCT = TRUE
### Not use full width letter by default
DEF_FULL_WIDTH_LETTER = FALSE

### Whether user are allow to define phrase, default is true
### You have to define the word construction rules below.
### For input methods which do not input phrases, set this to False
USER_CAN_DEFINE_PHRASE = TRUE

### Whether support PinYin Mode, default is true.
### this feature is just for Chinese, set it to False if your IM is not
### Chinese.
PINYIN_MODE = TRUE

### If true then the phrases' frequencies will be adjusted dynamically
### according your using frequency.
DYNAMIC_ADJUST = TRUE

### Some characters whose frequencies should be fix all the time, e.g.
### some punctuations
### NO_CHECK_CHARS =

### Rules for constructing user defined phrase
### "ce" stands for "ci equal", a Chinese English , means "phrase length
### equal to", thus ce2 -> phrase length equal to 2; and "ca" means "phrase
### length equal or above", so ca4 -> phrase length equal or above 4.
### p21 -> the 1st key of 2nd character in the phrase, and so on.
### Each rule separate via ";".
### Example below is a complete rule-set,
### becuase [2,2] ∩ [3,3] ∩ [4,+∞] = [2,+∞], which is the range of length
### of phrase. This have to be satisfied if you need ibus-table to build up
### your own inputed phrase via your daily using.
RULES = ce2:p11+p12+p21+p22;ce3:p11+p21+p22+p31;ca4:p11+p21+p31+p41

END_DEFINITION

### Begin Table data.
### Format of every line whose formated in "input_keys\tphrase\tfreq\n" is an
### entry.
### From left to right, the 1st column are the input key combination that you
### entered via keyboard; the 2nd column are presented character or phrase of
### the key combination you want; the 3rd column are frequency of the character
### or phrase.
回复 支持 反对

使用道具 举报

发表于 2009-4-27 18:02:51 | 显示全部楼层
ibus定义的1-9键为“选择并提交相应的字词”,而我用的trm中1-9为编码,选词时无法使用1-9键直接上屏,无法触发ibus的相关功能而影响ibus的调整顺序记录?
回复 支持 反对

使用道具 举报

发表于 2009-4-28 01:15:29 | 显示全部楼层
没有内容很奇怪,因为只要你在输入过,就会东西的。trm-user.db有多大?
回头我把用arrow_up和arrow_down选词的功能加回去,你就可以选词了。
回复 支持 反对

使用道具 举报

发表于 2009-4-28 09:25:59 | 显示全部楼层
trm-user.db有7kB大。见附件。
还有以数字为后缀的,比如trm-user.db.7455,是备份?

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2009-4-28 10:07:35 | 显示全部楼层
trm-user.db.7455是用户词库格式更新后的备份。

你把你的码表发给我看一下。

acevery@gmail.com
回复 支持 反对

使用道具 举报

发表于 2009-4-28 10:17:53 | 显示全部楼层
码表已发出,谢谢!
回复 支持 反对

使用道具 举报

发表于 2009-4-30 09:40:49 | 显示全部楼层
已经回复。
ibus在正常退出的时候没有emit disconnected导致用户词库的同步没有完成。所以你的用户词库是空的。
回复 支持 反对

使用道具 举报

发表于 2009-5-29 22:07:40 | 显示全部楼层
完蛋,我的ibus无法调出啊,我使用的是archlinux,通过abs安装的ibus,源代码都在ibus.googlecode.com下载的。
$ pacman -Qs ibus
local/ibus 1.1.0.20090508-1
    Next Generation Input Bus for Linux
local/ibus-table 1.1.0.20090527-1
    iBus-table is the IM Engine framework for table-based input methods, such as
    ZhengMa, WuBi, ErBi, ChangJie and so on
local/ibus-table-extraphrase 1.1.0.20090415-1
    The extra phrases of tables engines for IBus.
local/ibus-table-wubi 1.1.0.20090327-1
    The Wubi Input Method of tables engines for IBus.
现在的问题是无法调出五笔,之前我还装了下拼音进行测试,能正常调出并使用,五笔在管理面板里也安装上了,就是没办法调出按Ctrl+空格键会停顿一点时间,然后的又是英文了。

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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