![]() |
#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. |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,163
Karma: 18843349
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 07:18 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,150
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,769
Karma: 134321338
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.
|
![]() |
![]() |
![]() |
#5 |
Swepub
![]() Posts: 23
Karma: 10
Join Date: Dec 2023
Device: iPad
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,769
Karma: 134321338
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.
|
![]() |
![]() |
![]() |
#7 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,247
Karma: 89531599
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. |
|
![]() |
![]() |
![]() |
#8 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,163
Karma: 18843349
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. |
![]() |
![]() |
![]() |
#9 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,247
Karma: 89531599
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. |
|
![]() |
![]() |
![]() |
#10 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,247
Karma: 89531599
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. |
|
![]() |
![]() |
![]() |
#11 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,163
Karma: 18843349
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
|
|
![]() |
![]() |
![]() |
#12 |
Fool
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 407
Karma: 3557934
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,769
Karma: 134321338
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.
|
![]() |
![]() |
![]() |
#14 |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,247
Karma: 89531599
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
![]() |
![]() |
![]() |
#15 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,247
Karma: 89531599
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. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 10:17 AM |
EPUB 3 multi column text reading order across pages for epub | laksathish | ePub | 13 | 11-13-2018 05:18 AM |
EPUB -> EPUB Conversion Results In BOLD Text | cromag | Conversion | 3 | 03-18-2017 12:38 AM |
Epub to Epub losing Justify text alignment | navyo | Conversion | 0 | 07-07-2016 06:33 AM |
Generate epub using text-recognized text in PDF not Pictures. | lordofazeroth | Conversion | 0 | 09-19-2013 04:16 PM |