|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2022
Device: Kobo Clara HD
|
Read converted kepub files *without* overriding orphans/widows?
I've converted some .epub files to .kepub using kepubify, and learned enough add a little .css to the command line argument to adjust the font size to match the usual size that my Clara HD displays regular .epub files.
I'm doing the conversion for the better footnote handling, for books that have a lot of them... ...but one aspect that's niggling me is that using .kepub appears to hard-wire an orphans/widows value of 1 now, so I end up with a bunch of disjointed first/last lines, where I'd much rather it retained the regular default setting (which I understand is 2). All the info about it I've managed to find in searches is apparently celebrating the override - apparently most people prefer chopped up paragraphs to "wasted space". I'm definitely the opposite :-) I've tried adding "body {orphans: 2; widows: 2;}" to the css additions, even tried "body {orphans: 2 !important; widows: 2 !important;}" to attempt to force the issue, but both seem to be ignored. Is there any way to achieve this with .kepub files? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,716
Karma: 103837201
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Must be a mistake in kepub renderer design, because most renderers use 2 if the value isn't specified.
Note 1, not 0 is the regular epub css to do no widow/orphan processing. Think about what it does to the paragraphs vs page breaks. A value of 0 is meaningless. |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,160
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I do know that a value of 0 (while not technically correct), does work with RMSDK.
|
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It is incorrect. Wrong. BAD JuJu PERIOD. The correct answer is: 'Don't do that.' 1 says allow a single line. (I believe this is the default if not specified), so 0 may just being ignored, thus the default. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,160
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The default is 2 for both. So if 0 was being ignored, it would be at 2. That's how I know 0 does work. Maybe 0 means no widows and orphans.
|
![]() |
![]() |
![]() |
#7 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,878
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
And yes, I have seen some renderers where setting widows and orphans to 0 resulted in using the default though treating it as being the same as setting widows and orphans to 1 is the most common. Quote:
|
||
![]() |
![]() |
![]() |
#8 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,160
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,878
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I, personally, find it best to avoid those issues by not using or suggesting the use of 0 as a value for widows and orphans since 1 works on all the renderers I've tested that support widows and orphans. |
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2022
Device: Kobo Clara HD
|
Heh, yep, what this thread needed was definitely to be turned into the same endless argument as every other orphans/widows thread :-P
Might as well pile on I guess :-) Setting it to 0 is clearly unjustifiable in any context - all you're doing is setting an invalid number, and counting on each individual reader implementation to do its error-checking correctly. At best, you get an unpredictable result, at worst, you'd maybe cause a bad reader to crash. On further exploration of my original question - it appears that the kepub reader doesn't so much "ignore" the setting, as it appears to simply not have any orphan/widow processing implemented in the first place, so implicitly, it works as if the value was always set to 1. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |