-
Notifications
You must be signed in to change notification settings - Fork 15
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?] only first character in list of candidates appears for zh-quick #523
Comments
You understood correctly that all .mim files which produce multiple options where one of the options needss to be selected do not work well with ibus-typing-booster at the moment. This effects mostly Chinese and Japanese input methods but also input methods like
This is more a “not yet implemented feature” then a bug tough. And, as you correctly observed, this is the main reason that Chinese and Japanese are currently not supported by typing booster. There are some other problems to fix to get good support for Chinese and Japanese in typing-booster, for example the current prediction algorithm uses the last 3 words to predict the (maybe partially typed) next word. In languages which do not use spaces like Chinese and Japanese, it is sometimes not clear what exactly a word is. Instead of just splitting text at whitespace to get words, it needs to be parsed and split into "words" by other means. This will also need work. But the first step is to support .mim files which offer multiple options and make it possible to easily and conveniently select a candidate. I have already thought about how to do that and have some ideas, but it is not easy and I didn't have enough time for that yet. As you are the first user to ask for that, I’ll try to give this higher priority.
Basically it is working as intended, only you cannot see the candidates offered except the first one. If you look at zh-quick.mim, you see that it includes
which contains:
So you need to type 2 to select the second candidate in
I.e. you need to type 2 to select 卡. But by default, 2 is already bound to select the second candidate in the prediction candidate list shown by typing booster. That means if you type You could remove the digits 1,2,3,4,5,6,7,8,9 from the commands
No, not really, if you remove the digits 1,2,3,4,5,6,7,8,9 from the commands
No.
No, this still does not work in the latest release ibus-typing-booster-2.25-12.
It is more a missing feature. I think I need to do something similar to the compose support: The chapter “Show possible completions of compose sequences” https://mike-fabian.github.io/ibus-typing-booster/docs/user/#5_4_5 For m17n input methods which produce multiple options, I need to implement something similar: If an something typed with the m17n input method produces multiple options, these options need to be shown in a “special” candidate list instead of the “normal” completion candidates list.If one of these options is selected, typing-booster can continue to show the “normal” completion candidate list. This is just the basic idea, maybe there other ways to do it. Anyway, adding extra code to support this is needed. |
Here is a video showing how I use ibus-typing-booster with zh-quick:
Peek.2024-07-15.17-14.mp4Shows that it works, sort of, but is not really usable. |
Here is another video where I use zh-quick.mim with ibus-m17n instead of ibus-typing-booster:
Peek.2024-07-15.17-21.mp4 |
So if you want to use zh-quick right now, you can do that by using ibus-m17n instead of ibus-typing-booster. But ibus-m17n is very basic and simple and does not offer all the nice extra features ibus-typing-booster has. Therefore, in the long run, I should add support for such m17n input methods which offer multiple candidates as well. |
…ltiple candidates Related: #523 This just extends m17n_translit.py to return the data Typing Booster needs to supports m17n input methods offering multiple candidates. Typing Booster does not use this yet.
Describe the bug
I am not sure if this is a bug or not (see "Additional context" below).
When using an input method that offers multiple candidates, such as zh-quick.mim, ibus-typing-booster only offers the first character on the list.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A list offering all characters for "yy" in the mim file should be offered as possible selections.
Screenshots or videos
My ibus-typing-booster settings:
Screencast showing behavior:
simplescreenrecorder-2024-07-15_05.33.44.mp4
The character list for "yy" is as follows:
Multiple options are available for emojis when "Unicode symbols and emoji predictions" is enabled. Only mim files appear to be affected:
System Information
ibus-typing-booster v2.15.25
IBus 1.5.26
Pop!_OS 22.04 (based on Ubuntu)
Gnome 42.9
X11
Additional context
As I wrote above I am not sure if this is truly a bug or I have misunderstood something. I have tried googling information but nothing has been helpful.
I am currently working on a custom mim file for input and I want to create combinations that offer multiple possible options, but I'm not sure how to do that.
I wasn't sure if my mim file is improperly formatted (it loads without errors, but does not work as expected), which is why I tried zh-quick, because it appears to offer what I am attempting to do.
Here is a link to zh-quick.mim for reference: http://git.savannah.gnu.org/cgit/m17n/m17n-db.git/tree/MIM/zh-quick.mim
So I don't know what the issue is:
The text was updated successfully, but these errors were encountered: