Thread: Kobo Patcher
View Single Post
Old 10-23-2013, 05:50 AM   #290
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
This is my config file for my kobo aura hd and working perfect, but.... it would be great if all books would have 0.5em or 5 pts margins on left and right side.
Is it possible that someone will point me in the right direction ?
Code:
# Kobo Patch Generator config file
# firmware ver. 2.8.1
# (c) 2013 MZ
#

<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
# Disable footer example
#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}`, `* {\n\theight: 5px;\n\tfont-size: 1px;\n\tcolor: transparent;\n}\n\n`
# Decrease footer example
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: 40px;\n\tmax-height: 40px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 70px;\n\tmax-height: 70px;\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: 31px;\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 = `no`
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>

<Patch>
patch_name = `Remove system fonts in Reader list`
patch_enable = `no`
replace_bytes = 96A94E, 60 F7 7E E7, 00 46 00 46
</Patch>

<Patch>
patch_name = `Brightness fine control`
patch_enable = `yes`
replace_int = 82DFCC, 10, 01
replace_int = 82DFFC, 10, 01
</Patch>

<Patch>
patch_name = `Cyrillic keyboard`
patch_enable = `no`
# Enable uppercase for [ß] key
replace_bytes = 7FBCA2, 00 24, 01 24
# Replace layout sign
#replace_bytes = F63FD0, C3 89 C3 80 C3 87, D0 90 D0 91 D0 92
replace_string = F63FD0, `ÉÀÇ`, `абв`
# Change keyboard layout
replace_utf8chars = F645D4, `æ`, `й`
replace_utf8chars = F64464, `àèìòùáéíóú`, `цукенгшщзх`
replace_utf8chars = F645F8, `ý`, `ъ`
replace_utf8chars = F645D8, `œ`, `ф`
replace_utf8chars = F644B0, `âêîôû`, `ывапр`
replace_utf8chars = F6448C, `äëïöüÿ`, `олджэё`
replace_utf8chars = F644C4, `ã`, `я`
replace_utf8chars = F644A8, `ñõ`, `чс`
replace_utf8chars = F645FC, `å`, `м`
replace_utf8chars = F64434, `ß`, `и`
replace_utf8chars = F644A4, `ç`, `т`
replace_utf8chars = F64600, `đøij`, `ьбю`
replace_utf8chars = F645E8, `ł`, `.`
</Patch>

<Patch>
patch_name = `Allow download all in Browser`
patch_enable = `yes`
replace_bytes = 93F4F4, B1 F7 EC E0, 01 20 01 20
</Patch>

<Patch>
patch_name = `Fix page breaks bug`
patch_enable = `yes`
replace_bytes = C13B6E, E8 D0, E8 E7
#Alternative method
#replace_bytes = C13B6E, E8 D0, 00 46
</Patch>

<Patch>
patch_name = `Margins fine tuning`
patch_enable = `no`
# Initial replaces
replace_bytes = 848E86, 19 46, 00 21
replace_bytes = 848E88, 1A 46, 00 22
# Values for replace
# Left margin
replace_int = 848E86, 0, 10
# Top margin
replace_int = 848E88, 0, 10
</Patch>
When I use the patch Margins fine tuning it works, but then the txt is so much to the right that I must adjust it still,but there is no right margin to be set with a patch.
Click image for larger version

Name:	screen_actual.png
Views:	324
Size:	184.9 KB
ID:	113864

Last edited by Nick_1964; 10-23-2013 at 06:06 AM.
Nick_1964 is offline   Reply With Quote