Sorry to bother you guys again. I really struggle to get it working.
What I want: The original LatinImeGoogle.apk (from JB 4.1.1) with an additional dictionary.
What I tried:
- Create a swiss text-corpus, because none exist for this dialect-language
- Create an XML with the format:
Code:
<dictionary>
<w f="255">word</w>
...
<w f="1">anotherword</w>
</dictionary>
- Use makedict.jar from ICS (didn't find a JB version yet) to create main_de_ch.dict file (DE stands for the language german, and CH is the abbrevation for Switzerland)
- Use the newest apktool_1.5.0 to unpack the LatinImeGoogle.apk
- Copy the main_de_ch.dict into ..\res\raw\ folder
- open ..\res\xml\spellchecker.xml and add:
Code:
<subtype android:label="@string/subtype_generic" android:subtypeLocale="de_ch" />
- go to \res\ and make a copy of values-de with the name values-de_ch
- Use the newest apktool_1.5.0 to build LatinImeGoogle.apk
- Copy to system, apply proper permissions
Keyboard not appearing in
Settings > Input.
I see various possible errors:
1) wrong naming at step 5) because others are
values-en-rGB and
values-es-rUS
2) maybe I miss some file where I must declare that naming?
3) The apk isn't signed (?)
4) Maybe I don't need to use apktool, but just open the apk as a zip and do the modifications without unpacking/packing with apktool?
To test if any of the four reasons above are making problems, i tried to rename my
main_de_ch.dict to
main_de.dict and overwrite it the original LatinImeGoogle.apk so it would basically use swiss-german in the german keyboard for predictions and corrections, right?
Result: The apk can be pushed to system, I see the input method in Settings, everything is ok, but predictions/corrections are german, not swiss-german. HOW IS THAT EVEN POSSIBLE?
I've overwritten the main-de.dict with my swiss-german wordlist, how can it shows german words?
Any help/hint would be very much appreciated.
-------
EDIT: It seems that the makedict.jar from different Firmwares provides different binary formats.
I guess I have the wrong version of makedict.jar and I can't find any actual version from AOSP 4.1.1 Jelly Bean.
Any help?
Here is the raw XML which i want to convert to .dict