View Single Post
Old 08-28-2014, 04:01 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:

The following patches are no longer needed because of fixes in the firmware:
- Disable pinch-to-zoom font resizing
- Synopsis font size fix

There are now three seperate `Custom header style` patches for Touch, Mini, and other devices. With only a Glo to test on, the other patches are a bit of a guess. Let me know if they don't work. (Note that the size of the header can't be changed, only the style of the font used for the header text.)


Other patches:

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

ePub fixed top margin: (libnickel.so.1.0.0)
Spoiler:
Code:
<Patch>
patch_name = `ePub fixed top margin`
patch_enable = `no`
#
# If enabled, this patch sets the top page margin for ePubs to a fixed value
# by adding a line like @page{margin:10px 0 0 0} to the built-in stylesheet.
# Note that it has the side-effect of overriding any existing @page margins
# set in the book's stylesheet and removing the pre-existing padding-bottom
# from the built-in stylesheet's body rule.
#
# Modify stylesheet, set top margin: @page {margin:10px 0 0 0}
replace_string = BBF850, `\x20\x00p\x00a\x00d\x00d\x00i\x00n\x00g\x00-\x00b\x00o\x00t\x00t\x00o\x00m\x00:\x00\x20\x00%\x001\x00e\x00m\x00\x20\x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `}\x00\n\x00@\x00p\x00a\x00g\x00e\x00\x20\x00{\x00m\x00a\x00r\x00g\x00i\x00n\x00:\x001\x000\x00p\x00x\x00\x20\x000\x00\x20\x000\x00\x20\x000\x00}\x00\n\x00b\x00o\x00d\x00y\x00\x20\x00{\x00`
#
# Replacement value: a 2-digit number (margin size in pixels) seperated by \x00
# E.g. 25 = 2\x005
replace_string = BBF870, `1\x000`, `2\x005`
</Patch>


Attached are the main patches from post #1 for use with kpg.exe.
Attached Files
File Type: zip kpg_conf_380.zip (4.9 KB, 688 views)

Last edited by GeoffR; 10-15-2014 at 02:17 PM. Reason: Added epub fixed top margin patch
GeoffR is offline   Reply With Quote