View Single Post
Old 02-18-2017, 12:45 PM   #39
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
`Custom synopsis/details line spacing`

This patch changes the line spacing used in the synopsis/details library view.

The default line spacing for Glo/Aura devices is very narrow for some reason, and this causes the same sort of problems seen in the KePub reader when very narrow line spacings are used, i.e. page breaking part way through a line.

Thanks jackie_w for the tip!

`Custom synopsis/details line spacing` (paste into nickel.patch)
Spoiler:
Code:
<Patch>
patch_name = `Custom synopsis/details line spacing`
patch_enable = `yes`
# Multi-version patch: 4.2.8432+
#
## Sets the line spacing for the book's synopsis and details library view.
## Fixes a problem on the Glo/Aura caused by the narrow line spacing used for
## those models.
#
# If you change the line spacing below, make sure not to change the total
# length of the replacement strings.
#
# Touch (Trilogy)
find_base_address = `Trilogy="true"] {\n  line-height: 1.25em;\n`
replace_string = 0014, `line-height: 1.25em;`, `line-height: 1.25em;`
# Glo/Aura (Phoenix)
find_base_address = `Phoenix="true"] {\n  line-height: 1em;\n`
replace_string = 0012, `  line-height: 1em;`, `line-height: 1.3em;`
# Others
find_base_address = `body {\n  line-height: 1.5em;\n`
replace_string = 0009, `line-height: 1.5em;`, `line-height: 1.3em;`
</Patch>

Last edited by GeoffR; 02-18-2017 at 01:32 PM. Reason: Changed patch to use more robust find_base_address strings.
GeoffR is offline   Reply With Quote