1
0
Fork 0
No description
Find a file
2022-07-11 08:56:48 +03:00
assets Bulgarian language 2022-07-11 08:56:48 +03:00
docs Bulgarian language 2022-07-11 08:56:48 +03:00
gradle/wrapper Make it buildable in 2022 (#41) 2022-06-14 10:39:56 +10:00
keymap-samples New beginning (#1) 2022-07-11 08:56:30 +03:00
res updated all language icons to use the same font and style and also be readable on higher DPI screens 2022-07-11 08:56:48 +03:00
src updated all language icons to use the same font and style and also be readable on higher DPI screens 2022-07-11 08:56:48 +03:00
store-res New beginning (#1) 2022-07-11 08:56:30 +03:00
.editorconfig New beginning (#1) 2022-07-11 08:56:30 +03:00
.gitignore New beginning (#1) 2022-07-11 08:56:30 +03:00
AndroidManifest.xml Make it buildable in 2022 (#41) 2022-06-14 10:39:56 +10:00
build.gradle New beginning (#1) 2022-07-11 08:56:30 +03:00
gradle.properties Make it buildable in 2022 (#41) 2022-06-14 10:39:56 +10:00
gradlew New beginning (#1) 2022-07-11 08:56:30 +03:00
gradlew.bat Added Gradle build files, changed dict filenames 2013-11-23 17:49:24 +11:00
LICENCE Fixed up LICENCE. Hopefully satisfies #4 2014-11-06 20:52:29 +11:00
proguard-project.txt Initial commit 2013-07-02 15:35:21 +10:00
project.properties Make it buildable in 2022 (#41) 2022-06-14 10:39:56 +10:00
README.md updated all language icons to use the same font and style and also be readable on higher DPI screens 2022-07-11 08:56:48 +03:00

Traditional T9

T9 IME input for Android devices with hardware keypad. This is a clone of the original project by Clam-.

About the project

traditional-t9 is an Input Method Editor for Android that implements predictive text using the hardware keypad on the device. Useless without a hardware numerical keypad.

Original Wiki: Traditional T9 keypad IME for Android

Adding a new language

To support a new language one needs to:

  • Modify CharMap.java
  • New Map needs to be created with the characters to be encountered in addWord or in the user dictionary when loaded.
  • New character array needs to be added for characters that are to cycle on each number press.
  • New array needs to be made to tell where the capital letters start in that array.
  • modify LangHelper.java
  • Add status icons
    • Create proper icons for each mode (e.g. "Ab", "En", "12") and each screen size. The font must be Roboto Lt at an adequate size to fit the icon square with minimum padding. Text must be white and the background must be transparent as per the official Android guide. To simplify the process, you could use Android Studio. It has a built-in icon generator accessible by right-cicking on "drawable" folder -> New -> Image Asset. Then choose "Icon Type": "Notification Icons", "Asset Type": Text, "Trim": No, "Padding": 0%.
    • Add new entry in ICONMAP
  • Add new LANGUAGE enum entry e.g. FR(3,5) (index, id) Where index is index in arrays like LOCALES, and id is the identifier used in the database and such. The latter should never change unless database update is done.
  • Make sure new id matches const.xml
  • Add the LOCALE of the language in the LOCALES Locale array
  • Add translations for arrays.xml and strings.xml in to new files in the appropriate locale folder (e.g. res/values-de/arrays.xml.) AndroidStudio has a cute/nice Translation Editor which might be handy.
    • Edit the base arrays.xml file to add the new language. (pref_lang_titles, pref_lang_values)
    • Exclude translatable="false" items from the new locale arrays.xml file.
    • Also make sure the new language is added to pref_loaduserdictdesc (base non-locale strings.xml)
  • Find a suitable dictionary and add it to assets

That should be it? I hope.