我雖然知道 tatal count,但沒有辦法任意取得整個 list 中的任一個字串
如果我要取得 list 完整的內容,我必須一直 chewing_cand_String()
才能全部讀出來,但是這時候 cand_no 就指到 list 末端了
沒有辦法再回去
Windows TSF 會要求 text service 需要一次提供整個 list
並且可以 random acess list 中的每個 string
用目前的 chewing API 無法實做出來
除非模擬每個 page 切換一次,一直 enumerate 下去
然後把字串都存到list內,但是這樣很髒,
有可能在 API 上做一些修正嗎?
每次呼叫都改變 ChewingContext 內部的狀態,
對於單純需要取得整個 candidate list 的時候,是會有點麻煩
Thanks
ChangZhuo Chen
unread,
Sep 6, 2013, 6:15:10 AM9/6/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chewin...@googlegroups.com
On Friday, September 6, 2013 1:57:27 PM UTC+8, PCMan wrote:
有可能在 API 上做一些修正嗎?
每次呼叫都改變 ChewingContext 內部的狀態,
對於單純需要取得整個 candidate list 的時候,是會有點麻煩
新加一個 API [1],可以直接取出第 n 個 candidate。
CHEWING_API char *chewing_cand_String_by_index( ChewingContext *ctx, int index )