forked from phuang/ibus-m17n
-
Notifications
You must be signed in to change notification settings - Fork 10
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] Upper case non-ASCII keysyms in .mim
files do not work in ibus-m17n
#90
Labels
Comments
Debugging ibus-m17n shows this:
Adding the https://github.com/ibus/ibus-m17n/blob/main/src/engine.c#L707 if (mask & IBUS_SHIFT_MASK) {
g_string_prepend (keysym, "S-");
} |
Not adding the
|
Another file which contains upper case non-ASCII keysyms is
|
mike-fabian
added a commit
to mike-fabian/ibus-typing-booster
that referenced
this issue
Nov 8, 2024
…ed and is is a space or not printable Before I added 'S-' only for the special cases when msymbol was 'C-Return' or ' '. Because 'S-C-Return' and 'S- ' were used in some input methods in m17n-db. But actually 'S-Left' and 'S-Right' are also used already. And others like 'S-Up' or 'S-Down' could surely be used. So the code handled only two special cases and was not generic enough. But for characters which are printable and **not** whitespace, the 'S-' should **not** be added! For example Ü (keysym is 'Udiaeresis') is typed by pressing Shift+ü. And the Shift has then been “absorbed” in making the characters uppercase, prepending 'S-' is then wrong. See also ibus/ibus-m17n#90 for the same problem in ibus-m17n.
Fix included in https://github.com/ibus/ibus-m17n/releases/tag/1.4.34 |
mike-fabian
added a commit
to mike-fabian/ibus-typing-booster
that referenced
this issue
Nov 9, 2024
…ed and is is a space or not printable Before I added 'S-' only for the special cases when msymbol was 'C-Return' or ' '. Because 'S-C-Return' and 'S- ' were used in some input methods in m17n-db. But actually 'S-Left' and 'S-Right' are also used already. And others like 'S-Up' or 'S-Down' could surely be used. So the code handled only two special cases and was not generic enough. But for characters which are printable and **not** whitespace, the 'S-' should **not** be added! For example Ü (keysym is 'Udiaeresis') is typed by pressing Shift+ü. And the Shift has then been “absorbed” in making the characters uppercase, prepending 'S-' is then wrong. See also ibus/ibus-m17n#90 for the same problem in ibus-m17n.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Key symbols starting with a capital letter like (Udiaeresis) work in ibus-typing-booster but not in ibus-m17n.
Example test file:
The text was updated successfully, but these errors were encountered: