ubports / keyboard-component

Moved to https://gitlab.com/ubports/core/lomiri-keyboard
https://gitlab.com/ubports/core/lomiri-keyboard
GNU Lesser General Public License v3.0
10 stars 36 forks source link

Add a Thai keyboard without prediction support #130

Closed peat-psuwit closed 3 years ago

peat-psuwit commented 4 years ago

This commit adds keyboard layouts in Thai language, along with an empty language plugin and language features. This language differs enough from most western languages that it cannot use the common westernsupport base.

It's easy to add keyboard layouts. It's a different story to add a decent word prediction. I would need to find an example text for it to create the n-gram database and would have to write a language features more or less from scratch. Besides, the text2ngram utility seems to assume that words are separated by whitespaces, which isn't the case for Thai. So, let's get keyboard layouts out; at least you will not encounter bad autocorrection (!).

Fixes #122.

peat-psuwit commented 4 years ago

Good catch! Should be fixed now.