Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Preedit contents sometimes look different in ibus-typing-booster compared to ibus-m17n #460

Closed
mike-fabian opened this issue Aug 30, 2023 · 0 comments

Comments

@mike-fabian
Copy link
Owner

ibus-typing-booster sometimes shows slightly wrong contents of the preedit compared to ibus-m17n which seems to show the correct contents in the preedit always.

This is quite rare but one of these differences can be seen when using hi-itrans.

To reproduce, use ibus-typing-booster and ibus-m17n with the hi-itrans input method and the option trim-last-halant is set to 1 (which is the default). trim-last-halant set to 1 is important, otherwise the procedure to reproduce the problem will show no difference.

First ibus-m17n:

Typing n in ibus-m17n shows न् U+0928 DEVANAGARI LETTER NA U+094D DEVANAGARI SIGN VIRAMA in the preedit.

When a space is typed then, the code

(second
  ...
  (nil (cond (trim-last-halant (move LAST-HALANT-POS) (delete @-) (move @>)))
       (shift init)))

removes the ् U+094D DEVANAGARI SIGN VIRAMA and only न U+0928 DEVANAGARI LETTER NA is committed.

OK.

Now the same in ibus-typing-booster:

Typing n in ibus-typing-booster shows only न U+0928 DEVANAGARI LETTER NA, the virama is not shown. When a space is typed then, न U+0928 DEVANAGARI LETTER NA is committed.

To get न् U+0928 DEVANAGARI LETTER NA U+094D DEVANAGARI SIGN VIRAMA committed as the final result, one can type n + S-C-Return both in ibus-m17n and ibus-typing-booster (>= 2.23.4!).

After a commit happened, the result is always the same in ibus-m17n and ibus-typing-booster, but while the preedit is still active, ibus-typing-booster sometimes shows wrong contents of the preedit.

Here is a video showing this:

Peek.2023-08-30.18-00.mp4
@mike-fabian mike-fabian self-assigned this Aug 30, 2023
@mike-fabian mike-fabian added this to To do in Mike’s github project board via automation Aug 30, 2023
Mike’s github project board automation moved this from To do to Done Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant