Revisions and Commits
Revisions and Commits
R8 Sim-Sik Android Input Method Engine | |||
R8:e6ad0c73d3eb fix default preference values | |||
R8:48defc6a0147 fix corrections for phonetic input | |||
R8:1817fd6010d8 make correction, suggestion, query work slightly better | |||
R8:f5c3cbe8e4a4 add preference for dictionary-suggested phrases | |||
R8:393fb100e0d4 check and skip database update if unnecessary | |||
R8:c01d7594f79c update word frequency for both TL and POJ | |||
R8:2936f97d9087 show SimSek instead of SimSik for POJ | |||
R8:8eee5de0ee0f make database for POJ | |||
R8:eeb17be4be56 make composing state works with phrase lookup | |||
R8:317e9b3c24a1 reduce flickering with candidate update | |||
R8:e5997d3d7787 first attempt to add phrase lookup |
Event Timeline
Comment Actions
初步規劃:
- 用 JobScheduler (21+) / Background service (20-) 解析 .csv data
- 資料存進 SQLite database
- 打字時,用非 UI thread 做 DB lookup, 再 post 回 UI thread 來 update candidates
Comment Actions
不需要每次按鍵都做 DB lookup, 參考:
人類平均打字速度 <50 words per minute, 平均 word 長度為 5 個 character, 故約為 4 characters / second,
或每次按鍵 250 msecs
但也要參考期望反應速度: 0.1 秒 (100ms) 感覺為沒有延遲,0.2 ~ 1 秒感覺到有延遲但不覺得等候
以及 DB lookup 速度
Comment Actions
Candidate update:
初步使用 AsyncTask (single thread) 實作
在 UI thread 判斷有其他 task 時放棄 update (留給其他 task)