Quote:
Originally Posted by LittleBiG
Help me please with the correct formatting of "Custom reading footer style".
To keep it simple, could someone send me a correctly commented-uncommenetd section of this patch for Aura? Thank you in advance.
|
Try the following.. it goes in libnickel.so.1.0.0.patch and replaces the patch that's there.
Code:
<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
# Multi-version patch: 3.19.5613 - 3.19.5761+
# 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\tqproperty-footerMargin: 105;\n}\n\n`
replace_string = 0000, `ReadingFooter {\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceIsDragon="true"] {\n\tqproperty-footerMargin: 170;\n}`, `ReadingFooter { qproperty-footerMargin: 105; min-height: 70px; max-height: 70px; }`
#
# Example replacement footer height values: Touch/Mini
#replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;`
#replace_string = 002D, `min-height: 70px;`, `min-height: 32px;`
#replace_string = 003F, `max-height: 70px;`, `max-height: 32px;`
# Example replacement footer height values: Glo/Aura
replace_string = 001A, `footerMargin: 105;`, `footerMargin: 100;`
replace_string = 002D, `min-height: 70px;`, `min-height: 26px;`
replace_string = 003F, `max-height: 70px;`, `max-height: 26px;`
# Example replacement footer height values: AuraHD/H2O/GloHD
#replace_string = 001A, `footerMargin: 105;`, `footerMargin: 100;`
#replace_string = 002D, `min-height: 70px;`, `min-height: 26px;`
#replace_string = 003F, `max-height: 70px;`, `max-height: 26px;`
#
#
find_base_address = `#caption {\n\tfont-size: 16px;`
Replace_string = 0000, `#caption {\n\tfont-size: 16px;\n}\n\n#caption[qApp_deviceIsPhoenix="true"] {\n\tfont-size: 20px;\n}\n\n#caption[qApp_deviceIsDragon="true"] {\n\tfont-size: 26px;\n}\n\n#caption[qApp_deviceIsAlyssum="true"] {\n\tfont-size: 30px;\n}\n\n#caption[qApp_localeName="ja_JP"] {\n\tfont-family: Sans-SerifJP;\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_deviceIsAlyssum="true"] {font-size: 30px;}\n#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`
#
# Replacement caption font size value for Touch/Mini:
replace_string = 000A, `font-size: 16px;`, `font-size: 16px;`
# Replacement caption font size value for Glo/Aura:
replace_string = 0054, `font-size: 20px;`, `font-size: 20px;`
# Replacement caption font size value for AuraHD/H2O:
replace_string = 008C, `font-size: 26px;`, `font-size: 20px;`
# Replacement caption font size value for GloHD:
replace_string = 00C5, `font-size: 30px;`, `font-size: 30px;`
#
# 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 = 001A, `margin-top: 00px;`, `margin-top:-08px;`
#
# Uncomment to use a fixed replacement caption font family, for all devices:
# (You can change Avenir to another font name of your choice, but Avenir or
# Georgia are recommended because other fonts may 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 = 00D7, `#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`, `#caption {font-family: Avenir;}
</Patch>