Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-14-2017, 11:50 AM   #46
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 318
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (4319'17.7"N 200'19.4"W)
Device: ka1
Quote:
Originally Posted by jackie_w View Post
I think I may be able to come up with something similar that will work in GeoffR's libnickel.so.1.0.0.patch file.
...
Watch this space in the next few days ...
jcn363 is offline   Reply With Quote
Old 05-14-2017, 01:05 PM   #47
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,040
Karma: 56037869
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
New version to patch `Chapers progress increasing size in Kepub`.
oren64 is offline   Reply With Quote
Advert
Old 05-14-2017, 06:54 PM   #48
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 4,703
Karma: 11300109
Join Date: Sep 2009
Location: UK
Device: PRS-350, Kobo: Aura6", H2O, GloHD, KA1, ClaraHD, Forma
New patch: `Dictionary text font-family/font-size/line-height - beta`

As promised here is a new patch which will allow you to customise the appearance of the text in the dictionary pop-up widget and full-screen dictionary page.

You can customise one or more of the following:
  • font-family (choose any font on your device, built-in or sideloaded)
  • font-size
  • line-height
As far as I can tell (trial and error) these are the current unpatched Kobo defaults:
Code:
         font-family    font-size   line-height
         -----------    ---------   -----------
    Glo: Georgia        23px        1.4em
    H2O: Georgia        29px        1.4em
  GloHD: Georgia        32px        1.4em
AuraONE: Georgia        42px        1.4em
... so work out your new custom font-size/line-height settings using these as a guideline.

Here is the patch code. It goes in libnickel.so.1.0.0.patch.
Spoiler:
Code:
<Patch>
patch_name = `Dictionary text font-family/font-size/line-height - beta`
patch_enable = `no`
# Multi-version patch: 4.4.9298 - 4.4.9298+
#
# This patch allows you to to customise the appearance of the text 
# in the dictionary pop-up widget and full-screen dictionary page.
#
# You can change one or more of the following attributes:
#   - font-family
#   - font-size
#   - line-height
#
# Stage 1: Change DictionaryView to remove %1, %2 etc variables
#   from:
#       * { font: %1px %2; line-height: %5em; }
#       div.descriptionFont { font-family: %3; }
#       ol { font-size: %1px; font-weight: bold; margin-left: %4em; margin-top: 0px; }
#       ol p { font-size: %1px; font-weight:normal; }
#
#   to:
#       * { font-size: 40px; line-height: 1.3em; font-family: Georgia                                           ;}
#       ol   { margin-left: 1em; margin-top: 0px; }
#       ol p { font-size:  1em; font-weight:normal; }
#
# ##### N.B. Do not change the next 2 lines #####
find_base_address = `* { font: %1px %2; line-height: %5em; }`
replace_string = 0000, `* { font: %1px %2; line-height: %5em; }\ndiv.descriptionFont { font-family: %3; }\nol { font-size: %1px; font-weight: bold; margin-left: %4em; margin-top: 0px; }\nol p { font-size: %1px; font-weight:normal; }\n`, `* { font-size: 40px; line-height: 1.4em; font-family: Georgia                                           ;}\n        \nol   { margin-left: 1em; margin-top: 0px; }\nol p { font-size:  1em; font-weight:normal; }\n`
# ##### N.B. Do not change anything above this line #####
#
#
# Stage 2: N.B. You MUST keep old and new strings EXACTLY the same length
#
# Un-comment ONE ONLY of the following replace_string examples 
#   to change dictionary font-family from default Georgia:
#   - to a different built-in font
#   - to one of your sideloaded custom fonts
#
# Notes for changing font-family:
#   1.  Pad the shorter of the old/new strings with spaces to 
#       keep same length for both strings (see examples below)
#
#   2.  If the new font-family name (max. 50 chars) contains any spaces it must be
#       wrapped in "double-quotes" (see examples 2, 3)
#
#   3.  To change from Georgia to the Kobo default sans-serif font, Avenir, 
#       use either one of the following to achieve the same result:
#       - sans-serif
#       - "Avenir Next Medium"
# 
# Examples for customising font-family:
#replace_string = 0036, `Georgia   `, `sans-serif`
#replace_string = 0036, `Georgia    `, `"Gill Sans"`
#replace_string = 0036, `Georgia      `, `"Kobo Nickel"`
#replace_string = 0036, `Georgia `, `Bookerly`
#
# Un-comment and edit next line to change font-size
#replace_string = 000F, `40px`, `30px`
#
# Un-comment and edit next line to change line spacing
#replace_string = 0022, `1.4`, `1.3`
</Patch>


Although the patch code looks quite long, most of it is Help Notes. The only lines you need to change are in the last 10 lines of the patch.

I've attached 3 screenshots:
  1. unpatched KA1 [**]
  2. patched KA1: font-family: "Gill Sans", font-size: 38px, line-height: 1.1em
  3. patched KA1: font-family: Bookerly, font-size: 45px, line-height: 1.4em
[**] Let me rephrase that. By 'unpatched' I mean before this particular patch was enabled. My other dictionary patch `Dictionary frame size - beta8` (in nickel.patch) is already enabled in all 3 of the screenshots. The 2 dictionary patches are not dependent on each other. Enable either, both or neither as you wish.

Please report back in this thread if you have any problems.

Caveat: If you own several different Kobo models it is unlikely that you will be able to find one set of custom values which will look good on all devices so you may need to run the patch process multiple times with a different libnickel.so.1.0.0.patch file for each.
Attached Thumbnails
Click image for larger version

Name:	KA1_unpatched.png
Views:	233
Size:	231.1 KB
ID:	156755   Click image for larger version

Name:	KA1_gillsans_38_1-1.png
Views:	235
Size:	235.4 KB
ID:	156756   Click image for larger version

Name:	KA1_bookerly_45_1-4.png
Views:	238
Size:	239.9 KB
ID:	156757  

Last edited by jackie_w; 05-14-2017 at 11:35 PM. Reason: Clarification [**] in blue
jackie_w is offline   Reply With Quote
Old 05-15-2017, 02:31 AM   #49
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,704
Karma: 17472090
Join Date: Nov 2012
Location: New Ulster
Device: Kobo Glo
Keyboard patches (Glo)

Here are some keyboard patches for the Glo, they should also change the keys on other devices but I'm not sure whether they will be arranged in the right order.

Hopefully others can confirm whether it suits other devices too, or else work off the notes in this example to create new patches for those devices.

`Cyrillic keyboard` (paste into libnickel.so.1.0.0.patch):
Spoiler:
Code:
<Patch>
patch_name = `Cyrillic keyboard`
patch_enable = `no`
# patch_group = `Keyboard alternatives`
#
## 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.
#
# Enable uppercase for `` key
replace_bytes = 708434, 00 26, 01 26
# Enable uppercase for `ƒ` key
#replace_bytes = 708414, 80 F0 01 00, 01 20 01 20
#
# Replace layout sign
find_base_address = ``
replace_string = 0000, ``, `абв`
#
# Change keyboard keys (1- or 2-byte characters only)
# Row positions based on Glo, might be different for other devices:
find_base_address = `\0\0š\0ž\0`
# Top row, left to right (10 keys):
replace_string = 000C, ``, `й`
replace_string = 000F, `œ`, `ф`
replace_string = 0012, ``, ``
replace_string = 0006, `š`, `š`
replace_string = 0009, `ž`, `ž`
replace_string = 0018, `ŀ`, `ŀ`
replace_string = FFFFFF8C, `ƒ`, `ƒ`
replace_string = 001B, `μ`, `μ`
replace_string = 001E, ``, ``
replace_string = 0021, ``, ``
# Second row, left to right (11 keys):
replace_string = 0024, ``, `ц`
replace_string = 0036, ``, `у`
replace_string = 0042, ``, `к`
replace_string = 0045, ``, `е`
replace_string = 0048, ``, `н`
replace_string = 0027, ``, `г`
replace_string = 0039, ``, `ш`
replace_string = 004B, ``, `щ`
replace_string = 004E, ``, `з`
replace_string = 0051, ``, `х`
replace_string = 0000, ``, `ъ`
# Third row, left to right (11 keys):
replace_string = 002A, ``, `ы`
replace_string = 003C, ``, `в`
replace_string = 0060, ``, `а`
replace_string = 0054, ``, `п`
replace_string = 0066, ``, `р`
replace_string = 002D, ``, `о`
replace_string = 003F, ``, `л`
replace_string = 0063, ``, `д`
replace_string = 0057, ``, `ж`
replace_string = 0069, ``, `э`
replace_string = 0003, ``, `ё`
# Bottom row, left to right (10 keys):
replace_string = 0030, ``, `я`
replace_string = 006C, ``, `ч`
replace_string = 005A, ``, `с`
replace_string = 0033, ``, `м`
replace_string = FFFFFF89, ``, `и`
replace_string = 006F, ``, `т`
replace_string = 0072, `đ`, `ь`
replace_string = 005D, ``, `б`
replace_string = 0015, `ij`, `ю`
replace_string = 0075, `ł`, `.`
</Patch>

`Arabic keyboard` (paste into libnickel.so.1.0.0.patch):
Spoiler:
Code:
<Patch>
patch_name = `Arabic keyboard`
patch_enable = `no`
# Multi-version patch: 4.4.9298+
# patch_group = `Keyboard alternatives`
#
## Replaces keys on the Extended Latin keypad with Arabic 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.
#
# Enable uppercase for `` key
#replace_bytes = 708434, 00 26, 01 26
# Enable uppercase for `ƒ` key
#replace_bytes = 708414, 80 F0 01 00, 01 20 01 20
# Replace layout sign
find_base_address = ``
replace_string = 0000, ``, `ع`
# Change keyboard layout
find_base_address = `\0\0š\0ž\0`
# Top row, left to right (10 keys):
replace_string = 000C, ``, `ذ`
replace_string = 000F, `œ`, `ض`
replace_string = 0012, ``, ``
replace_string = 0006, `š`, `š`
replace_string = 0009, `ž`, `ž`
replace_string = 0018, `ŀ`, `ŀ`
replace_string = FFFFFF8C, `ƒ`, `ƒ`
replace_string = 001B, `μ`, `μ`
replace_string = 001E, ``, ``
replace_string = 0021, ``, ``
# Second row, left to right (11 keys):
replace_string = 0024, ``, `ص`
replace_string = 0036, ``, `ث`
replace_string = 0042, ``, `ق`
replace_string = 0045, ``, `ف`
replace_string = 0048, ``, `غ`
replace_string = 0027, ``, `ع`
replace_string = 0039, ``, `ه`
replace_string = 004B, ``, `خ`
replace_string = 004E, ``, `ح`
replace_string = 0051, ``, `ج`
replace_string = 0000, ``, `د`
# Third row, left to right (11 keys):
replace_string = 002A, ``, `ش`
replace_string = 003C, ``, `س`
replace_string = 0060, ``, `ي`
replace_string = 0054, ``, `ب`
replace_string = 0066, ``, `ل`
replace_string = 002D, ``, `ا`
replace_string = 003F, ``, `ت`
replace_string = 0063, ``, `ن`
replace_string = 0057, ``, `م`
replace_string = 0069, ``, `ك`
replace_string = 0003, ``, `ط`
# Bottom row, left to right (10 keys):
replace_string = 0030, ``, `ئ`
replace_string = 006C, ``, `ء`
replace_string = 005A, ``, `ؤ`
replace_string = 0033, ``, `ر`
replace_string = FFFFFF89, ``, `ى`
replace_string = 006F, ``, `ة`
replace_string = 0072, `đ`, `و`
replace_string = 005D, ``, `ز`
replace_string = 0015, `ij`, `ظ`
replace_string = 0075, `ł`, `.`
</Patch>

Edit: I'll add more keyboard patches to this post when I get time.

Last edited by GeoffR; 05-15-2017 at 04:12 AM. Reason: Removed `Hebrew keyboard`, see oren64's post below.
GeoffR is offline   Reply With Quote
Old 05-15-2017, 03:46 AM   #50
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,040
Karma: 56037869
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
`Hebrew keyboard - for Mini/Touch/Glo/Aura` (paste into libnickel.so.1.0.0.patch):

Spoiler:
Code:
<Patch>
patch_name = `Hebrew keyboard`
patch_enable = `no`
# Multi-version patch: 4.4.9298+
# patch_group = `Keyboard alternatives`
#
## Replaces keys on the Extended Latin keypad with Hebrew 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.
#
# Enable uppercase for `` key
#replace_bytes = 708434, 00 26, 01 26
# Enable uppercase for `ƒ` key
#replace_bytes = 708414, 80 F0 01 00, 01 20 01 20
#
# Replace layout sign
find_base_address = ``
replace_string = 0000, ``, `אב`
#
# Change keyboard keys (1- or 2-byte characters only)
# Row positions based on Glo, might be different for other devices:
find_base_address = `\0\0š\0ž\0`
# Top row, left to right (10 keys):
# You can edit the top row as you like
replace_string = 000C, ``, `!`
replace_string = 000F, `œ`, `?`
replace_string = 0012, ``, `-`
replace_string = 0006, `š`, `_`
replace_string = 0009, `ž`, `(`
replace_string = 0018, `ŀ`, `)`
replace_string = FFFFFF8C, `ƒ`, `[`
replace_string = 001B, `μ`, `]`
replace_string = 001E, ``, `:`
replace_string = 0021, ``, `;`
# Second row, left to right (11 keys):
replace_string = 0024, ``, `/`
replace_string = 0036, ``, `'`
replace_string = 0042, ``, `ק`
replace_string = 0045, ``, `ר`
replace_string = 0048, ``, `א`
replace_string = 0027, ``, `ט`
replace_string = 0039, ``, `ו`
replace_string = 004B, ``, `ן`
replace_string = 004E, ``, `ם`
replace_string = 0051, ``, `פ`
replace_string = 0000, ``, `"`
# Third row, left to right (11 keys):
replace_string = 002A, ``, `ש`
replace_string = 003C, ``, `ד`
replace_string = 0060, ``, `ג`
replace_string = 0054, ``, `כ`
replace_string = 0066, ``, `ע`
replace_string = 002D, ``, `י`
replace_string = 003F, ``, `ח`
replace_string = 0063, ``, `ל`
replace_string = 0057, ``, `ך`
replace_string = 0069, ``, `ף`
replace_string = 0003, ``, `,`
# Bottom row, left to right (10 keys):
replace_string = 0030, ``, `ז`
replace_string = 006C, ``, `ס`
replace_string = 005A, ``, `ב`
replace_string = 0033, ``, `ה`
replace_string = FFFFFF89, ``, `נ`
replace_string = 006F, ``, `מ`
replace_string = 0072, `đ`, `צ`
replace_string = 005D, ``, `ת`
replace_string = 0015, `ij`, `ץ`
replace_string = 0075, `ł`, `.`
</Patch>


`Hebrew keyboard - for AuraHD/GloHD/H2O` (paste into libnickel.so.1.0.0.patch):

Spoiler:
Code:
<Patch>
patch_name = `Hebrew keyboard - for AuraHD/GloHD/H2O`
patch_enable = `no`
# Multi-version patch: 4.4.9298+
# patch_group = `Keyboard alternatives`
#
## Replaces keys on the Extended Latin keypad with Hebrew 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.
#
# Enable uppercase for `` (sharp s) key
#replace_bytes = 708434, 00 26, 01 26
# Replace layout sign
find_base_address = ``
replace_string = 0000, ``, ``
# Change keyboard layout
find_base_address = `\0\0š\0ž\0`
# (Top row cannot be changed.)
# Second row, left to right (12 keys):
replace_string = 000C, ``, `/`
replace_string = 0024, ``, `'`
replace_string = 0036, ``, `ק`
replace_string = 0042, ``, `ר`
replace_string = 0045, ``, `א`
replace_string = 0048, ``, `ט`
replace_string = 0027, ``, `ו`
replace_string = 0039, ``, `ן`
replace_string = 004B, ``, `ם`
replace_string = 004E, ``, `פ`
replace_string = 0051, ``, `]`
replace_string = 0000, ``, `[`
# Third row, left to right (12 keys):
replace_string = 000F, `œ`, `ש`
replace_string = 002A, ``, `ד`
replace_string = 003C, ``, `ג`
replace_string = 0060, ``, `כ`
replace_string = 0054, ``, `ע`
replace_string = 0066, ``, `י`
replace_string = 002D, ``, `ח`
replace_string = 003F, ``, `ל`
replace_string = 0063, ``, `ך`
replace_string = 0057, ``, `ף`
replace_string = 0069, ``, `,`
replace_string = 0003, ``, `"`
# Fourth row, left to right (10 keys):
replace_string = 0030, ``, `ז`
replace_string = 006C, ``, `ס`
replace_string = 005A, ``, `ב`
replace_string = 0033, ``, `ה`
replace_string = FFFFFF89, ``, `נ`
replace_string = 006F, ``, `מ`
replace_string = 0072, `đ`, `צ`
replace_string = 005D, ``, `ת`
replace_string = 0015, `ij`, `ץ`
replace_string = 0075, `ł`, `.`
</Patch>


`Hebrew keyboard - for AuraOne` (paste into libnickel.so.1.0.0.patch):

Spoiler:
Code:
<Patch>
patch_name = `Hebrew keyboard- for AuraOne`
patch_enable = `no`
# Multi-version patch: 4.4.9298+
# patch_group = `Keyboard alternatives`
#
## Replaces keys on the Extended Latin keypad with Hebrew 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.
#
# Enable uppercase for `` (sharp s) key
replace_bytes = 708434, 00 26, 01 26
# Replace layout sign
find_base_address = ``
replace_string = 0000, ``, ``
# Change keyboard layout
find_base_address = `\0\0š\0ž\0`
# Top row, left to right (10 keys):
replace_string = 0000, ``, `/`
replace_string = 0003, ``, `'`
replace_string = 0006, `š`, `ק`
replace_string = 0009, `ž`, `ר`
replace_string = 000C, ``, `א`
replace_string = 000F, `œ`, `ט`
replace_string = 0012, ``, `ו`
replace_string = FFFFFF89, ``, `ן`
replace_string = 0015, `ij`, `ם`
replace_string = 0018, `ŀ`, `פ`
# Second row, left to right (10 keys):
replace_string = 0024, ``, `ש`
replace_string = 0027, ``, `ד`
replace_string = 002A, ``, `ג`
replace_string = 002D, ``, `כ`
replace_string = 0030, ``, `ע`
replace_string = 0033, ``, `י`
replace_string = 0036, ``, `ח`
replace_string = 0039, ``, `ל`
replace_string = 003C, ``, `ך`
replace_string = 003F, ``, `ף`
# Third row, left to right (10 keys):
replace_string = 0045, ``, `ז`
replace_string = 004E, ``, `ס`
replace_string = 0054, ``, `ב`
replace_string = 0057, ``, `ה`
replace_string = 005A, ``, `נ`
replace_string = 005D, ``, `מ`
replace_string = 0042, ``, `צ`
replace_string = 004B, ``, `ת`
replace_string = 0060, ``, `ץ`
replace_string = 0063, ``, `.`
# Fourth row, left to right (10 keys):
replace_string = 0048, ``, `!`
replace_string = 0051, ``, `?`
replace_string = 0066, ``, `,`
replace_string = 0069, ``, `"`
replace_string = 006C, ``, `)`
replace_string = 006F, ``, `(`
replace_string = 0072, `đ`, `-`
replace_string = 0075, `ł`, `_`
</Patch>


Edit: GeoffR I didn't see you add the Hebrew Keyboard.
Hebrew Keyboard I post is more closer to the real Hebrew Keyboard, it have the characters that are missing in your keyboard like comma and quotation marks.

Edit 2: Multi-version patch: 4.4.9298+

Last edited by oren64; 05-15-2017 at 09:20 AM.
oren64 is offline   Reply With Quote
Advert
Old 05-15-2017, 04:01 AM   #51
Martina Schein
eBook-Reader-Fan
Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.
 
Martina Schein's Avatar
 
Posts: 171
Karma: 444178
Join Date: Sep 2012
Location: Saarbruecken / DE
Device: Kobo Aura H2O 2nd Edition
Quote:
Originally Posted by jackie_w View Post
New patch: `Dictionary text font-family/font-size/line-height - beta`
Thank you very much. The patch works fine on my H2O.

first screenshot = unpatched
second screenshot= 40px 1.3 Bockerly
Attached Thumbnails
Click image for larger version

Name:	Kobo-Aura-H2O_Dictionary-text-font_unpatched.png
Views:	214
Size:	111.7 KB
ID:	156759   Click image for larger version

Name:	Kobo-Aura-H2O_Dictionary-text-font_patched.png
Views:	206
Size:	122.0 KB
ID:	156760  
Martina Schein is offline   Reply With Quote
Old 05-15-2017, 04:11 AM   #52
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,704
Karma: 17472090
Join Date: Nov 2012
Location: New Ulster
Device: Kobo Glo
Quote:
Originally Posted by oren64 View Post
Edit: GeoffR I didn't see you add the you add the Hebrew Keyboard.
Hebrew Keyboard I post is more closer to the real Hebrew Keyboard, it have the characters that are missing in your keyboard like comma and quotation marks.
Thanks oren64, I'll use your one. Just note that you can comment out the code that enables uppercase and make it into a multi-version patch:
Code:
# Enable uppercase for `` key
#replace_bytes = 708434, 00 26, 01 26
GeoffR is offline   Reply With Quote
Old 05-15-2017, 08:40 AM   #53
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,704
Karma: 17472090
Join Date: Nov 2012
Location: New Ulster
Device: Kobo Glo
Keyboard template patches

Here are template patches for the three different keyboard layouts. I am assuming the layouts haven't changed, so let me know if they have.

To create a keyboard patch just replace the right-most value in each of the replace_string lines. Only 1- or 2-byte characters can be used, so keyboards for some languages are not possible.

Layout for Mini/Touch/Glo/Aura:
Code:
 œ  š ž ŀ ƒ μ  
          
          
        đ  ij ł
`Keyboard template - Mini/Touch/Glo/Aura` (paste into libnickel.so.1.0.0.patch):
Spoiler:
Code:
<Patch>
patch_name = `Keyboard template - Mini/Touch/Glo/Aura`
patch_enable = `no`
# patch_group = `Keyboard alternatives`
#
## Replaces keys on the Extended Latin keypad with 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.
#
# Enable uppercase for `` (sharp s) key
replace_bytes = 708434, 00 26, 01 26
# Enable uppercase for `ƒ` (script f) key
replace_bytes = 708414, 80 F0 01 00, 01 20 01 20
# Replace layout sign
find_base_address = ``
replace_string = 0000, ``, ``
# Change keyboard layout
find_base_address = `\0\0š\0ž\0`
# Top row, left to right (10 keys):
replace_string = 000C, ``, ``
replace_string = 000F, `œ`, `œ`
replace_string = 0012, ``, ``
replace_string = 0006, `š`, `š`
replace_string = 0009, `ž`, `ž`
replace_string = 0018, `ŀ`, `ŀ`
replace_string = FFFFFF8C, `ƒ`, `ƒ`
replace_string = 001B, `μ`, `μ`
replace_string = 001E, ``, ``
replace_string = 0021, ``, ``
# Second row, left to right (11 keys):
replace_string = 0024, ``, ``
replace_string = 0036, ``, ``
replace_string = 0042, ``, ``
replace_string = 0045, ``, ``
replace_string = 0048, ``, ``
replace_string = 0027, ``, ``
replace_string = 0039, ``, ``
replace_string = 004B, ``, ``
replace_string = 004E, ``, ``
replace_string = 0051, ``, ``
replace_string = 0000, ``, ``
# Third row, left to right (11 keys):
replace_string = 002A, ``, ``
replace_string = 003C, ``, ``
replace_string = 0060, ``, ``
replace_string = 0054, ``, ``
replace_string = 0066, ``, ``
replace_string = 002D, ``, ``
replace_string = 003F, ``, ``
replace_string = 0063, ``, ``
replace_string = 0057, ``, ``
replace_string = 0069, ``, ``
replace_string = 0003, ``, ``
# Fourth row, left to right (10 keys):
replace_string = 0030, ``, ``
replace_string = 006C, ``, ``
replace_string = 005A, ``, ``
replace_string = 0033, ``, ``
replace_string = FFFFFF89, ``, ``
replace_string = 006F, ``, ``
replace_string = 0072, `đ`, `đ`
replace_string = 005D, ``, ``
replace_string = 0015, `ij`, `ij`
replace_string = 0075, `ł`, `ł`
</Patch>


Layout for AuraHD/GloHD/H2O (Top row cannot be changed.)
Code:
1 2 3 4 5 6 7 8 9 0
           
œ           
          đ  ij ł
`Keyboard template - AuraHD/GloHD/H2O` (paste into libnickel.so.1.0.0.patch):
Spoiler:
Code:
<Patch>
patch_name = `Keyboard template - AuraHD/GloHD/H2O`
patch_enable = `no`
# patch_group = `Keyboard alternatives`
#
## Replaces keys on the Extended Latin keypad with 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.
#
# Enable uppercase for `` (sharp s) key
replace_bytes = 708434, 00 26, 01 26
# Replace layout sign
find_base_address = ``
replace_string = 0000, ``, ``
# Change keyboard layout
find_base_address = `\0\0š\0ž\0`
# (Top row cannot be changed.)
# Second row, left to right (12 keys):
replace_string = 000C, ``, ``
replace_string = 0024, ``, ``
replace_string = 0036, ``, ``
replace_string = 0042, ``, ``
replace_string = 0045, ``, ``
replace_string = 0048, ``, ``
replace_string = 0027, ``, ``
replace_string = 0039, ``, ``
replace_string = 004B, ``, ``
replace_string = 004E, ``, ``
replace_string = 0051, ``, ``
replace_string = 0000, ``, ``
# Third row, left to right (12 keys):
replace_string = 000F, `œ`, `œ`
replace_string = 002A, ``, ``
replace_string = 003C, ``, ``
replace_string = 0060, ``, ``
replace_string = 0054, ``, ``
replace_string = 0066, ``, ``
replace_string = 002D, ``, ``
replace_string = 003F, ``, ``
replace_string = 0063, ``, ``
replace_string = 0057, ``, ``
replace_string = 0069, ``, ``
replace_string = 0003, ``, ``
# Fourth row, left to right (10 keys):
replace_string = 0030, ``, ``
replace_string = 006C, ``, ``
replace_string = 005A, ``, ``
replace_string = 0033, ``, ``
replace_string = FFFFFF89, ``, ``
replace_string = 006F, ``, ``
replace_string = 0072, `đ`, `đ`
replace_string = 005D, ``, ``
replace_string = 0015, `ij`, `ij`
replace_string = 0075, `ł`, `ł`
</Patch>


Layout for AuraOne:
Code:
  š ž  œ   ij ŀ
         
         
        đ ł
`Keyboard template - AuraOne` (paste into libnickel.so.1.0.0.patch):
Spoiler:
Code:
<Patch>
patch_name = `Keyboard template - AuraOne`
patch_enable = `no`
# patch_group = `Keyboard alternatives`
#
## Replaces keys on the Extended Latin keypad with 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.
#
# Enable uppercase for `` (sharp s) key
replace_bytes = 708434, 00 26, 01 26
# Replace layout sign
find_base_address = ``
replace_string = 0000, ``, ``
# Change keyboard layout
find_base_address = `\0\0š\0ž\0`
# Top row, left to right (10 keys):
replace_string = 0000, ``, ``
replace_string = 0003, ``, ``
replace_string = 0006, `š`, `š`
replace_string = 0009, `ž`, `ž`
replace_string = 000C, ``, ``
replace_string = 000F, `œ`, `œ`
replace_string = 0012, ``, ``
replace_string = FFFFFF89, ``, ``
replace_string = 0015, `ij`, `ij`
replace_string = 0018, `ŀ`, `ŀ`
# Second row, left to right (10 keys):
replace_string = 0024, ``, ``
replace_string = 0027, ``, ``
replace_string = 002A, ``, ``
replace_string = 002D, ``, ``
replace_string = 0030, ``, ``
replace_string = 0033, ``, ``
replace_string = 0036, ``, ``
replace_string = 0039, ``, ``
replace_string = 003C, ``, ``
replace_string = 003F, ``, ``
# Third row, left to right (10 keys):
replace_string = 0045, ``, ``
replace_string = 004E, ``, ``
replace_string = 0054, ``, ``
replace_string = 0057, ``, ``
replace_string = 005A, ``, ``
replace_string = 005D, ``, ``
replace_string = 0042, ``, ``
replace_string = 004B, ``, ``
replace_string = 0060, ``, ``
replace_string = 0063, ``, ``
# Fourth row, left to right (8 keys):
replace_string = 0048, ``, ``
replace_string = 0051, ``, ``
replace_string = 0066, ``, ``
replace_string = 0069, ``, ``
replace_string = 006C, ``, ``
replace_string = 006F, ``, ``
replace_string = 0072, `đ`, `đ`
replace_string = 0075, `ł`, `ł`
</Patch>

Last edited by GeoffR; 05-15-2017 at 08:50 AM. Reason: spelling
GeoffR is offline   Reply With Quote
Old 05-15-2017, 08:46 AM   #54
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 4,703
Karma: 11300109
Join Date: Sep 2009
Location: UK
Device: PRS-350, Kobo: Aura6", H2O, GloHD, KA1, ClaraHD, Forma
Quote:
Originally Posted by Martina Schein View Post
Thank you very much. The patch works fine on my H2O.
Thanks for confirming, Martina
jackie_w is offline   Reply With Quote
Old 05-15-2017, 12:40 PM   #55
LucyOne
Librocubicularist
LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.
 
LucyOne's Avatar
 
Posts: 427
Karma: 1907129
Join Date: Dec 2013
Location: Germany
Device: PocketBook InkPad 3 & Touch HD 3, Kobo Clara HD, Kindle Paperwhite 4
Quote:
Originally Posted by jackie_w View Post
As promised here is a new patch which will allow you to customise the appearance of the text in the dictionary pop-up widget and full-screen dictionary page.
Great patch, Jackie! I always wanted to have a larger font in the dictionary.
I'd post a screenshot of my GloHD if I just knew how.
LucyOne is offline   Reply With Quote
Old 05-15-2017, 06:08 PM   #56
Semwize
 
Semwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmosSemwize has become one with the cosmos
 
Posts: 156
Karma: 21000
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by GeoffR View Post
Layout for AuraHD/GloHD/H2O
For Glo HD did not fit (Cyrillic) from AuraOne fit, but without the numbers if.

Last edited by Semwize; 05-15-2017 at 06:12 PM.
Semwize is offline   Reply With Quote
Old 05-16-2017, 05:39 AM   #57
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 52,430
Karma: 47532469
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Which patches are not in the zip file in post #1? Thanks.
JSWolf is offline   Reply With Quote
Old 05-16-2017, 06:33 AM   #58
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 318
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (4319'17.7"N 200'19.4"W)
Device: ka1
Quote:
Originally Posted by jackie_w View Post
As promised here is a new patch which will allow you to customise the appearance of the text in the dictionary pop-up widget and full-screen dictionary page.

Thanks a lot.
The patch works fine on my ka1.
Attached Thumbnails
Click image for larger version

Name:	screen_001_Bookerly_45px_1.3.png
Views:	147
Size:	266.7 KB
ID:	156787   Click image for larger version

Name:	screen_002_Bookerly_48px_1.4.png
Views:	135
Size:	260.5 KB
ID:	156788  
jcn363 is offline   Reply With Quote
Old 05-16-2017, 06:49 AM   #59
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 318
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (4319'17.7"N 200'19.4"W)
Device: ka1
Quote:
Originally Posted by LucyOne View Post
I'd post a screenshot of my GloHD if I just knew how.
I do in this way:
in .kobo/Kobo/Kobo eReader.conf search for
Code:
[FeatureSettings]
Screenshots=false
change to true
disconnect
take the screenshot with ON key
Don't forget to change to false when you done.

Good luck!
jcn363 is offline   Reply With Quote
Old 05-16-2017, 07:55 AM   #60
aklenatlus
Enthusiast
aklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcoveraklenatlus exercises by bench pressing the entire Harry Potter series in hardcover
 
Posts: 29
Karma: 16190
Join Date: Jul 2016
Location: Rome, Italy
Device: Kobo Aura One
Hi, is it possible to remove the header (which report the book's title) and let the footer remain?
Thanks
aklenatlus is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.17.3 GeoffR Kobo Developer's Corner 60 09-17-2015 06:35 PM
Instructions for patching firmware 3.17.0 GeoffR Kobo Developer's Corner 49 08-16-2015 06:20 AM
Instructions for patching firmware 3.16.10 GeoffR Kobo Developer's Corner 12 08-14-2015 04:40 AM
Instructions for patching firmware 3.8.0 GeoffR Kobo Developer's Corner 92 10-22-2014 08:22 AM
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x GeoffR Kobo Developer's Corner 285 08-27-2014 11:06 AM


All times are GMT -4. The time now is 04:04 AM.


MobileRead.com is a privately owned, operated and funded community.