Thread: Kobo Patcher
View Single Post
Old 08-15-2013, 10:43 AM   #2
treadlightly
Wizard
treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.
 
treadlightly's Avatar
 
Posts: 1,370
Karma: 6957792
Join Date: Nov 2010
Location: Ottawa, ON
Device: Kobo H2O
Thanks for this thread, PeterT!

I found the footer configuration in kpg.conf a little hard to read. I have coloured the values to change depending on your device. They are in the long line that starts with "replace_zlib = 1205FF4, `ReadingFooter..."

Glo or new device code-named "phoenix"
Aura
Touch or Mini

Code:
# Kobo Patch Generator config file
# firmware ver. 2.8.1
# (c) 2013 MZ
#

<Patch>
patch_name = `Disable reading footer style`
patch_enable = `no`
replace_bytes = 9B9444, 0E F7 22 E4, 00 46 00 46
</Patch>

<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
# Example for Aura HD (deviceCodeName="dragon")
replace_zlib = 1205FF4, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 110;\n}\n\nReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 110;\n}\n\nReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 5px;\n\tmax-height: 5px;\n\tqproperty-footerMargin: 0;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`
</Patch>

<Patch>
patch_name = `My line spacing values`
patch_enable = `yes`
# Internal checks bypass
replace_float = 6857E0, 1.225, 0.1
replace_float = 685820, 1.225, 0.1
# Values for replace
replace_float = 1201A58, 1.3,   0.8
replace_float = 1201A60, 1.35,  0.85
replace_float = 1201A68, 1.4,   0.9
replace_float = 1201A70, 1.6,   0.95
replace_float = 1201A78, 1.775, 1.0
replace_float = 1201A80, 1.9,   1.05
replace_float = 1201A88, 2.0,   1.1
replace_float = 1201A90, 2.2,   1.15
replace_float = 1201A98, 3.0,   1.2
</Patch>

<Patch>
patch_name = `Wi-Fi insomnia`
patch_enable = `yes`
replace_bytes = 704678, 11 B9, 00 46
</Patch>

<Patch>
patch_name = `Freedom to advanced fonts control`
patch_enable = `yes`
replace_bytes = 892894, 2C F4 52 EE, 3C F4 4C E9
replace_bytes = 982714, 70 F7 E0 E3, 00 46 00 46
replace_bytes = 984166, 6E F7 B8 E6, 00 46 00 46
</Patch>

<Patch>
patch_name = `Custom fonts sizes`
patch_enable = `yes`
# Values for replace
replace_int = F773F8, 12, 15
replace_int = F773FC, 14, 16
replace_int = F77400, 16, 17
replace_int = F77404, 17, 18
replace_int = F77408, 18, 19
replace_int = F7740C, 19, 20
replace_int = F77410, 20, 21
replace_int = F77414, 21, 22
replace_int = F77418, 22, 23
replace_int = F7741C, 24, 24
replace_int = F77420, 25, 25
replace_int = F77424, 26, 26
replace_int = F77428, 28, 27
replace_int = F7742C, 32, 28
replace_int = F77430, 36, 29
replace_int = F77434, 40, 30
replace_int = F77438, 44, 31
replace_int = F7743C, 46, 32
replace_int = F77440, 48, 33
replace_int = F77444, 50, 34
replace_int = F77448, 52, 35
replace_int = F7744C, 54, 36
replace_int = F77450, 56, 37
replace_int = F77454, 58, 38
</Patch>

<Patch>
patch_name = `Custom left & right margins`
patch_enable = `yes`
# Values for replace
replace_int = 1201AA4, 02, 01
replace_int = 1201AA8, 04, 02
replace_int = 1201AAC, 06, 03
replace_int = 1201AB0, 08, 04
replace_int = 1201AB4, 10, 05
replace_int = 1201AB8, 12, 06
replace_int = 1201ABC, 14, 07
replace_int = 1201AC0, 16, 08
</Patch>

Last edited by treadlightly; 08-17-2013 at 12:55 PM.
treadlightly is offline   Reply With Quote