timdream / jszhuyin

JS 注音:JavaScript 自動選字注音輸入法;"Smart" Chinese Zhuyin Input Method in JavaScript.
https://jszhuyin.timdream.org/
MIT License
223 stars 19 forks source link

New modes on sussceive symbol handling #20

Open timdream opened 9 years ago

timdream commented 9 years ago

We current have two mode (reorder={1|0}) but to make JSZhuyin more usable with hardware keyboard, there should be 3 modes:

  1. Always follow: (mobile) Always append the symbol and push it to the next sound if it can't be put into the previous one. Type and gets ㄨㄇ and matches two words like 我們.
  2. Reorder if applies. Type and gets ㄇㄨ and matches one word like .
  3. Reorder and overwrite if applies. Type and gets ㄇㄨ and matches one word like . Type , and gets ㄇㄨ ( overwritten) and matches one words like . User can only reaches the next sound by compete the current sound with a tonal mark.

2 and 3 will close opportunities for user to match phrases without complete every sound. Need some explanation on UI for this.