Hey, I'm hoping I can get some help here with trying to get this patch that @ jackie_w was kind enough to write for me. I just gave my Sage away to a friend and now have a Libra Colour. Is there anyway I can get the patch below to work on my ereader?
I've tried applying it a couple of times, but every time I try, my kobo seems to crash and then do a factory reset of sorts? I've tried fiddling around with it a bit, but I'm not familiar enough with it to try to debug it fully.
I've quoted slash copy/pasted the original post they posted below.
Quote:
Originally Posted by jackie_w
@hatuluang,
Try the attached new beta patch instead. Put it in nickel.yaml or wherever you keep all your other customised nickel.yaml patches.
You'll need to disable both the old patches:
Custom synopsis details line spacing
Custom synopsis font size
and enable this new one:
Custom synopsis details all-in-one
Spoiler:
Code:
Custom synopsis details all-in-one:
- Enabled: no
- Description: |
Customise synopsis body style in Book details,
including font-size, line-height
Add style(s) for p tags
- FindZlib: "body[qApp_deviceIsTrilogy=true] {\n line-height: 1.45em;" # qss/BookDetails.qss
- ReplaceZlibGroup:
Replacements:
# modify <body> style, customise line-height here
# Add style(s) for <p> tags
- Find: "body {\n font-family: Georgia;\n margin: 0px;\n padding: 0px;\n}"
Replace: "body {font-family:Georgia; margin:0; padding:0; line-height:1.3em;}\np {margin:0.5em 0 0 0; text-indent:1.5em;}"
# customise font-size by model
- {Find: "font-size: 19px;", Replace: "font-size:20px;"} # Touch/Mini (Trilogy)
- {Find: "font-size: 23px;", Replace: "font-size:25px;"} # Glo/Aura/Aura2E/Nia (Phoenix)
- {Find: "font-size: 29px;", Replace: "font-size:32px;"} # AuraHD/AuraH2O/AuraH2O2 (Dragon)
- {Find: "font-size: 32px;", Replace: "font-size:35px;"} # GloHD/ClaraHD/Clara2E (Alyssum/Nova)
- {Find: "font-size: 34px;", Replace: "font-size:37px;"} # LibraH2O/Libra2 (Storm)
- {Find: "font-size: 37px;", Replace: "font-size:40px;"} # AuraONE/Forma/Sage/Elipsa/Elipsa2E (Daylight)
# remove all per-model line-heights to create space for above code
# line-height customisation is now done in the 1st Find/Replace
### DO NOT CHANGE OR REMOVE THESE LINES ###
- {Find: "body[qApp_deviceIsTrilogy=true] {\n line-height: 1.45em;\n}\n", Replace: "\n"}
- {Find: "body[qApp_deviceIsPhoenix=true] {\n line-height: 1.4em;\n}\n", Replace: "\n"}
- {Find: "body[qApp_deviceIsDragon=true] {\n line-height: 1.35em;\n}\n", Replace: "\n"}
- {Find: "body[qApp_deviceIsStorm=true] {\n line-height: 1.35em;\n}\n", Replace: "\n"}
- {Find: "body[qApp_deviceIsDaylight=true] {\n line-height: 1.35em;\n}\n", Replace: "\n"}
# create even more space.
# If you set your Kobo to one of the following 4 Japanese/Chinese locales,
# then comment out the line corresponding to this locale
- {Find: "body[localeName=\"ja\"] {\n font-family: Sans-SerifJP, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- {Find: "body[localeName=\"zh\"] {\n font-family: Sans-SerifZH-Simplified, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- {Find: "body[localeName=\"zh-HK\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- {Find: "body[localeName=\"zh-TW\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- line-height is now customised in the 1st Find/Replace. This value is no longer model-specific.
- font-size is still model-specific and is customised in the relevant line in the second block of Find/Replaces.
- the rest of the patch code exists to clear enough space so that kobopatch.bat (or kobopatch.sh) doesn't fail. If you never set your Kobo to use any of the Japanese or Chinese locales then you don't need to change anything in this code.
|