fcitx / mozc

Mozc - a Japanese Input Method Editor designed for multi-platform
Other
114 stars 11 forks source link

Prolonged Sound Mark "ー" tobe "ろ" in kana input. #40

Closed reasonset closed 1 year ago

reasonset commented 1 year ago

Description When using the Japanese keyboard and using Kana input, pressing the "¥|" key in the upper right corner should input a prolonged sound mark "ー", but "ろ" will be input.

Steps to reproduce Steps to reproduce the behavior:

  1. Use Japanese Keyboard
  2. Use Kana input
  3. put "¥|" key

Expected behavior Input "ー".

Actual behavior Input "ろ".

Version or commit-id Mozc-2.29.5111.102+24.11.oss

Environment

Investigations

Additional context

Only when press with shift key, "ー" is entered.

Maybe this problem is caused by aa69eae commit. It deletes key bindings that

-    // A backslash is handled in a special way because it is input by
-    // two different keys (the one next to Backslash and the one next
-    // to Right Shift).
-    {'\\', {"ろ", "ろ"}},
-    {U'¥', {"ー", "ー"}},  // U+00A5

I have confirmed that this problem does not occur when building with commit 99cd187.

This issue was directed from Google Mozc.

wengxt commented 1 year ago

Thanks for the report.

There's a bug introduced in aa69eae when merging the ibus's key translator code because ibus's key code is different comparing to fcitx's key code. Should be fixed by https://github.com/fcitx/mozc/commit/a0fc18bc99efd02cb2f5c854ac9ddc4cfdc865b4