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, 10: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: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'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, 12: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,042
Karma: 56058267
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
Old 05-14-2017, 05:54 PM   #48
jackie_w
Grand Sorcerer
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: 6,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Patch: `Dictionary text font-family/font-size/line-height

This is a patch which will allow you to customise the appearance of the text in the dictionary pop-up widget and full-screen dictionary page. It can be found in kobopatch's libnickel.so.1.0.0.yaml file.

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.

The first 3 screenshots date from firmware 4.4.9298 when the patch was new:
  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 pop-up - increase available text area` (in nickel.yaml) 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.

Note:
If you own several different Kobo models it is unlikely that you will be able to find one custom font-size which will look good on all your devices so you may need to run the patch process multiple times with a different settings.


Update for firmware 4.17.13694

This update should benefit those who have also installed some of the many custom dictionaries posted elsewhere in the Kobo forum.

Custom dictionaries often appear to have many blank lines. The aim of this update is to remove some of that excess whitespace in both pop-up and full-screen dictionary widgets.

This update will not adversely affect patch users who only use Kobo's built-in dictionaries. Patch customisation looks pretty much the same as ever.

The last 3 attached screenshots are taken from firmware 4.17.13694.
Each shows both the pop-up and full-screen widgets for a custom dictionary [Oxford English]

4. unpatched KA1
5. patched Forma: WITHOUT customisation of font-family/font-size/line-height
6. patched Forma: WITH customisation. font-family: Arial, font-size: 32px, line-height: 1.30em

Screenshots 4-6 do NOT have my 2nd dictionary patch enabled, Dictionary pop-up - increase available text area.

Enabling this 2nd patch would also reduce the header and left/right margins inside the pop-up widget reclaiming a little more room for the dictionary definition

Unfortunately, due to Kobo changes, the 2nd patch can no longer increase the box-size of the pop-up widget nor reduce the height of the 'Page x of y' footer.
Attached Thumbnails
Click image for larger version

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

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

Name:	KA1_bookerly_45_1-4.png
Views:	871
Size:	239.9 KB
ID:	156757   Click image for larger version

Name:	fw417_1_patch_off.png
Views:	522
Size:	323.2 KB
ID:	173546   Click image for larger version

Name:	fw417_2_patch_on.png
Views:	481
Size:	369.6 KB
ID:	173547   Click image for larger version

Name:	fw417_3_patch_custom.png
Views:	437
Size:	380.3 KB
ID:	173548  

Last edited by jackie_w; 09-20-2019 at 05:59 PM. Reason: Updated for firmware 4.17.13694
jackie_w is offline   Reply With Quote
Old 05-15-2017, 01: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,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
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 03:12 AM. Reason: Removed `Hebrew keyboard`, see oren64's post below.
GeoffR is offline   Reply With Quote
Old 05-15-2017, 02: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,042
Karma: 56058267
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 08:20 AM.
oren64 is offline   Reply With Quote
Old 05-15-2017, 03: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: 175
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:	500
Size:	111.7 KB
ID:	156759   Click image for larger version

Name:	Kobo-Aura-H2O_Dictionary-text-font_patched.png
Views:	462
Size:	122.0 KB
ID:	156760  
Martina Schein is offline   Reply With Quote
Old 05-15-2017, 03: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,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
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, 07: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,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
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 07:50 AM. Reason: spelling
GeoffR is offline   Reply With Quote
Old 05-15-2017, 07:46 AM   #54
jackie_w
Grand Sorcerer
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: 6,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
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, 11:40 AM   #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: 617
Karma: 11908623
Join Date: Dec 2013
Location: Germany
Device: PocketBook InkPad 3 & Touch HD 3, Kobo Clara HD, Kindle Paperwhite 5
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, 05:08 PM   #56
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 873
Karma: 252902
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 05:12 PM.
Semwize is offline   Reply With Quote
Old 05-16-2017, 04: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: 73,645
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Which patches are not in the zip file in post #1? Thanks.
JSWolf is offline   Reply With Quote
Old 05-16-2017, 05: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: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'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:	392
Size:	266.7 KB
ID:	156787   Click image for larger version

Name:	screen_002_Bookerly_48px_1.4.png
Views:	397
Size:	260.5 KB
ID:	156788  
jcn363 is offline   Reply With Quote
Old 05-16-2017, 05: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: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'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, 06: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: 30
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 05:35 PM
Instructions for patching firmware 3.17.0 GeoffR Kobo Developer's Corner 49 08-16-2015 05:20 AM
Instructions for patching firmware 3.16.10 GeoffR Kobo Developer's Corner 12 08-14-2015 03:40 AM
Instructions for patching firmware 3.8.0 GeoffR Kobo Developer's Corner 92 10-22-2014 07:22 AM
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x GeoffR Kobo Developer's Corner 285 08-27-2014 10:06 AM


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


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