View Single Post
Old 10-13-2016, 05:06 AM   #12
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by handocjo View Post
Thank you GeoffR
I would like to add a Korean keyboard. Can you give me advice?
I don't know whether it is possible to make a Korean keyboard for this firmware. It will require some experimenting, but I don't have a device running this firmware and am reluctant to upgrade my Glo yet as it is my only ereader and it is working very nicely with firmware 3.19.5761.

I think the problem might that the Korean characters are encoded as three bytes in UTF-8, while the other languages that have worked with the keyboard are encoded as two bytes. Each keyboard letter has three bytes allocated, but I don't know if they are stored as individual characters or as strings, I suspect the latter, and so the third zero byte might be an end-of-string marker.

The way to find out for sure is to try an experiment using one of the other keyboard patches, but modified so that the third zero byte is overwritten, for example:
Code:
replace_string = 0000, `š\0`, `ㅂ`
replace_string = 0003, `ž\0`, `ㄷ`
If the keys are stored as individual characters then the patched keyboard would have one character on each key, but if they are stored as strings then one key will have both characters and the other will have just the second character.

(Edit: Everything above refers to the Extended Latin keypad you see when the UI is set to a Latin-like language. The keyboard you see when Japanese is selected might be completely different and maybe that is what you would need to patch for Korean, but I have no experience with that at all.)

Last edited by GeoffR; 10-13-2016 at 06:30 AM. Reason: Extended Latin keyboard vs. Japanese keyboard
GeoffR is offline   Reply With Quote