Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Language issues on Xiaomi

Open GDXN opened this issue 4 months ago • 4 comments

I confirmed that this happen with two devices, one Miui14/Android12 and the other HyperOS3/Android16 due for poor language implementation by Xiaomi.

They keyboard only allow to download the dictionary with the local language and no additional ones, also isn't possible to add additional languages in the phones.

I propose:

  1. For the download issue

    • Option A: Let the user download any dictionary, this can be made available with a check box.
    • Option B: Let the user download the dictionaries for the installed keyboards layouts. -- Possible issue if a user want US keyboard with UK dictionary.
  2. For the selection of dictionary

    • Option 0: Let the user download any dictionary and select any dictionary as active in options.
    • Option 1: Bind the suggestion dictionary used to the keyboard layout -- if the user can download any dictionary and no dictionary for the layout is installed don't show anything or select a similar dictionary if available (ej. select "en-UK" for "QWERTY (US)" layout, basically if there is no mach for "en-US" mach it to "en-" )
    • Option 2: Add a dictionary selector in the suggestion bar showing the language code selected ("en-US","en-UK","es-ES"....) and "NONE" to for it to don't show suggestions. -- optionally if the user change the layout this selector is reset to the language of the layout or the closest one like in option 1.

For me the best is to let the user download any dictionary, and implement option 2 as they are not mutually exclusive. Another option/nicety is to add a button to the layouts to disable and enable the suggestions (it can also function as a dictionary selector for option 0).

GDXN avatar Jul 07 '26 11:07 GDXN

Implemented in https://github.com/Julow/Unexpected-Keyboard/pull/1365 If you want to try it, the debug apk is at the bottom of this page: https://github.com/Julow/Unexpected-Keyboard/actions/runs/29859499526

Julow avatar Jul 23 '26 20:07 Julow

I installed it, not perfect but perfectly workable, the only changes needed to make it better is first to show the dictionary selected when the button is show (pretty useful when a layout is repeated for various dictionaries), and second but not necessary is to add a null dictionary in the selection for when you don't want the suggestions (similar to disable the suggestions but it let you have then in other layouts and maintains the suggestions bar).

GDXN avatar Jul 23 '26 23:07 GDXN

That's two very good idea! I'll implement the dictionary name soon and I'll keep the null dictionary idea around for later.

Julow avatar Jul 29 '26 18:07 Julow

I'm showing the current dictionary name in https://github.com/Julow/Unexpected-Keyboard/pull/1380 You can try it at the bottom of this page: https://github.com/Julow/Unexpected-Keyboard/actions/runs/31053972268?pr=1380 I'm planning to localize the dictionary names later.

Julow avatar Aug 05 '26 22:08 Julow