View Single Post
Old 10-21-2014, 06:16 AM   #2
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
Notes and other patches

Notes:

There is a new version of the `Freedom to advanced fonts control` patch: beware that it is not be safe to use this patch if you have your device language set to Japanese or are reading japanese books. If you try this patch, please let me know if you notice any problems.

If you don't want to use the `Freedom to advanced fonts control` patch there is another way to set the weight/sharpness of sideloaded fonts: if you look in your device's config file .kobo/Kobo/Kobo eReader.conf you should find the settings for weight and sharpness for each sideloaded font that you adjusted previously. These still work with the new firmware, and you can add or adjust them manually by editing the file with a text editor. (In Windows don't use Notepad to edit the file, use a text editor that understands unix line breaks, such as Notepad++).

Example for sideloaded "Dark Courier" font:
Code:
[Reading]
readingFontSharpness\Dark%20Courier=0.05
readingFontWeight\Dark%20Courier=0.25
The sharpness set by the slider ranges from -0.4 to 0.2 (default -0.0666), and weight from -0.2 to 0.8 (default 0.1).


I've left the PDF patches in libadobe.so.patch disabled by default, if anyone uses them let me know if they still work. I don't read PDFs so I don't test them myself.


There are now two alternatives for the `ePub fixed top/bottom margin` patch: Increased top margin with zero bottom margin; or increased top and equal bottom margin.


Other patches:

If you know of any other patches for firmware 3.11.0, post in this thread and I'll include them in this post.


A patch to change the footer text, from "Page xx of yy" to "xx/yy": (libnickel.so.1.0.0.patch)
https://www.mobileread.com/forums/sho...3&postcount=28



A patch to remove the white border from the homescreen tile book covers (libnickel.so.1.0.0.patch):
Spoiler:
Code:
<Patch>
patch_name = `Remove white borders from homescreen tile book covers`
patch_enable = `yes`
#PhoenixSmallRecentBookTile
replace_string = CE6403, `coverBorder:4;`, `coverBorder:0;`
replace_string = CE64D4, `coverBorder:4;`, `coverBorder:0;`
#PocketRecentlyReadTile
replace_string = CE73D6, `coverBorder: 6;`, `coverBorder: 0;`
replace_string = CE749B, `coverBorder: 4;`, `coverBorder: 0;`
#RecentBookTile
replace_string = CE9870, `coverBorder:6;`, `coverBorder:0;`
replace_string = CE9928, `coverBorder:4;`, `coverBorder:0;`
replace_string = CE9A0F, `coverBorder:4;`, `coverBorder:0;`
#SmallRecentBookTile
replace_string = CEBCEE, `coverBorder:6;`, `coverBorder:0;`
</Patch>




A patch for a more compact homescreen layout on the Glo and Aura only (libnickel.so.1.0.0.patch):

Glo:
Spoiler:
Code:
<Patch>
patch_name = `Compact homepage layout (Glo only)`
patch_enable = `yes`
#DragonHomePageView (Search bar height)
replace_string = CDEE88, `min-height:100px;`, `min-height:090px;`
replace_string = CDEE9B, `max-height:100px;`, `max-height:090px;`
#QWidget (Space below search bar)
replace_string = CDF021, `min-height:40px;`, `min-height:08px;`
replace_string = CDF033, `max-height:40px;`, `max-height:08px;`
#MultiColumnTileView (Space between tiles)
replace_string = CDF1D1, `horizontalSpacing:10;`, `horizontalSpacing:04;`
replace_string = CDF1F2, `verticalSpacing:10;`, `verticalSpacing:04;`
#footer (Footer menu bar height)
replace_string = CDF61E, `min-height:95px;`, `min-height:68px;`
replace_string = CDF630, `max-height:95px;`, `max-height:68px;`
#PhoenixSmallRecentBookTile
replace_string = CE63C4, `percentFontSize:28;`, `percentFontSize:22;`
replace_string = CE63E3, `progressFontSize:22;`, `progressFontSize:22;`
#RecentBookTile
replace_string = CE98C3, `percentFontSize:28;`, `percentFontSize:22;`
replace_string = CE98E8, `progressFontSize:22;`, `progressFontSize:22;`
</Patch>

Aura:
Spoiler:
Code:
<Patch>
patch_name = `Compact homepage layout (Aura)`
patch_enable = `yes`
#DragonHomePageView (Search bar height)
replace_string = CDEE88, `min-height:100px;`, `min-height:090px;`
replace_string = CDEE9B, `max-height:100px;`, `max-height:090px;`
#QWidget (Space below search bar)
replace_string = CDF021, `min-height:40px;`, `min-height:02px;`
replace_string = CDF033, `max-height:40px;`, `max-height:02px;`
#MultiColumnTileView (Space between tiles)
replace_string = CDF1D1, `horizontalSpacing:10;`, `horizontalSpacing:02;`
replace_string = CDF1F2, `verticalSpacing:10;`, `verticalSpacing:02;`
#footer (Footer menu bar height)
replace_string = CDF61E, `min-height:95px;`, `min-height:68px;`
replace_string = CDF630, `max-height:95px;`, `max-height:68px;`
#PhoenixSmallRecentBookTile
replace_string = CE63C4, `percentFontSize:28;`, `percentFontSize:22;`
replace_string = CE63E3, `progressFontSize:22;`, `progressFontSize:22;`
#RecentBookTile
replace_string = CE98C3, `percentFontSize:28;`, `percentFontSize:22;`
replace_string = CE98E8, `progressFontSize:22;`, `progressFontSize:22;`
</Patch>



Alternative custom footer patches with more examples:
https://www.mobileread.com/forums/sho...&postcount=175



Custom Sleep/Power-off time menu options (libnickel.so.1.0.0.patch)
Spoiler:
Code:
<Patch>
patch_name = `Custom Sleep/Power-off time menu options`
patch_enable = `yes`
# Values displayed on both menus
replace_string = D7EEB4, `5 mins\x00`, `10 mins`
replace_string = D7EEBC, `10 mins`, `20 mins`
replace_string = D7EEC4, `15 mins`, `30 mins`
replace_string = D7EECC, `30 mins`, `1 hour`
replace_string = D7EED4, `45 mins`, `2 hours`
replace_string = D7EEDC, `60 mins`, `4 hours`
# Actual values used for sleep menu, range 1-255 minutes
replace_int = A0FABA, 5, 10
replace_int = A0FB04, 10, 20
replace_int = A0FB48, 15, 30
replace_int = A0FB8C, 30, 60
replace_int = A0FBD0, 45, 120
replace_int = A0FC14, 60, 240
# Actual values used for power menu, range 1-255 minutes
replace_int = A0FCC8, 5, 10
replace_int = A0FD0C, 10, 20
replace_int = A0FD4E, 15, 30
replace_int = A0FD8E, 30, 60
replace_int = A0FDCE, 45, 120
replace_int = A0FE0C, 60, 240
</Patch>




Some publishers create their books in a way that prevents the line spacing set by the adjustment slider from taking effect. This patch forces the slider line spacing to be used in some of these books (but it might also override some line spacing that it shouldn't in other books).

Force user line spacing in KePubs (libnickel.so.1.0.0.patch)
Spoiler:
Code:
<Patch>
patch_name = `Force user line spacing in KePubs`
patch_enable = `yes`
# body, p { line-height: ...}  -->  div , p { line-height: ... }
#replace_string = D4051C, `b\x00o\x00d\x00y`, `d\x00i\x00v\x00\x20`
# body, p { line-height: ...}  -->  body,div,p{line-height:... }
replace_string = D4051C, `b\x00o\x00d\x00y\x00,\x00 \x00p\x00 \x00{\x00 \x00l\x00i\x00n\x00e\x00-\x00h\x00e\x00i\x00g\x00h\x00t\x00:\x00 \x00%`, `b\x00o\x00d\x00y\x00,\x00d\x00i\x00v\x00,\x00p\x00{\x00l\x00i\x00n\x00e\x00-\x00h\x00e\x00i\x00g\x00h\x00t\x00:\x00%`
</Patch>




kpg_conf_3110.zip attached contains all the patches from post #1 for use with kpg.exe. Some of the patches are for files other than libnickel.so.1.0.0 and these have been commented out.
Attached Files
File Type: zip kpg_conf_3110.zip (5.5 KB, 616 views)

Last edited by GeoffR; 11-27-2014 at 11:34 PM. Reason: Added `Custom Sleep/Power-off time menu options` and `Force user line spacing in KePubs` patches
GeoffR is offline   Reply With Quote