View Single Post
Old 12-26-2016, 07:46 AM   #107
kido.resuri
Groupie
kido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura about
 
Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
Hello!

I really like all of your work in patching Kobo fw.
I tried it myself, and created a hungarian keyboard based on the turkish keyboard.
But something is not good, most of the characters doesn't have upper case, and adds and extra space after them. Only the hyphenated characters work as expected.
Here's the code:

Code:
<Patch>
patch_name = `Hungarian keyboard`
patch_enable = `yes`
# patch_group = `Keyboard alternatives`
#
## Replaces keys on the Extended Latin keypad with Hungarian alternatives.
#
# Enable uppercase for `ß` key
#replace_bytes = 851C38, 00 24, 01 24
# Replace layout sign
find_base_address = `ÉÀÇ`
replace_string = 0000, `ÉÀÇ`, `EN/HU`
# Change keyboard layout
find_base_address = `æ\0\0à\0\0è\0\0ì\0\0`
# Second row, left to right:
# (for Touch/Mini/Glo/Aura the first key moves to top row, first column.)
replace_string = 0000, `æ\0`, `q`
replace_string = 0004, `à\0`, `w`
replace_string = 0008, `è\0`, `e`
replace_string = 000C, `ì\0`, `r`
replace_string = 0010, `ò\0`, `t`
replace_string = 0014, `ù\0`, `z`
replace_string = 0018, `á\0`, `u`
replace_string = 001C, `é\0`, `i`
replace_string = 0020, `í\0`, `o`
replace_string = 0024, `ó\0`, `p`
replace_string = 0028, `ú\0`, `ő`
replace_string = 002C, `ý\0`, `ú`
# Third row, left to right:
# (for Touch/Mini/Glo/Aura the first key moves to top row, second column.)
replace_string = 0030, `œ\0`, `a`
replace_string = 0034, `â\0`, `s`
replace_string = 0038, `ê\0`, `d`
replace_string = 003C, `î\0`, `f`
replace_string = 0040, `ô\0`, `g`
replace_string = 0044, `û\0`, `h`
replace_string = 0048, `ä\0`, `j`
replace_string = 004C, `ë\0`, `k`
replace_string = 0050, `ï\0`, `l`
replace_string = 0054, `ö\0`, `é`
replace_string = 0058, `ü\0`, `á`
replace_string = 005C, `ÿ\0`, `ű`
# Bottom row, left to right:
replace_string = 0060, `ã\0`, `í`
replace_string = 0064, `ñ\0`, `y`
replace_string = 0068, `õ\0`, `c`
replace_string = 006C, `å\0`, `v`
replace_string = 0070, `ß\0`, `b`
replace_string = 0074, `ç\0`, `n`
replace_string = 0078, `đ\0`, `m`
replace_string = 007C, `ø\0`, `ö`
replace_string = 0080, `ij\0`, `ü`
replace_string = 0084, `ł\0`, `ó`
#
# Top row: Extra keys for Touch/Mini/Glo/Aura only.
# (This patch cannot change the top row of the AuraHD/H2O/GloHD keypad.)
##find_base_address = `ƒ\0\0þ\0\0š\0\0ž\0\0`
# Top row: columns 1-2 (see first key of second/third rows above.)
# Top row: columns 3-5
##replace_string = 0004, `þ\0`, `?`
##replace_string = 0008, `š\0`, `”`
##replace_string = 000C, `ž\0`, `-`
# Top row: column 6 is a duplicate of the last key on the bottom row.
# Top row: columns 7-10
##replace_string = 0000, `ƒ\0`, `:`
##replace_string = 0010, `μ\0`, `;`
##replace_string = 0014, `ª\0`, `,`
##replace_string = 0018, `º\0`, `.`
</Patch>
Any help would be appreciated.

Last edited by kido.resuri; 12-27-2016 at 12:34 PM. Reason: Fine-tuned the code
kido.resuri is offline   Reply With Quote