![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
![]()
I know it is something to do with widows & orphans but what CSS entry will fix having a paragraph that ends with just a couple of words on the next e-reader "page".
I know that some books don't do this - they have css that prevents it - sometimes over aggressively, but I've never quite got the difference between widows & orphans - do I need to add code for both & what specific code should I add ? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I believe that most readers and books have a widows/orphans setting of 2. In that case if a paragraph will spill over to the next page, there must be a minimum of two lines on this and the next page. If not, the paragraph will be lifted to the next page. That is how I believe it works.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
yes, I that is what I also thought.
I think I am seeing a side effect of dabbling with this added code: body {adobe-text-layout: optimizeSpeed;} which I am using to prevent hyphenation in the ADE 2 engine - as used by Sony T3. I have started a thread on sony forum., after reading how the above works for Nook readers & it seems to work for Sony T3 also & you can see via ADE v2 on PC, that it prevents end of line hyphenations. I suspect that adding that line turns off the widows & orphans processing in the ADE2 engine, but maybe I can turn it back on with some more explicit CSS it is not a showstopper, but it made me realise that I never really mastered this area of CSS. ( I have seen , in individual book's CSS, things like widows: 2; orphans : 2; - but never grasped the difference between those 2 commands ) so perhaps I can/should add extra CSS whenever I tweak a book in Sigil ? |
![]() |
![]() |
![]() |
#4 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
I'm sure that someone will correct me if I'm wrong, but I believe that widow and orphan control is a feature of the rendering engine, not the book.
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Hmm- google says not:
http://www.robertdesprez.com/2013/05...-an-epub-file/ that article claims that cascading CSS will control how ADE behaves & hence how a sony reader would behave. I suppose to test it properly I'd need to make a test book, just over a page long & then play with CSS value I just opened lots of my already-read books in search of an actual example in a retail epub, but without finding one that had any explicit CSS, so maybe I've seen it only in books that were actually word or PDF conversions. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
widows:2; orphans:2; which could be set in the p entry or even in the body entry. Set to 1 to turn off. Some implementations do not like 0 so don't use it. Dale |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#8 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
i wonder if adobe has dropped those defaults in later ade /sony readers, or if there is another rule to consider
I have 2 cases where a chapter ends with just 2 words on the last e-reader page. the widows & orphans rules should have moved the whole final paragraph to a new page and prevented that? , but maybe it also depends on the length of that final paragraph ? |
![]() |
![]() |
![]() |
#10 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
It would move just one line, unless the paragraph is only 3 lines long (then there is no way to have more than one line both before and after the pagebreak).
The value 2 is not simply the default in ÄDE, but the default in CSS3. It could be that ADE is doing thing differently, and it has its own bugs related to pagebreaks. |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Thanks,
so if default values of 2 were working, I should be seeing 1 1/2 lines of text on the last chapter page, not just 1/2 line. I think I was seeing that with my old sony prs-650 because I recall looking up why some pages seemed a little shorter than others, but with the latest readers I suspect they have opted instead for squared off pages. What I find frustrating is the lack of documentation from both Adobe & Sony - thus lots of trial & error seems needed to figure out what internal defaults are in use. I'll have to explicitly add the widows: 2 etc to p styles in a test book & then play spot the difference, if any. PS I tried opening the same book in PC ADE v2, then messing with font & window size to try & force it to display an odd 1/2 line at chapter end - I could not make it happen with the PC software, not in the 5 minutes I spent trying anyway. Last edited by cybmole; 01-14-2014 at 04:40 AM. |
![]() |
![]() |
![]() |
#12 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
You bring up a hilarious possibility where a paragraph is a page long plus one word, so the paragraph keeps getting booted forward infinitely, so the book never ends nor does the paragraph ever get displayed.
|
![]() |
![]() |
![]() |
#13 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,061
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I have had a couple of cases show up where the chapter end got sliced n' diced on the screen for no glaringly obvious reason
(last 3 screens of a chapter) almost end of main body 2 lines last 2 lines I have not done a in depth debug to locate the trigger event. I run the Older MRSDK (no more Astak updates, am running the Jinke V5 FW) |
![]() |
![]() |
![]() |
#14 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,061
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:
Sigh! I am in the crowd that does not 'build my own', so there will be no updates to RMSDK (It may be moot, The proprietary battery is showing signs of EOL sometime in the year) |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre 32-bit and 64-bit Installed; Uninstall 32-bit? | J-Mac | Calibre | 6 | 06-29-2013 06:40 AM |
PRS-600 Page turn | John F | Sony Reader | 6 | 09-03-2010 08:13 AM |
Should ebooks specify exact paragraph and page formatting? | sourcejedi | General Discussions | 27 | 07-01-2010 06:08 PM |
PRS-300 5 Second to turn Page! | Elton Noway | Sony Reader | 7 | 06-05-2010 05:38 PM |
Prevent Calibre to paragraph each line | armkbdotcom | Calibre | 3 | 05-29-2010 03:15 PM |