Skip to content
operational 44.2 KiB
Newer Older

  gitlab only support markdown, ascii doc and rst. org-mode is not supported.
  add .org suffix won't help gitlab.
  Either keep it or rewrite it as markdown or rst.
  I will keep it.

** 2020-02-04 zero-input-pinyin-pending-preedit-str="erduo" not correct?
- zero-input-pinyin-pending-preedit-str="erduo"

  zero-input-pinyin-pending-preedit-str
  this variable may not be cleared at proper place.

  #+BEGIN_SRC sh
    synchronously
    candidates: 摩尔, 莫尔, 末儿, 模, 默, 麽, 莫, 摸, 末, 磨
    user typed: d
    still preediting
    appended d, preedit str is: moerd
    zero-input-pinyin building candidate list synchronously
    candidates: 摸耳朵, 莫尔德, 摩尔, 莫尔, 末儿, 模, 默, 麽, 莫, 摸
    user typed: u
    still preediting
    appended u, preedit str is: moerdu
    zero-input-pinyin building candidate list synchronously
    candidates: 摩尔, 莫尔, 末儿, 模, 默, 麽, 莫, 摸, 末, 磨
    user typed: o
    still preediting
    appended o, preedit str is: moerduo
    zero-input-pinyin building candidate list synchronously
    candidates: 摸耳朵, 摩尔, 莫尔, 末儿, 模, 默, 麽, 莫, 摸, 末
    user typed:  
    still preediting
    zero-input-pinyin-commit-nth-candidate
        n=0 candidate=摸耳朵 used-len=7 zero-input-pinyin-pending-preedit-str="erduo"
    commit in full
    set state to IM-WAITING-INPUT
    zero-input-disable-preediting-map
    commit text: 摸耳朵
    hide candidate list
    user typed: d
    can start sequence, state=IM_PREEDITING
    set state to IM-PREEDITING
    zero-input-enable-preediting-map
    appended d, preedit str is: d
    zero-input-pinyin building candidate list synchronously
    candidates: 的, 都, 到, 等, 第, 带, 大, 对, 当, 低
    user typed: u
    still preediting
    appended u, preedit str is: du
    zero-input-pinyin building candidate list synchronously
    candidates: 度, 赌, 读, 独, 毒, 都, 肚, 督, 渡, 杜
    user typed: i
    still preediting
    appended i, preedit str is: dui
    zero-input-pinyin building candidate list synchronously
    candidates: 对, 队, 堆, 對, 兑, 隊, 怼, 碓, 桘, 憝
    user typed: b
    still preediting
    appended b, preedit str is: duib
    zero-input-pinyin building candidate list synchronously
    candidates: 对比, 对白, 对本, 对不, 对吧, 对被, 对表, 对半, 对把, 对边
    user typed: u
    still preediting
    appended u, preedit str is: duibu
    zero-input-pinyin building candidate list synchronously
    candidates: 对不, 队部, 对, 队, 堆, 對, 兑, 隊, 怼, 碓
    user typed: q
    still preediting
    appended q, preedit str is: duibuq
    zero-input-pinyin building candidate list synchronously
    candidates: 对不起, 对不, 队部, 对, 队, 堆, 對, 兑, 隊, 怼
    user typed: i
    still preediting
    appended i, preedit str is: duibuqi
    zero-input-pinyin building candidate list synchronously
    candidates: 对不起, 对不, 队部, 对, 队, 堆, 對, 兑, 隊, 怼
    user typed:  
    still preediting
    zero-input-pinyin-commit-nth-candidate
        n=0 candidate=对不起 used-len=7 zero-input-pinyin-pending-preedit-str="erduo"
    commit in full
    set state to IM-WAITING-INPUT
    zero-input-disable-preediting-map
    commit text: 对不起
    hide candidate list
  #+END_SRC

  I can redproduce it.
  just delete the user phrase, then type it again.
  #+BEGIN_SRC sh
    user typed: o
    still preediting
    appended o, preedit str is: moerduo
    zero-input-pinyin building candidate list synchronously
    candidates: 摸耳朵, 摩尔, 莫尔, 末儿, 模, 默, 麽, 莫, 摸, 末
    zero-input-pinyin building candidate list synchronously
    candidates: 摩尔, 莫尔, 末儿, 模, 默, 麽, 莫, 摸, 末, 磨
    user typed: 8
    still preediting
    zero-input-pinyin-commit-nth-candidate
        n=7 candidate=摸 used-len=2 zero-input-pinyin-pending-preedit-str=""
    partial commit, in partial commit mode now.
    zero-input-pinyin building candidate list synchronously
    candidates: 耳朵, 尔多, 而多, 尔, 耳, 而, 儿, 二, 兒, 爾
    user typed:  
    still preediting
    zero-input-pinyin-commit-nth-candidate
        n=0 candidate=耳朵 used-len=5 zero-input-pinyin-pending-preedit-str="erduo"
    finishes partial commit
    set state to IM-WAITING-INPUT
    zero-input-disable-preediting-map
    commit text: 摸耳朵
    hide candidate list
  #+END_SRC
  This is not a bug. zero-input-pinyin-pending-preedit-str is not used
  when IM has not go to partial commit mode. it will always be set to
  correct value when it does go to partial commit mode.