07-01-2023, 05:41 PM | #31 |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
07-01-2023, 06:19 PM | #32 |
Wizard
Posts: 1,438
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
Here's an example of three consecutive pages. Pages 1 and 3 have 20 lines of text, but page 2 has only 19 lines. Perhaps the problem is that if there is more than one new paragraph on the same page, it takes up enough extra space that line 20 won't fit. The last line on page 1 is 12 pixels closer to the edge than on page 3, which is all one paragraph.
|
07-01-2023, 06:24 PM | #33 | |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
07-01-2023, 06:46 PM | #34 |
Wizard
Posts: 1,438
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
What CSS nonsense is the cause of this particular behaviour?
|
07-01-2023, 06:49 PM | #35 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
07-01-2023, 06:59 PM | #36 | |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I get rid of paragraph spaces. Here is the code I use for <p>. I also get rid of <p class="someclassIdonotneed"> for the majority of paragraph styles. But if you do have something such as <p class="tx"> here is c.tx that doesn't have paragraph space. Code:
p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; .tx { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } Last edited by JSWolf; 07-01-2023 at 07:10 PM. |
|
07-02-2023, 09:13 AM | #37 |
Enthusiast
Posts: 45
Karma: 1088351
Join Date: Dec 2021
Device: Kobo Libra 2
|
Yeah, in my experience, 8 out of 10 sideloaded books have these ugly spaces. For years now I have been using this code when converting to kepub with Kepubify! An absolute must.
|
07-02-2023, 10:54 AM | #38 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
07-02-2023, 06:20 PM | #39 |
Wizard
Posts: 1,438
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
Is this something that you can override in KOReader? If I could configure such settings to automatically apply to all of my books, instead of having to manually edit them one by one, it might be enough for me to switch over from Nickel.
|
07-03-2023, 07:59 AM | #40 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
No idea. I edit the CSS. It's very easy to dump paragraph spaces.
|
Tags |
kobopatch, patch, patch32lsb, patches, patching |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.18.0 | GeoffR | Kobo Developer's Corner | 151 | 10-21-2016 07:15 AM |
Instructions for patching firmware 3.13.1 | GeoffR | Kobo Developer's Corner | 56 | 07-01-2016 10:59 AM |
Instructions for patching firmware 3.15.0 | GeoffR | Kobo Developer's Corner | 146 | 05-24-2016 07:10 AM |
Instructions for patching firmware 3.12.1 | GeoffR | Kobo Developer's Corner | 56 | 03-20-2015 06:14 AM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 08:28 AM |