Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2012, 06:16 AM   #1
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Seeking Layout Advice

I've been converting ebooks for a number of months now, and sorry to say I have not read any ebooks which are presented like my current project. (I'm sure there are hundreds out there, but I haven't stumbled over them)

I have approximately 450 short pieces I'm placing in 4 volumes, and they range from a single paragraph up to about 7500 words. Usually when I've done short stories, I make a separate xhtml file for each piece. But this would feel pretty awkward for this project. Dozens and dozens of single paragraph "chapters"???

I have never used the "page-break-before" to start new chapters, because on a few reading apps for PC (older version of CoolReader, Calibre viewer, and a couple others I can't recall at the moment), the page break wasn't honored. I decided not to chance it on previous books I've converted.

Can I rely on the CSS-styled page-breaks being displayed?
Or should I physically split the files?
GrannyGrump is offline   Reply With Quote
Old 12-10-2012, 07:54 AM   #2
DSpider
Evangelist
DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.
 
DSpider's Avatar
 
Posts: 450
Karma: 343115
Join Date: Nov 2009
Location: Romania
Device: PW2 2014
Splitting them is the only guaranteed way that they start from the top of the page. But would they still start from the top of the page if it was a printed version? Probably not, or else you'd have a lot of pages with some huge blank spaces.

Group them together. 450 stories, 10 stories per chapter (or per file), means 45 chapters.

Then with 4 volumes, you'd have ~11 chapters per volume. That's much more manageable, I think.

Last edited by DSpider; 12-10-2012 at 08:04 AM.
DSpider is offline   Reply With Quote
Advert
Old 12-11-2012, 12:58 AM   #3
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Sounds like a good way to go. Thank you for very sensible advice.

I guess I let the trees obscure the forest.

GrannyGrump is offline   Reply With Quote
Old 12-11-2012, 01:15 AM   #4
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
For reasons lost in time I always use page-break-after, and I know it works. The Woman in White by Wilkie Collins in the MR Library has a quite idiosyncratic structure, and I've used internal page-break-after to start new pages without needing new files.

If you put a page-break-after within a single file most ePub readers that I've tried will just use one of the other (the CSS or the file ending) to make a new page and have the next file follow on immediately. Apple iBooks in their ineffable wisdom will put a blank page between the two files if you have a CSS page-break, so I suggest that you don't end an html file with a CSS page break if you want it to work in iBooks.

I don't know of any desktop ePub reader which honours pagination. Only the stand alone ePub reading devices do.
AlexBell is offline   Reply With Quote
Old 12-11-2012, 03:59 AM   #5
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Ah. page-break-after. So I could make the multi-story chapters as suggested by DSpider, with "page-break-after" between the individual stories. Kewl.

Quote:
I don't know of any desktop ePub reader which honours pagination.
Well, ADE seems to, so I (perhaps unreasonably) expected that other software would do so as well. As I'm sure has been said thousands of times, would be nice if all software and devices strictly followed the same standard!

Thank you, Alex. I'm off to experiment.
GrannyGrump is offline   Reply With Quote
Advert
Old 12-12-2012, 12:25 AM   #6
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Quote:
Originally Posted by grannyGrumpy View Post
Ah. page-break-after. So I could make the multi-story chapters as suggested by DSpider, with "page-break-after" between the individual stories. Kewl.



Well, ADE seems to, so I (perhaps unreasonably) expected that other software would do so as well. As I'm sure has been said thousands of times, would be nice if all software and devices strictly followed the same standard!

Thank you, Alex. I'm off to experiment.
I don't think desktop ADE honours pagination, grannyGrumpy, or at least it doesn't on my desktop. Perhaps I'm setting the 'reading area' the wrong size.

I've found ADE very unreliable to know whether pages are breaking where I want them to, and showing the top margins I want.

Anyone else finds it works?
AlexBell is offline   Reply With Quote
Old 12-12-2012, 10:44 PM   #7
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Odd. I was checking an epub a few days ago, and ADE did honor a page-break-before, but now I need a sanity check. I can't double-check till I get home, but my curiosity bump is itching furiously.


========

I was able to get ADE working from my portable drive.
Divs with Page-break-after are indeed working. This is V 1.8 on XP Pro SP3.

I don't know that top-margin displays are "pixel-perfect", but it definitely shows a difference between small and large margin settings.

Weird.

Last edited by GrannyGrump; 12-12-2012 at 11:00 PM.
GrannyGrump is offline   Reply With Quote
Old 12-13-2012, 05:57 AM   #8
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
I think it is important to not push your luck on page content inside one logical unit. I know I get spillover of an image onto the following page if it is too tall, including any text that is within the paragraph.

Perhaps something similar can occur with text if it is blocked together.
mrmikel is offline   Reply With Quote
Old 12-13-2012, 09:03 AM   #9
GMcG
Writer
GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.
 
GMcG's Avatar
 
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
I had the same problems with not honoured page breaks and so I made each story a separate file. But after doing some trial and error with Calibre preferences and when studying the MR forums I found:

<div style="page-break-before:always"></div>

You can insert this line in your html file wherever you want a page break. If you use Calibre don't opt for:
'Do not split on page breaks' in 'EPUB Output'. I think similar preferences are in other programs too.
Your original file will be split into as many separate files during the conversion process as it has page breaks, so each chapter will be an individual file as it was recommended by DSpider. The original file will not be imported into your Epub. The Calibre viewer shows the text correctly with page breaks and I think this will work for any device because of the splitting of the file into many sub-files.

George
GMcG is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Seeking tech advice wyndslash Lounge 13 08-26-2011 07:56 PM
Seeking advice: My reference book Steven Lyle Jordan Writers' Corner 31 11-30-2009 09:49 AM
Student Seeking advice Stabiliser Which one should I buy? 3 04-28-2009 09:33 AM
Newbie seeking advice on what to buy tarq Which one should I buy? 15 07-25-2008 01:23 PM
Yet another noob seeking advice Voice of Reason Which one should I buy? 6 04-01-2008 03:49 PM


All times are GMT -4. The time now is 11:03 PM.


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