View Single Post
Old 04-16-2020, 01:28 PM   #52
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by Svens View Post
geek1011, would you agree to add "Bulgarian Phonetic Keyboard (Glo HD / ClaraHD / AuraOne / H2O2 / Forma / Libra)" in the future to libnickel.so.1.0.0.yaml? Tested with fw 4.20.14622 and works fine.Thanks!
Code:
Bulgarian Phonetic Keyboard (GloHD/ClaraHD/AuraOne/H2O2/Forma/Libra):
  - Enabled: no
  - PatchGroup: Keyboard alternatives
  - Description: |
      Replaces keys on the Extended Latin keypad with Cyrillic alternatives.
    
      Note that after the device boots, the keypad might just show blank squares
      until after the first book has been opened.
      Also note that long-pressing keys on the base keypad will no longer show
      the appropriate list of Extended Latin keys.
  # Replace layout sign
  - FindBaseAddressString: "ÉÀÇ"
  - ReplaceString: {Offset: 0, Find: "ÉÀÇ", Replace: "АБВ"}
  # Change keyboard layout
  - FindBaseAddressString: "ý\0\0ÿ\0\0š\0\0ž\0\0"
  # Top row, left to right (10 keys):
  - ReplaceString: {Offset: 0x00, Find: "ý\0", Replace: "ч"}
  - ReplaceString: {Offset: 0x04, Find: "ÿ\0", Replace: "э"}
  - ReplaceString: {Offset: 0x08, Find: "š\0", Replace: "ё"}
  - ReplaceString: {Offset: 0x0C, Find: "ž\0", Replace: "ы"}
  - ReplaceString: {Offset: 0x10, Find: "æ\0", Replace: ","}
  - ReplaceString: {Offset: 0x14, Find: "œ\0", Replace: ";"}
  - ReplaceString: {Offset: 0x18, Find: "þ\0", Replace: "!"}
  - ReplaceString: {Offset: -56, Find: "ß\0", Replace: "?"}
  - ReplaceString: {Offset: 0x1C, Find: "ij\0", Replace: "ш"}
  - ReplaceString: {Offset: 0x20, Find: "ŀ\0", Replace: "щ"}
    # Second row, left to right (10 keys):
  - ReplaceString: {Offset: 0x28, Find: "à\0", Replace: "я"}
  - ReplaceString: {Offset: 0x2C, Find: "á\0", Replace: "в"}
  - ReplaceString: {Offset: 0x30, Find: "â\0", Replace: "е"}
  - ReplaceString: {Offset: 0x34, Find: "ä\0", Replace: "р"}
  - ReplaceString: {Offset: 0x38, Find: "ã\0", Replace: "т"}
  - ReplaceString: {Offset: 0x3C, Find: "å\0", Replace: "ъ"}
  - ReplaceString: {Offset: 0x40, Find: "è\0", Replace: "у"}
  - ReplaceString: {Offset: 0x44, Find: "é\0", Replace: "и"}
  - ReplaceString: {Offset: 0x48, Find: "ê\0", Replace: "о"}
  - ReplaceString: {Offset: 0x4C, Find: "ë\0", Replace: "п"}
    # Third row, left to right (10 keys):
  - ReplaceString: {Offset: 0x50, Find: "ò\0", Replace: "а"}
  - ReplaceString: {Offset: 0x54, Find: "ó\0", Replace: "с"}
  - ReplaceString: {Offset: 0x58, Find: "ô\0", Replace: "д"}
  - ReplaceString: {Offset: 0x5C, Find: "ö\0", Replace: "ф"}
  - ReplaceString: {Offset: 0x60, Find: "õ\0", Replace: "г"}
  - ReplaceString: {Offset: 0x64, Find: "ø\0", Replace: "х"}
  - ReplaceString: {Offset: 0x68, Find: "ì\0", Replace: "й"}
  - ReplaceString: {Offset: 0x6C, Find: "í\0", Replace: "к"}
  - ReplaceString: {Offset: 0x70, Find: "î\0", Replace: "л"}
  - ReplaceString: {Offset: 0x74, Find: "ï\0", Replace: "ю"}
    # Fourth row, left to right (8 keys):
  - ReplaceString: {Offset: 0x78, Find: "ù\0", Replace: "з"}
  - ReplaceString: {Offset: 0x7C, Find: "ú\0", Replace: "ь"}
  - ReplaceString: {Offset: 0x80, Find: "û\0", Replace: "ц"}
  - ReplaceString: {Offset: 0x84, Find: "ü\0", Replace: "ж"}
  - ReplaceString: {Offset: 0x88, Find: "ñ\0", Replace: "б"}
  - ReplaceString: {Offset: 0x8C, Find: "ç\0", Replace: "н"}
  - ReplaceString: {Offset: 0x90, Find: "đ\0", Replace: "м"}
  - ReplaceString: {Offset: 0x94, Find: "ł\0", Replace: "."}
Yes, that looks good. Note that if you have a GitHub account, you can submit the changes directly.

Update: Done. https://github.com/geek1011/kobopatc...21305549e91bb1

Last edited by geek1011; 04-16-2020 at 01:42 PM.
geek1011 is offline   Reply With Quote