1
0
Fork 0

Status icons are back (#794)

This commit is contained in:
Dimo Karaivanov 2025-05-05 11:30:11 +03:00 committed by GitHub
parent dca050445e
commit 898bbf7a7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
184 changed files with 614 additions and 32 deletions

View file

@ -61,6 +61,8 @@ To support a new language one needs to:
- `hasABC` _(optional)_. Disables ABC mode for this language. Useful for languages where the writing system is not an alphabet, such as East Asian languages. Default: `yes`.
- `hasSpaceBetweenWords` _(optional)_ set to `no` when the language does not use spaces between words. For example: Thai, Chinese, Japanese, Korean, and so on. The default is `yes`.
- `hasUpperCase` _(optional)_ set to `no` when the language has no upper- and lowercase letters. For example: Arabic, Hebrew, East Asian languages, and so on. The default is `yes`.
- `iconABC` _(optional)_ is the name of the ABC icon for this language. The icon must be a Drawable resource in `app/src/main/res/drawable` folder. It must not include `.xml`. The icon will be shown in the system notification are when TT9 is in ABC mode and the respective option is on.
- `iconT9` _(optional)_ is the name of the Predictive mode icon for this language. Usage is similar to `iconABC`.
- `name` _(optional)_ is automatically generated and equals the native name of the language (e.g. "English", "Deutsch", "Українська"). However, sometimes, the automatically selected name may be ambiguous. For example, both Portuguese in Portugal and Brazil will default to "Português", so assigning "Português brasileiro" would make it clear it's the language used in Brazil.
- `numerals` _(optional)_ can be used to set a custom list of numerals. The list must contain exactly 10 characters equivalent to the digits from 0 to 9. For example, in Arabic you could use: `numerals: [٠,١,٢,٣,٤,٥,٦,٧,٨,٩]`.
- `sounds` _(mandatory for non-alphabetic languages)_ is an array of elements in the format: `[sound,digits]`. It is used for East Asian or other languages where there are thousands of different characters, that can not be described in the layout property. `sounds` contains all possible vowel and consonant sounds and their respective digit combinations. There must be no repeating sounds. If a single Latin letter stands for a sound, the letter must be capital. If more than one letter is necessary to represent the sound, the first letter must be capital, while the rest must be small. For example, "A", "P", "Wo", "Ei", "Dd". The sounds are then used in the dictionary format with phonetic transcriptions. See `ChinesePinyin.yml` and `Korean.yml` and the respective dictionary files for an example.