[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xcin wishlist



thhsieh@linux.org.tw wrote:
> : 1.
> : 在 gen_inp 这个输入法模组中,有一个自动上字的功能, User 按下
> :
> : zhao 空格
> :
> : 之后,"找" 字就发给 Client 了,因为 "找" 字在 pinyin.cin 中排在
> : 所有的 zhao 对应的字之前. 而如果 User 按下
> :
> : zhaow
> :
> : 之后, Xcin 却不显示任何字,这是因为 pinyin.cin 中没有匹配 zhaow
> : 的项目.但是,其实 Xcin 正可以根据这一线索,认定 w 开始了一个新的
> : 匹配 phrase, 而 zhao 则可以自动上字了, 即输出 "zhao 空格" 的效果.
> : (这一点,当然希望和下面的几点配合,以提高打字速度.)
> 
> 这一点在实作上有逻辑上的困难,原因是 (以下随便举例):
> 
>         假设 pinyin.cin 最长的键码数如果达到 7, 则虽然 zhao 可以
>         找到字, zhaow 找不到字,但说不定 zhaowi 或 zhaowau 都有
>         字,如果程式一旦看到 zhaow 就认定要输出 zhao 并开始一个
>         新的以 w 开头的字输入的话,就会造成 zhaowi 或 zhaowau 这
>         两个字永远无法打进去了。
> 
> 因此,在这里我们不容易找出一个通则,可以做到如您所说 more intellegent

I'm looking at the code, seems this is just the problem of the
.tab file. i.e. they cannot give more than an idx, that makes the
whole thing difficult.

the above example,

if zhaow?* exists, then ..., while if zhaow?* doesn't exist,
this then could go UPCHAR, just .tab (and related funcs) cannot
give out info on this... ????

Hope I don't looks too much stupid. ;)



Reply to: