![]() |
#1 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Libra 2 ignoring widows/orphans
My nice new Libra 2 displays pages of quite widely varying length on any book I read. I have put "widows:1; orphans:1;" in the CSS for <body> in one of the books to see if this fixes it, but it doesn't. All my books are EPUBs.
The device seems to be using 3 as the value for both -- a 4-line para gets shifted in its entirety onto the next page, for example. The effect is quite jarring; I always feel like I'm at the end of a chapter when I read one of the short pages (21 lines rather than the normal 24 at the font size I'm using) and then I turn the page to discover that there's more... Is there anything else I can do to stop this happening? Last edited by Phssthpok; 02-27-2023 at 09:55 AM. |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
There is an option in Kobo eReader.conf (.kobo/kobo) on a Kobo that will ignore widows/orphans with epubs. This can be overridden in the CSS. But if you remove all widows and orphans from CSS or set them to 1, this should work.
Code:
[Reading] readingAdobeOrphans=1 readingAdobeWidows=1 |
![]() |
![]() |
![]() |
#4 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
![]() Incidentally, is there any documentation anywhere for all these mysterious config options? I'm intrigued as to what other possible values there might be in settings like e.g. "LastLibraryViewType_author=viewBy5List()". The widows/orphans options are not listed in https://wiki.mobileread.com/wiki/Kob...ration_Options, for example Last edited by Phssthpok; 02-27-2023 at 11:44 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
I think there's also a patch for it, but I've never used it. I do use a heap of other patches, though. They've improved the reading experience a lot for me. Take a look at them. You can do many things with patching. https://www.mobileread.com/forums/sh...d.php?t=350805 |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#12 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#14 | |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
![]() I had recently the same issue, but solved it in the CSS itself, so it also works on other devices: Code:
body { font-family: serif; margin: 0 1%; orphans: 1; widows: 1; } p, div { font-size: 1em; text-align: justify; orphans: 1; widows: 1; } |
|
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You don't need widows and orphans any other place in the CSS but body. Also, you don't need a font size of 1em. 1em is the default font size. And you don't need justify except in body. And don't use % for a margin as it changes based on the screen/window size.
Last edited by JSWolf; 02-28-2023 at 10:22 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Widows and Orphans | jhowell | Kindle Formats | 89 | 08-26-2021 10:38 PM |
Widows and Orphans | jonathanc | Amazon Kindle | 13 | 05-23-2020 02:32 AM |
Widows and Orphans | Waylander | Kobo Reader | 31 | 05-18-2020 06:54 AM |
Widows and Orphans | Calenorn | Kobo Reader | 3 | 10-21-2019 10:52 AM |
Widows and Orphans | danrodney | ePub | 10 | 12-08-2010 02:08 PM |