|
|
#1 |
|
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
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 10:55 AM. |
|
|
|
|
|
#2 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,029
Karma: 150250725
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: 14,101
Karma: 243831037
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: 603
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
|
|
|
|
|
|
|
#5 | |
|
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
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 12:44 PM. |
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,101
Karma: 243831037
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
|
|
|
|
|
#7 | |
|
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
|
|
|
|
|
|
|
#8 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,101
Karma: 243831037
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: 81,029
Karma: 150250725
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: 14,101
Karma: 243831037
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
|
|
|
|
|
#11 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,029
Karma: 150250725
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: 603
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
|
|
|
|
|
|
#13 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,029
Karma: 150250725
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,049
Karma: 2006208
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: 81,029
Karma: 150250725
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 11:22 AM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Widows and Orphans | jhowell | Kindle Formats | 89 | 08-26-2021 11:38 PM |
| Widows and Orphans | jonathanc | Amazon Kindle | 13 | 05-23-2020 03:32 AM |
| Widows and Orphans | Waylander | Kobo Reader | 31 | 05-18-2020 07:54 AM |
| Widows and Orphans | Calenorn | Kobo Reader | 3 | 10-21-2019 11:52 AM |
| Widows and Orphans | danrodney | ePub | 10 | 12-08-2010 03:08 PM |