View Single Post
Old 05-31-2014, 10:24 PM   #140
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
Custom kepub reader default margins patch

This patch sets the kepub reader default margins, i.e. the margins that are used when the adjustment slider is at the far left position. I haven't tested every permutation, but it seems to affect the following margins:

- kepub minimum left/right margins in normal reading mode
- kepub minimum left/right and top/bottom margins in full-screen reading mode

The example values in the patch make the minimum kepub left/right margins similar to the default epub margins. If you set the patch values to zero and remove any margins from the book itself, then the text will go to the very edge (and in full-screen reading mode, to the very top/bottom) of the screen.

firmware 3.3.0:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Kraken/Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 6142F4, 25, 10
# Device = Kraken/Phoenix, Type = Japanese kepub
replace_int = 6142F6, 45, 25
# Device = Other, Type = Any
replace_int = 614304, 20, 10
</Patch>

firmware 3.3.1:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Kraken/Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 614D8C, 25, 10
# Device = Kraken/Phoenix, Type = Japanese kepub
replace_int = 614D8E, 45, 25
# Device = Other, Type = Any
replace_int = 614D9C, 20, 10
</Patch>

firmware 3.4.1:
Spoiler:
Code:
<Patch>
patch_name = `Customise kepub reader default margins`
patch_enable = `yes`
# Device = Phoenix, Type = pocket article or non-Japanese kepub
replace_int = 619DB6, 25, 10
# Device = Phoenix, Type = Japanese kepub
replace_int = 619DB8, 45, 25
# Device = Other, Type = Any
replace_int = 619DBC, 20, 10
</Patch>


Edit: I'd be interested to hear how this patch works on devices other than the Glo: In particular, does it make the Aura's font cut-off problem worse?

Last edited by GeoffR; 06-01-2014 at 05:26 AM. Reason: How does it work on Aura and other devices?
GeoffR is offline   Reply With Quote