View Single Post
Old 03-20-2014, 10:54 PM   #36
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
Patch to fix tiny synopsis on Glo/Aura/AuraHD

Here are patches to fix the issue with the tiny synopsis text in 3.2.0. I think this issue only affects the Glo/Aura/AuraHD.

What seems to be happening is that the synopsis has a default stylesheet suitable for the Touch/Mini, and there are overrides for the Glo/Aura/AuraHD. However the overrides don't seem to work, so all models are getting the Touch/Mini stylesheet which has a font size far too small for the higher DPI devices. The patch works by making the Glo/Aura/AuraHD override the default synopsis stylesheet.

Patch for Glo/Aura:
Spoiler:
Code:
<Patch>
patch_name = `Custom synopsis style (Glo/Aura example)`
patch_enable = `yes`
replace_string = 11B60AC, `<html><style type="text/css">* {font-size: 20px; font-family: sans-serif; font-style: normal; margin: 0px; padding: 0px; line-height: 1.25em;} span.phoenix {font-size: 23px; font-family: "Georgia serif";} span.dragon {font-size: 29px; font-family: "Georgia serif"; line-height: 1.5em;} span.ja_JP {font-family: "A-OTF Gothic MB101 Pr6N"; !important} </style><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body><span class="%1 %2">%3</span><br/></body></html>`, `<html><style type="text/css">* {font-size: 23px; font-family: "Georgia serif"; font-style: normal; margin: 0px; padding: 0px; line-height: 1.25em;} span.ja_JP {font-family: "A-OTF Gothic MB101 Pr6N"; !important} </style><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body><span class="%1 %2">%3</span><br/></body></html>`
</Patch>


Patch for AuraHD:
Spoiler:
Code:
<Patch>
patch_name = `Custom synopsis style (AuraHD example)`
patch_enable = `yes`
replace_string = 11B60AC, `<html><style type="text/css">* {font-size: 20px; font-family: sans-serif; font-style: normal; margin: 0px; padding: 0px; line-height: 1.25em;} span.phoenix {font-size: 23px; font-family: "Georgia serif";} span.dragon {font-size: 29px; font-family: "Georgia serif"; line-height: 1.5em;} span.ja_JP {font-family: "A-OTF Gothic MB101 Pr6N"; !important} </style><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body><span class="%1 %2">%3</span><br/></body></html>`, `<html><style type="text/css">* {font-size: 29px; font-family: "Georgia serif"; font-style: normal; margin: 0px; padding: 0px; line-height: 1.5em;} span.ja_JP {font-family: "A-OTF Gothic MB101 Pr6N"; !important} </style><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body><span class="%1 %2">%3</span><br/></body></html>`
</Patch>


I've only briefly tested this on my Glo, so let me know if there are any problems.

Edit: The patches I originally posted were not accepted by kpg.exe, for some reason kpg.exe doesn't like the final \n at the end of the original string, even though it is there in libnickel.so.1.0.0.

Edit2: kpg.exe replace_string method doesn't accept \n, \t, etc. in either original or replacement string. Fixed.

Last edited by GeoffR; 03-21-2014 at 09:42 PM. Reason: change patch to work with kpg.exe
GeoffR is offline   Reply With Quote