Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-13-2014, 04:47 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Question prevent a bit of paragraph spilling over page turn

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 ?
cybmole is offline   Reply With Quote
Old 01-13-2014, 06:07 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Advert
Old 01-13-2014, 06:39 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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 ?
cybmole is offline   Reply With Quote
Old 01-13-2014, 07:25 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
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.
HarryT is offline   Reply With Quote
Old 01-13-2014, 07:57 AM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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.
cybmole is offline   Reply With Quote
Advert
Old 01-13-2014, 11:26 AM   #6
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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:
Originally Posted by HarryT View Post
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.
Certainly the rendering engine must support this in the CSS but the CSS is where the change is made. By default Adobe has widows and orphans set to 2 which will support standard usage. To set it explicitly use the following:
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
DaleDe is offline   Reply With Quote
Old 01-13-2014, 11:28 AM   #7
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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:
Originally Posted by cybmole View Post
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.
the easy way to test this in windows is to just set it in CSS and then resize the window to see the effect. Adobe default is on (2).

Dale
DaleDe is offline   Reply With Quote
Old 01-13-2014, 11:40 AM   #8
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by DaleDe View Post
Certainly the rendering engine must support this in the CSS but the CSS is where the change is made. By default Adobe has widows and orphans set to 2 which will support standard usage. To set it explicitly use the following:
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
Thank you for the information - much appreciated.
HarryT is offline   Reply With Quote
Old 01-14-2014, 01:42 AM   #9
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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 ?
cybmole is offline   Reply With Quote
Old 01-14-2014, 03:07 AM   #10
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
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.
Jellby is offline   Reply With Quote
Old 01-14-2014, 04:06 AM   #11
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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.
cybmole is offline   Reply With Quote
Old 01-14-2014, 09:41 AM   #12
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by cybmole View Post
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 ?
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.
Notjohn is offline   Reply With Quote
Old 01-14-2014, 11:12 AM   #13
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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)
theducks is offline   Reply With Quote
Old 01-14-2014, 11:25 AM   #14
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by theducks View Post
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)
Older versions of the RMSDK (eg on the older Sonys) had a habit of breaking a long paragraph at an arbitrary point half way down the page. More recent versions seem not to do that any more.
HarryT is offline   Reply With Quote
Old 01-14-2014, 01:31 PM   #15
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by HarryT View Post
Older versions of the RMSDK (eg on the older Sonys) had a habit of breaking a long paragraph at an arbitrary point half way down the page. More recent versions seem not to do that any more.
Thanks

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)
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:38 PM.


MobileRead.com is a privately owned, operated and funded community.