Mike FABIAN
Mike FABIAN
Setting up a option (switch) to always show single character as preferred candidates before phrases.
At the moment, ibus-table has an option in the setup tool to choose Compose: [Phrase|Single Char] If this is set to “Single Char”, only single characters ans no phrases are...
Setting up a option (switch) to always show single character as preferred candidates before phrases.
The sorting of this candidate list is currently done like this: https://github.com/mike-fabian/ibus-table/blob/master/engine/tabsqlitedb.py#L1018 ``` return sorted(candidates, key=lambda x: ( - int( typed_tabkeys == x[0] ), # exact matches first! pinyin_exact_match_function(x[0]), -1*x[3],...
Setting up a option (switch) to always show single character as preferred candidates before phrases.
So exact matches come first, then it is sorted by user frequency, then by system frequency, then by the lengths of the input string needed to type these characters, then...
Setting up a option (switch) to always show single character as preferred candidates before phrases.
Now I could make a change like this for example: ``` diff --git a/engine/tabsqlitedb.py b/engine/tabsqlitedb.py index 3986075..1ee1a8f 100644 --- a/engine/tabsqlitedb.py +++ b/engine/tabsqlitedb.py @@ -1002,6 +1002,7 @@ class TabSqliteDb: ), #...
Setting up a option (switch) to always show single character as preferred candidates before phrases.
In my experimental patch above, I inserted the `len(x[1])` sprt key unconditionally just to see what happens. If this behaviour is useful, I could add an option like ``` đź—ą...
Setting up a option (switch) to always show single character as preferred candidates before phrases.
Ping 🏓
Yes, maybe you are right, thinking about it...
> By the way, I noticed some strange behavior from ibus-table, but I'm not sure if I should open an issue over it. Remember how illegal input will be colored...
In ibus-typing-booster, I use both colours **and** underlining/no-underlining to indicate inline completion. As neither works in Gnome Wayland, the “inline completion” option of ibus-typing-booster is very hard to use in...