Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2014, 06:14 AM   #1
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
Long paragraph page breaks

When converting Sigil, epub to epub in Calibre and then viewing on ereaders such as Aldiko and nook, pages appear to break at long paragraphs. Can anyone suggest an html code to insert to prevent this when formatting in Sigil.

Regards
gogreen is offline   Reply With Quote
Old 10-13-2014, 09:41 AM   #2
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,012
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
This is a generic EPUB / Akido question Moved
theducks is online now   Reply With Quote
Advert
Old 10-13-2014, 09:54 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by gogreen View Post
When converting Sigil, epub to epub in Calibre and then viewing on ereaders such as Aldiko and nook, pages appear to break at long paragraphs. Can anyone suggest an html code to insert to prevent this when formatting in Sigil.
This problem is most likely caused by Calibre's file splitting algorithm that splits .html files based on their size and might break up long paragraphs.

I'd recommend splitting files in Sigil instead:

1. Open the ePub file with Sigil and switch to Code View.
2. Identify the heading tag used for chapter headings, e.g. <h1>Chapter 1</h1>
3. Insert Sigil split markers using search and replace. I.e.

Find:<h1>
Replace:<hr class="sigil_split_marker" /><h1>

4. Select Edit > Split At Markers to split the file.
Doitsu is offline   Reply With Quote
Old 10-13-2014, 10:07 AM   #4
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
Why would you convert ePUB to ePUB in Calibre when it is already fine?
Toxaris is offline   Reply With Quote
Old 10-13-2014, 10:30 AM   #5
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
Hi, Thanks for your response. The files (chapters) have all been split correctly and pages in the book do break before the chapters. It is the paragraphs that appear to split within the chapters that I am having concerns. <p is used as the beginning of each paragraph and </span></p> at the end of each paragraph. Could it be a font or margin issue?

Regards
gogreen is offline   Reply With Quote
Advert
Old 10-13-2014, 10:55 AM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
It might be a limitation of Aldiko/Nook. Does the book display OK with the desktop version of ADE?
Doitsu is offline   Reply With Quote
Old 10-13-2014, 11:01 AM   #7
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
It displays fine in googlebooks. I am sure there is a quick coding fix or maybe I am not selecting the correct details in Calibre. Hope someone knows as this is very annoying.
gogreen is offline   Reply With Quote
Old 10-13-2014, 11:47 AM   #8
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
I have worked out the problem only seems to appear once I increase the font size above 14. I guess the problem must be in the style definitions in Sigil I am using. Any help would be appreciated.
gogreen is offline   Reply With Quote
Old 10-13-2014, 01:19 PM   #9
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,471
Karma: 78880114
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
This is possibly Widows and Orphans settings coming into effect with the reader trying to keep the paragraph together.
PeterT is offline   Reply With Quote
Old 10-13-2014, 02:43 PM   #10
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
Quote:
Originally Posted by PeterT View Post
This is possibly Widows and Orphans settings coming into effect with the reader trying to keep the paragraph together.
That is my suspicion too.
Toxaris is offline   Reply With Quote
Old 10-14-2014, 03:03 AM   #11
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
Tried a few different readers and some such as google, UB, ebook reader all work fine, whilst others such as aldiko and nook start to split paragraphs onto different pages in some chapters. It must be the difference between the readers I suppose but it would be nice to know why and try and sort out the code, so the book works perfectly on all epub readers. Maybe I ask too much?
gogreen is offline   Reply With Quote
Old 10-14-2014, 03:42 AM   #12
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
Quote:
Originally Posted by gogreen View Post
...so the book works perfectly on all epub readers. Maybe I ask too much?
No, but that is fantasy land. The specifications are setup very flexible. That causes that various interpretations of the specifications are all valid. Therefore what works on one reader will not work on the other reader even if they follow the specifications. That being said, not even all readers follow the specifications...
Toxaris is offline   Reply With Quote
Old 10-14-2014, 11:17 AM   #13
mikelv
Developer of EPUBReader
mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.
 
Posts: 271
Karma: 1922
Join Date: Oct 2009
Device: none
Quote:
Originally Posted by gogreen View Post
Tried a few different readers and some such as google, UB, ebook reader all work fine, whilst others such as aldiko and nook start to split paragraphs onto different pages in some chapters. It must be the difference between the readers I suppose but it would be nice to know why and try and sort out the code, so the book works perfectly on all epub readers. Maybe I ask too much?
In my opinion it's not a good idea to try to avoid page breaks. EPUB is designed for reflowable content, so you should let it flow .
mikelv is offline   Reply With Quote
Old 10-14-2014, 11:30 AM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,657
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
In the body CSS style, set windows and orphans both to 1.

Code:
body {
windows : 1;
orphans: 1
}
JSWolf is offline   Reply With Quote
Old 11-18-2014, 05:00 AM   #15
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
Hi, Could someone please tell me where and how I add the code widows:0;orphans:0; to CSS in calibre in edit book tab. Not very proficient with Calibre editing as normally do editing with Sigil in HTML.
gogreen is offline   Reply With Quote
Reply

Tags
break, page breaks, paragraphs


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 Long paragraphs cause unwanted page breaks on PRS-T1 entodoays Sony Reader 2 03-11-2014 06:21 AM
about paragraph breaks arslonga Calibre 0 02-03-2012 05:03 AM
Are paragraph ending marks ("pilcrow" symbols) necessary for page breaks? DSpider Workshop 4 01-02-2012 03:57 PM
Paragraph breaks in ePub? rocalisa Calibre 3 10-29-2010 03:53 PM
Paragraph breaks thedevilsjester Calibre 2 09-07-2010 12:26 PM


All times are GMT -4. The time now is 10:31 PM.


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