SinuXVR / pocket-board

Simple and lightweight yet powerful IME for Unihertz Titan Pocket QWERTY smartphone
GNU General Public License v3.0
27 stars 12 forks source link

Diacritics input - Spanish #8

Open alexpdp7 opened 1 year ago

alexpdp7 commented 1 year ago

Hi!

I just saw this and I'm superexcited. Kika has many issues, so thanks for publishing this and opening the source. I have just two issues, which I might try to solve myself, but first I thought I'd contact you in case you can tell me "it's very difficult to do this", or even "yes, this is easy!".

First, I can't seem to get the Spanish dictionary to work. I installed your fork of OpenBoard SpellChecker, which seems to contain a Spanish dictionary. The English dictionary works, but alt+spc, alt+shift, alt+shift+space; all those input a space and don't seem to change languages. fn+spc pops up a language change, but it seems to be an "Android language" change which does not seem to affect the completion.

Second: is there any way to input diacritics? In Spanish, besides aA, you use áàÁÀ. Normally you do a long-press and pick a completion (that's how Kika and the BB keyboard work). But if I do a long press with your keyboard, I get the alt-variant of the key (e.g. a -> @, o -> /). Is there any way to input diacritics? I don't mind having a go at coding this. (And actually, it would be great if instead of using the touch screen, I could do this entirely through a key combination.).

I'll try to play with this if I have time, so no worries if you are busy and can't answer.

Cheers,

Álex

alexpdp7 commented 1 year ago

OK, the PR attached works. It's a bit painful to select the diacritics, because you need to be quite fast? But in many cases, the dictionary kicks in. A possible refinement would be to pick a dictionary word with diacritics automatically if it's unequivocal.

alexpdp7 commented 1 year ago

Now that is merged, the biggest annoyance I have is autocompletion- it's too eager.

"bueno" is a valid word in the dictionary, but the keyboard automatically completes to "buenos". A valid word should never be autochanged into another valid word. However, "dia" is not a valid word, and should always be automatically changed to "día".

I'll see if I can implement that next.