Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-20-2011, 10:20 AM   #16
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,552
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by charleski View Post
Unfortunately, page-break-before won't work on the iPad, which may be why you're having problems.
Sorry to butt in on someone's thread here, but are you referring to the iBooks app on the iPad? Or does the "page-break-before" CSS attribute simply not work at all for any reader app on the iPad? I can live with the former, but the latter would cause me all kind of headaches.
DiapDealer is offline   Reply With Quote
Old 07-20-2011, 10:27 AM   #17
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
That's a good question, since the defect quite possibly lies in the underlying WebKit code that iBooks uses. Unfortunately I don't know the answer.
charleski is offline   Reply With Quote
Advert
Old 07-20-2011, 12:38 PM   #18
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,552
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Hmmm. I believe the WebKit code is used by calibre's ebook viewer, too, and if memory serves... it doesn't honor page-break-before either.
DiapDealer is offline   Reply With Quote
Old 07-21-2011, 04:19 AM   #19
markdraper
Junior Member
markdraper began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2011
Device: iPad, Kindle
no problems DiapDealer, I am still learning all this, so any information is very helpful.
markdraper is offline   Reply With Quote
Old 07-21-2011, 07:40 PM   #20
virtual_ink
Zealot
virtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheese
 
virtual_ink's Avatar
 
Posts: 107
Karma: 1000
Join Date: Sep 2010
Location: Melbourne, Australia
Device: iPad2, Kindle
DiapDialer, I can at least confirm this is the case for iBooks but I'm yet to try any other apps on the iPad.

Markdraper, I am using the method outlined by charleski (thanks again!). Followed by a multi-file find/remove of all <p class="break"/> lines in the resulting files, using TextWrangler. That the best solution I can find to date.
virtual_ink is offline   Reply With Quote
Advert
Old 07-22-2011, 12:05 AM   #21
coldplayplayer
Junior Member
coldplayplayer began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: iPad / iPhone
Reading the thread, perhaps you still don't have an answer. I see you are using InDesign CS 5.5. One method is to create lots of mini documents within InDesign, IE break your Document up into logical smaller documents. Then you create a book in InDesign and all your smaller documents then are added to the book. I can guarantee you that when InDesign exports the book to ePub, each document will start on its own page. If you try this method, you can't use the File -> Export method. Instead on the Books window in the top right hand corner, you select the down arrow and from the drop down list select export to ePub from there. This had me stumped for a few minutes a couple of weeks ago.

I'm not sure why people say you iBooks on the iPad and iPhone wont recognise page breaks from the CSS. I've done it, I do it every day and it works, I promise you. Here is a sample of my CSS and note the last line.

p.Header {
font-family : "Qlassik Bold", sans-serif;
font-weight : bold;
font-style : normal;
font-size : 2em;
text-decoration : none;
font-variant : normal;
line-height : 1.2;
text-align : left;
color : #d90000;
text-indent : 0px;
margin : 0 0 4em 0;
page-break-before: always;
}
So everything tagged in the XHTML as a header ie: <p class="Header">Logbook 463</p> has a page break before it.

I've attached some images to show that it works. Also an image showing the menu you use from InDesign to export a Book to ePub.

I'm happy to send you some of my XHTML and CSS if it will help?
Attached Thumbnails
Click image for larger version

Name:	iPad Horizontal.PNG
Views:	325
Size:	210.7 KB
ID:	74669   Click image for larger version

Name:	iPad Vertical Last Page.PNG
Views:	333
Size:	213.6 KB
ID:	74670   Click image for larger version

Name:	iPad Vertical New Page via Page_Break_Before_Always.PNG
Views:	317
Size:	233.4 KB
ID:	74671   Click image for larger version

Name:	Export InDesign Book to ePub.jpg
Views:	311
Size:	224.6 KB
ID:	74672  
coldplayplayer is offline   Reply With Quote
Old 07-22-2011, 03:09 AM   #22
virtual_ink
Zealot
virtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheese
 
virtual_ink's Avatar
 
Posts: 107
Karma: 1000
Join Date: Sep 2010
Location: Melbourne, Australia
Device: iPad2, Kindle
CPP, wow, this is working for me - great stuff.

This has made me revisit this post. In the comments section, there is still some differing reports: http://www.pigsgourdsandwikis.com/20...ibooks-12.html

To the RHS of this site: http://threepress.org/document/epub-validate/ I noticed this suggestion: "Once you have validated your document, consider uploading it to Ibis Reader to view it in our highly-conformant EPUB reader."

I've just tried viewing my epub using this CSS in Ibis, and it doesn't work there. If Ibis is highly-conformant, does that mean page-breaks are not supported officially by epub? And that some other e-readers may also ignore this CCS?
virtual_ink is offline   Reply With Quote
Old 07-23-2011, 05:09 AM   #23
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by coldplayplayer View Post
One method is to create lots of mini documents within InDesign, IE break your Document up into logical smaller documents.
Splitting the ePub into separate files at every point you want a page break is the only sure way of getting it to work universally. There are enough reports of people still having problems with the CSS method in iBooks that it can't be regarded as reliable. Creating a Book with separate Documents in it is the old way of doing this in InDesign, and it still works, but InDesign will now split the output for you if you use a particular style at the top of each new page, as I outlined.


Quote:
Originally Posted by virtual_ink View Post
CPP, wow, this is working for me - great stuff.

