Quote:
Originally Posted by lkstrummer
Hey GeoffR. Thanks for your work on this.
Regarding 'Custom reading footer style', I'm flashing my H2O from 3.19.5761 to 4.3.8842. I previously used the following values to shrink the footer to my preferred height:
# Example replacement footer height values: AuraHD/H2O/GloHD
replace_string = 001A, `footerMargin: 105;`, `footerMargin: 170;`
replace_string = 002D, `min-height: 70px;`, `min-height: 36px;`
replace_string = 003F, `max-height: 70px;`, `max-height: 36px;`
However, 70px and 36px output an error in the latest patch. I've tried various other combinations and they all result in an error. Currently, I'm using the default values of
# Replacement footer height values: AuraHD/H2O/GloHD
replace_string = 0076, `min-height:80px`, `min-height:52px`
replace_string = 0086, `max-height:80px`, `max-height:52px`
The patch is nearly perfect except for the larger footer than I prefer. Geoff, or anyone else, are there smaller than default values that will output a usable patch?
|
I've not yet tried it, but here is my customized patch for the H2O.
Code:
<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
# Multi-version patch: 4.0.7523 - 4.3.8842+
# patch_group = `Reading footer alternatives`
#
## This patch customises the following properties of the reading footer:
##
## * Footer height (the amount of the screen reserved for the footer.)
## * Caption font size (Caption = page number or other progress indicator)
## * Caption top margin, which changes its vertical position within the footer.
## * Caption font family.
#
# When editing the replacement values below, BE CAREFUL NOT TO CHANGE THE LENGTH
# OF THE REPLACEMENT STRING! If a replacement string is too long you will get
# an error when making the patch, but if one is too short then there will be no
# error, but strange things will happen to the reading footer.
#
find_base_address = `ReadingFooter {\n qproperty-footerMargin: 105;\n}\n`
replace_string = 0000, `ReadingFooter {\n qproperty-footerMargin: 105;\n}\nReadingFooter[qApp_deviceIsDragon="true"] {\n qproperty-footerMargin: 170;\n}\nReadingFooter[qApp_deviceIsDaylight="true"] {\n qproperty-footerMargin: 221;\n}\n#caption {\n font-size: 16px;\n}\n#caption[qApp_deviceIsPhoenix="true"] {\n font-size: 20px;\n}\n#caption[qApp_deviceIsDragon="true"] {\n font-size: 26px;\n}\n#caption[qApp_deviceIsDaylight="true"] {\n font-size: 34px;\n}\n#caption[qApp_deviceIsAlyssum="true"] {\n font-size: 30px;\n}\n#caption[qApp_localeName="ja_JP"] {\n font-family: Sans-SerifJP, sans-serif;\n font-style: normal;\n}\n`, `ReadingFooter {qproperty-footerMargin:105;min-height:70px;max-height:70px}\nReadingFooter[qApp_deviceIsDragon="true"] {min-height:80px;max-height:80px}\nReadingFooter[qApp_deviceIsDaylight="true"] {min-height:90px;max-height:90px}\n#caption {font-size:16px;margin-top:+00px}\n#caption[qApp_deviceIsPhoenix="true"] {font-size:20px}\n#caption[qApp_deviceIsDragon="true"] {font-size:26px}\n#caption[qApp_deviceIsDaylight="true"] {font-size:34px}\n#caption[qApp_deviceIsAlyssum="true"] {font-size:30px}\n#caption[qApp_localeName="ja_JP"] {font-family:Sans-SerifJP,sans-serif;font-style:normal}\n`
#
# Replacement footer height values: Touch/Mini/Glo/Aura/Aura2E
replace_string = 002A, `min-height:70px`, `min-height:40px`
replace_string = 003A, `max-height:70px`, `max-height:40px`
# Replacement footer height values: AuraHD/H2O/GloHD
replace_string = 0076, `min-height:80px`, `min-height:26px`
replace_string = 0086, `max-height:80px`, `max-height:26px`
# Replacement footer height values: AuraOne
replace_string = 00C4, `min-height:90px`, `min-height:68px`
replace_string = 00D4, `max-height:90px`, `max-height:68px`
#
#
# Replacement caption font size value for Touch/Mini:
replace_string = 00EF, `font-size:16px`, `font-size:16px`
# Replacement caption font size value for Glo/Aura/Aura2E:
replace_string = 0137, `font-size:20px`, `font-size:20px`
# Replacement caption font size value for AuraHD/H2O:
replace_string = 016D, `font-size:26px`, `font-size:22px`
# Replacement caption font size value for GloHD:
replace_string = 01DC, `font-size:30px`, `font-size:30px`
# Replacement caption font size value for AuraOne:
replace_string = 01A5, `font-size:34px`, `font-size:34px`
#
#
# Optional Replacement caption top margin value for all devices:
# (A negative top margin moves the caption text upwards,
# further from the bezel and closer to the page content.)
#
#replace_string = 00FE, `margin-top:+00px`, `margin-top:-10px`
replace_string = 00FE, `margin-top:+00px`, `margin-top:-05px`
#
#
# Uncomment the replace_string line below to use a fixed replacement caption
# font family, for all devices: You can change Georgia to another font name of
# your choice, but Avenir or Georgia are recommended because other fonts might
# not be loaded when the book is first opened and so might cause problems.
# Unlike other strings it is OK if this replacement string is a bit longer or
# shorter than the original.
#
#replace_string = 01EC, `#caption[qApp_localeName="ja_JP"] {font-family:Sans-SerifJP,sans-serif;font-style:normal}\n`, `#caption {font-family:Georgia}\n\0`
</Patch>