View Single Post
Old 06-02-2014, 10:35 AM   #150
scoky
Connoisseur
scoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy blue
 
Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
Quote:
Originally Posted by GeoffR View Post
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?
So in normal reading mode, can the top and bottom margin of kepubs be changed?
In full screen mode, .kepub.epub has some bugs like font cut-off.
scoky is offline   Reply With Quote