04-07-2024, 07:25 AM | #16 |
Zealot
Posts: 124
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
|
04-07-2024, 08:38 AM | #17 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
Advert | |
|
04-07-2024, 09:21 AM | #18 |
Zealot
Posts: 124
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
|
04-07-2024, 11:36 AM | #19 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
04-07-2024, 01:07 PM | #20 |
Member
Posts: 21
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
|
Awesome! Thank you so much!
|
Advert | |
|
04-07-2024, 02:52 PM | #21 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
04-07-2024, 04:06 PM | #22 |
Zealot
Posts: 124
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
I'm sorry, forgot to inform you that If I enable the Custom synopsis details line spacing, I can't manage to increase the font on the Custom synopsis font size to 41 px (Clara 2E)
Code:
Custom synopsis font size: - Enabled: yes - Description: Increase synopsis font size - FindZlib: "body[qApp_deviceIsTrilogy=true] {\n font-size: 19px;" # BookDetails.qss - ReplaceZlibGroup: Replacements: - {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: 41px;"} # GloHD/ClaraHD/Clara2E (Alyssum/Nova) (default: 35px) - {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) Last edited by hatuluang; 04-07-2024 at 04:12 PM. |
04-07-2024, 04:14 PM | #23 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
04-07-2024, 04:22 PM | #24 | |
Zealot
Posts: 124
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
Quote:
Code:
| Patch("Custom synopsis details line spacing - Jp") enabled=true | ResetBaseAddress() | applying | looping over instructions | kobopatch.FindZlib index=3 line=18 | FindZlib("body[qApp_deviceIsTrilogy=true] {\n line-height: 1.45em;") | hex:626f64795b714170705f64657669636549735472696c6f67793d747275655d207b0a20206c696e652d6865696768743a20312e3435656d3b | kobopatch.ReplaceZlibGroup index=4 line=20 | ReplaceZlibGroup(0, []struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"body {\n font-family: Georgia;\n margin: 0px;\n padding: 0px;\n}", Replace:"body {font-family:Georgia; margin:0; padding:0;}\np {margin:0 0 0 0; text-indent:0.5em;}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"body[qApp_deviceIsTrilogy=true] {\n line-height: 1.45em;\n}\n", Replace:"\n"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"body[qApp_deviceIsPhoenix=true] {\n line-height: 1.4em;\n}\n", Replace:"\n"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"line-height: 1.35em;", Replace:"line-height: 1.3em;"}}) | Patch("Custom synopsis font size - Jp") enabled=true | ResetBaseAddress() | applying | looping over instructions | kobopatch.FindZlib index=3 line=37 | FindZlib("body[qApp_deviceIsTrilogy=true] {\n font-size: 19px;") | hex:626f64795b714170705f64657669636549735472696c6f67793d747275655d207b0a2020666f6e742d73697a653a20313970783b | kobopatch.ReplaceZlibGroup index=4 line=39 | ReplaceZlibGroup(0, []struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"font-size: 19px;", Replace:"font-size: 20px;"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"font-size: 23px;", Replace:"font-size: 25px;"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"font-size: 29px;", Replace:"font-size: 32px;"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"font-size: 32px;", Replace:"font-size: 41px;"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"font-size: 34px;", Replace:"font-size: 37px;"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"font-size: 37px;", Replace:"font-size: 40px;"}}) | could not apply patch "Custom synopsis font size - Jp": line 39: inst 4: ReplaceZlib: new compressed data is 1 bytes longer than old data (try removing whitespace or unnecessary css) --> could not apply patch "Custom synopsis font size - Jp": line 39: inst 4: ReplaceZlib: new compressed data is 1 bytes longer than old data (try removing whitespace or unnecessary css) |
|
04-07-2024, 05:05 PM | #25 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Yes, I suspected that this could possibly happen. It didn't on my testing but if it did on yours then we need to find something a little more robust.
The basic problem is that the 2 patches:
If you understood all that, well done! If not, never mind The solution is to combine both patches into one. IMO this is what should have been done in the first place, but here we are many years later... Leave this with me for a while. I think I can create a more robust patch which combines the 2 together. I'd like to test it myself before posting so check back here later. |
04-07-2024, 05:10 PM | #26 | |
Zealot
Posts: 124
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
Quote:
|
|
04-07-2024, 06:21 PM | #27 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@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:
|
04-07-2024, 07:45 PM | #28 |
Wizard
Posts: 1,559
Karma: 11250582
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
My bad. The OP was talking about extra space showing up, and I didn't realize he was objecting to having the normal one line space between paragraphs.
|
04-07-2024, 11:50 PM | #29 | |
Zealot
Posts: 124
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
Quote:
Thank you very much, the patch works very well. My setup: line-height: 1.25em; margin: 0.5em 0 0 0; text-indent: 1em; and font-size: 41px Last edited by hatuluang; 04-08-2024 at 01:39 AM. |
|
04-08-2024, 10:56 AM | #30 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
If not, and you use calibre to transfer your books, this could easily be fixed with a calibre Metadata plugboard. I've attached a screenshot of what my Book Details synopsis looks like when using both patch Custom synopsis details all-in-one (no text-indent used in mine) and a Metadata plugboard for calibre comments. If you want to pursue the plugboard option let me know. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I paste description (comments) without the html formatting? | webipsum | Calibre | 5 | 07-15-2014 07:38 PM |
Touch Kobo Touch book description | trekker25 | Kobo Reader | 6 | 04-02-2012 03:09 PM |
[KOBO] Strip existing formatting to apply my own default formatting to all books | digital_steve | Calibre | 2 | 08-10-2010 06:34 PM |
Retaining formatting in metadata (book description) | FizzyWater | Calibre | 5 | 05-13-2010 10:26 PM |