This has made me revisit this post. In the comments section, there is still some differing reports: http://www.pigsgourdsandwikis.com/20...ibooks-12.html

To the RHS of this site: http://threepress.org/document/epub-validate/ I noticed this suggestion: "Once you have validated your document, consider uploading it to Ibis Reader to view it in our highly-conformant EPUB reader."

I've just tried viewing my epub using this CSS in Ibis, and it doesn't work there. If Ibis is highly-conformant, does that mean page-breaks are not supported officially by epub? And that some other e-readers may also ignore this CCS?
Threepress' Ibis is NOT 'highly-conformant', despite their claims. This is just one example of the problems with their on-line reader. The sad fact is that there isn't any reader that fully matches every part of the ePub2 spec, though Adobe's probably comes closest.
charleski is offline   Reply With Quote
Old 07-23-2011, 09:12 PM   #24
coldplayplayer
Junior Member
coldplayplayer began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: iPad / iPhone
Quote:
but InDesign will now split the output for you if you use a particular style at the top of each new page, as I outlined.
Charleski, do you mean that the result of your method will produce an individual XHTML for each break? I'm still very much a NewB to ePub but I can see a some value in this. It would be easier to manage changes with individual XHTML files rather than one behemoth for a 240+ page book.
coldplayplayer is offline   Reply With Quote
Old 07-25-2011, 12:00 AM   #25
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
I still work with the book feature. Even in CS5.5

I can't find/don't know of a way that 5.5 will break a document into separate files...From everything I've read/watched all it does is insert the Page Break code... So a graphic heavy document WILL exceed the required File size limit...
Adjust is offline   Reply With Quote
Old 07-25-2011, 07:03 AM   #26
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Yes, if you look at the files I attached in my earlier post, you'll see that InDesign is actually breaking the ePub up into separate files with this method rather than simply using a css attribute. This method still causes extraneous empty paragraphs at the top of each page break, so it's not ideal, though.
charleski is offline   Reply With Quote
Old 07-29-2011, 01:09 AM   #27
amarie0
Enthusiast
amarie0 doesn't litteramarie0 doesn't litter
 
Posts: 27
Karma: 110
Join Date: Dec 2010
Location: Chicago, IL
Device: iPad, Kindle
In CS5.5 there's a workaround you can use to force ID to split the doc (at export, into multiple XHTML files, thus creating a real page break) at any given point, even if there's no paragraph style there (the style you choose in the Export to EPUB Options dialog box).

The trick is to anchor a small, white-filled frame (no border) as an inline object in an empty paragraph right *before* where you want the page to break:

Last line of text in previous section/chapter.
[anchor graphic here in its own paragraph]
New Chapter or section starts here

Then select the placeholder graphic with the Selection tool and go to Object > Object Export Options (new in CS5.5). Turn on Custom Rasterization in the EPUB/HTML panel so the object gets included in the output and rasterized. (Since it's white you shouldn't see it.) In that same dialog box, turn on Insert Page Break: After Image.

Now you can copy/paste that paragraph with the graphic to any other spot you want a page break.

You want to paste it *before* the page break because otherwise you end up with extra white space above the first line of text in the new chapter.

I didn't get a chance to include this cool tip in my Lynda.com video (the InDesign CS5.5 to EPUB one just came out) but will be writing it up at some point on indesignsecrets.com.

AM Concepcion
amarie0 is offline   Reply With Quote
Old 07-29-2011, 02:35 AM   #28
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 coldplayplayer View Post
Charleski, do you mean that the result of your method will produce an individual XHTML for each break? I'm still very much a NewB to ePub but I can see a some value in this. It would be easier to manage changes with individual XHTML files rather than one behemoth for a 240+ page book.
Actually, splitting the book into separate XHTML files for each chapter is regarded as common sense. It gives you more flexibility regarding maintaining and editing the book and limits the change you hit the filesize barrier on some reading devices.
Toxaris is offline   Reply With Quote
Old 07-29-2011, 11:58 AM   #29
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,680
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
if you do not follow the mobile ADE standards, it won't work on some readers and that's not going to be good at all.
JSWolf is offline   Reply With Quote
Old 10-19-2011, 01:43 PM   #30
douglsmith
Junior Member
douglsmith began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2011
Device: iPad, Kindle
Quote:
Originally Posted by amarie0 View Post
The trick is to anchor a small, white-filled frame (no border) as an inline object in an empty paragraph right *before* where you want the page to break
I tried a bunch of variations on that technique but was not able to get it to force a break in the current version of InDesign 5.5 (7.5.1).

However, I was able to make it work by creating a text frame containing only a space character and give that the paragraph style I'm using to break the ePub into multiple files on export. Then I just place a copy of that text frame somewhere on the page where I would like the break to appear.

I also created an object style for the text frame with the name "break", which shows up as the class of the exported div tag. That makes it easy to search for it in the HTML and remove it from the final ePub files.
douglsmith is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub to mobi loses page breaks stevent10993 Conversion 5 07-20-2011 12:43 AM
Adding page breaks in Calibre breaks ePubcheck validation bookraft Conversion 16 03-01-2011 01:23 PM
PDF to EPUB - page breaks pops1959 Calibre 0 01-13-2011 07:28 PM
Page breaks - PDF input to ePub output JoTH Calibre 9 11-18-2010 04:35 PM
Any way to force page breaks when converting HTML to EPUB Bierkonig Calibre 23 10-31-2009 01:51 PM


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


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