03-28-2024, 06:07 AM | #1 |
Swepub
Posts: 23
Karma: 10
Join Date: Dec 2023
Device: iPad
|
Keep text together in EPUB
Hi
Is there a good metod of not getting single words or text rows getting of to next page in the EPUB? I have the source created in Indesign as a reflowable EPUB. As you see on the attached image example - a lonely word shows up from a sentence from the previous page. |
03-28-2024, 08:16 AM | #2 |
A Hairy Wizard
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
The answer is “not really”.
For ePub2 you can set widows and/or orphans in your css but not all devices honor it. And I’m pretty sure they are completely deprecated in ePub3??? Basically you can put your preferences via the css but you can’t guarantee they are followed… and you certainly can’t control what screen size/margins/font size etc. the user chooses… unless you wish to torture yourself by delving into the hellish landscape of fixed-format. *shudder* Last edited by Turtle91; 03-28-2024 at 08:18 AM. |
Advert | |
|
03-28-2024, 03:19 PM | #3 |
Bibliophagist
Posts: 40,573
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
03-28-2024, 05:34 PM | #4 |
Resident Curmudgeon
Posts: 76,459
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I cannot stand widows and orphans in an eBook. I'd rather have that lonely word on a single screen.
|
03-29-2024, 04:08 AM | #5 |
Swepub
Posts: 23
Karma: 10
Join Date: Dec 2023
Device: iPad
|
|
Advert | |
|
03-29-2024, 07:50 AM | #6 |
Resident Curmudgeon
Posts: 76,459
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It doesn't look better. That's the problem with it. It makes then end of the pages look off. You can do things with a pBook to adjust things so the page does not look off. But with an eBook you don't have any options. So the end of the page is uneven and annoying.
|
03-29-2024, 09:41 AM | #7 | |
the rook, bossing Never.
Posts: 12,368
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
A setting of 1 means do nothing! Hence 0 has no meaning. Using 3 or 4 can be better for keeping text together but at expense of larger blank space at the bottom of a page. |
|
03-29-2024, 09:42 AM | #8 |
A Hairy Wizard
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
If you have an app/device that uses scrolling, rather than paging, this isn't even an issue.
If you are using paging then, in most cases, no one would even notice the slightly shorter previous page, Jon is just special. In any case, do what you think is appropriate with widows and/or orphans...you can't control the final result anyway. |
03-29-2024, 09:44 AM | #9 | |
the rook, bossing Never.
Posts: 12,368
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
It depend on if you hate extra white space at the bottom of a page. |
|
03-29-2024, 09:47 AM | #10 | |
the rook, bossing Never.
Posts: 12,368
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
But Jon edits his books so can set widows and orphans at 1 and be happy. |
|
03-29-2024, 12:23 PM | #11 |
A Hairy Wizard
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
03-29-2024, 03:20 PM | #12 |
Fool
Posts: 424
Karma: 3585252
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
|
03-29-2024, 03:53 PM | #13 |
Resident Curmudgeon
Posts: 76,459
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've seen some eBooks with widows and orphans specifically set to 2 in CSS and some set to 1. I prefer them not to be set in the eBook just as no line-height and overall L/R margins set to 0.
|
03-29-2024, 05:28 PM | #14 |
the rook, bossing Never.
Posts: 12,368
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
03-29-2024, 05:34 PM | #15 | |
the rook, bossing Never.
Posts: 12,368
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Margins 0 is ignored by some ereaders (Amazon). Otherwise it does what you imagine. I don't know what default not setting it is likely. No line-height is not zero, but means use font metrics Not setting Windows and Orphans is often the same as setting it to 2, An explicit 1 means do nothing to layout. Some renderers don't use standard defaults, which is why some people set everything, but I agree that they should mostly not set line-height. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OCR'd PDF to EPUB/TXT/etc. not copying text over (text under image). | Tenome | Conversion | 1 | 10-24-2022 11:17 AM |
EPUB 3 multi column text reading order across pages for epub | laksathish | ePub | 13 | 11-13-2018 06:18 AM |
EPUB -> EPUB Conversion Results In BOLD Text | cromag | Conversion | 3 | 03-18-2017 01:38 AM |
Epub to Epub losing Justify text alignment | navyo | Conversion | 0 | 07-07-2016 07:33 AM |
Generate epub using text-recognized text in PDF not Pictures. | lordofazeroth | Conversion | 0 | 09-19-2013 05:16 PM |