Skip to content

Update jvc-convert of KB layout Hsu#259

Merged
czchen merged 1 commit intochewing:masterfrom
hiunnhue:jvc_convert
May 6, 2017
Merged

Update jvc-convert of KB layout Hsu#259
czchen merged 1 commit intochewing:masterfrom
hiunnhue:jvc_convert

Conversation

@hiunnhue
Copy link
Contributor

@hiunnhue hiunnhue commented May 6, 2017

  1. 增補ㄓㄔㄕ→ㄐㄑㄒ轉換。
    許氏的ㄐㄑㄒ和ㄓㄔㄕ是在同一個按鍵,有介音ㄧ或ㄩ的時候,ㄓㄔㄕ才會轉換成ㄐㄑㄒ。但目前 libchewing 只有ㄐㄑㄒ轉ㄓㄔㄕ,沒有ㄓㄔㄕ轉ㄐㄑㄒ。因此,若使用者先輸入韻母才輸入介音,就無法正確的出字。例如:使用者想輸入「鄉」,但在快速打字的時候出錯,順序變成 ㄒ → ㄤ → 一,這時ㄒ會因為ㄤ而轉換成ㄕ,等到輸入ㄧ的時候卻沒有再換回ㄒ,變成 ㄕㄧㄤ。[1]

  2. 按下 jvc 時,優先輸出ㄓㄔㄕ。
    ㄓㄔㄕ本身加聲調就可以出字,而ㄐㄑㄒ不行。但目前 libchewing 是按下 jvc 鍵時先輸出ㄐㄑㄒ到預編區,等按聲調的時候才轉換成ㄓㄔㄕ,所以使用者看見的是輸入ㄐ卻得到ㄓ的字(之、知、隻等等),這樣比較不直覺,也和自然輸入法的行為相反,所以改為先輸出ㄓㄔㄕ。

  3. 更新 test case。

[1] https://groups.google.com/d/msg/chewing-devel/D8MMq_sRxnU/KZ3ucglaAAAJ

 * src/bopomofo.c
   Bopomofo ㄐㄑㄒ always come with ㄧ or ㄩ, if not, libchewing
   should convert them to ㄓㄔㄕ, and vice versa. But currently
   libchewing doesn't do the ㄓㄔㄕ to ㄐㄑㄒ convertion.
   This commit add it.

   Moreover, since ㄐㄑㄒ cannot exist alone, when users press
   jvc keys, libchewing should send ㄓㄔㄕ into buffer as default,
   and convert them to ㄐㄑㄒ after users press ㄧㄩ.

 * test/test-bopomofo.c
   update test cases for KB layout Hsu.
@czchen czchen merged commit 6bffc95 into chewing:master May 6, 2017
@czchen
Copy link
Member

czchen commented May 6, 2017

Thanks for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants