Bibliophagist
Posts: 46,639
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Originally Posted by Waba
So I'm seeing this...
Code:
<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}`, `* {\n\theight: 30px;\n\tfont-size: 25px;\n}\n\n`
</Patch>
And I understand this code does nothing.  I just want code to turn off footer on Aura HD... I tried DNSB's but I must have [many] syntax errors because tgz does not compile.
Is there any working code I can paste into the conf?... I wish working code was in the conf, deleting a dozen justified # is easier than the /n/ process.
|
If you are looking at the stuff I've posted here, the lines have been unpacked by changing the \n pairs to new lines and the \t pairs to tabs. It makes it much easier for humans to read but is not suitable for being fed back into the patch generator.
The kpg.cfg file I'm using at this time without the human touch is:
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}`, `* {\n\theight: 25px;\n\tfont-size: 20px;\n}\n\n`
</Patch>
<Patch>
patch_name = `My line spacing values`
patch_enable = `yes`
# Internal checks bypassf
replace_float = 6857E0, 1.225, 0.1
replace_float = 685820, 1.225, 0.1
# Values for replace
replace_float = 1201A58, 1.3, 0.9
replace_float = 1201A60, 1.35, 0.95
replace_float = 1201A68, 1.4, 1.0
replace_float = 1201A70, 1.6, 1.05
replace_float = 1201A78, 1.775, 1.0
replace_float = 1201A80, 1.9, 1.10
replace_float = 1201A88, 2.0, 1.15
replace_float = 1201A90, 2.2, 1.20
replace_float = 1201A98, 3.0, 1.25
</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, 20
replace_int = F773FC, 14, 21
replace_int = F77400, 16, 22
replace_int = F77404, 17, 23
replace_int = F77408, 18, 24
replace_int = F7740C, 19, 25
replace_int = F77410, 20, 26
replace_int = F77414, 21, 27
replace_int = F77418, 22, 28
replace_int = F7741C, 24, 29
replace_int = F77420, 25, 30
replace_int = F77424, 26, 31
replace_int = F77428, 28, 32
replace_int = F7742C, 32, 33
replace_int = F77430, 36, 34
replace_int = F77434, 40, 35
replace_int = F77438, 44, 36
replace_int = F7743C, 46, 37
replace_int = F77440, 48, 38
replace_int = F77444, 50, 39
replace_int = F77448, 52, 40
replace_int = F7744C, 54, 41
replace_int = F77450, 56, 42
replace_int = F77454, 58, 43
</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>
I've modified the line spacing and font size values as well as the header/font size and disabled the Cyrillic keyboard and margin fine tuning.
Removing the # in front of the first "replace_zlib = 1205FF4," and placing it in front of the second "replace_zlib = 1205FF4," will disable the header (actually, shrink it to 5 pixels and make it transparent).
I've tested that here and it does work so not sure why it is not working on your end. Please remember to replace the libnickel.so.1.0.0 with a new unmodified copy each time.
Regards,
David
Last edited by DNSB; 09-24-2013 at 04:47 PM.
|