[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. ;)

-- 
| This message was re-posted from debian-simplified-chinese@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: