Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2008, 05:54 PM   #1
dynabook
Techno-geek
dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.
 
Posts: 165
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black)
Formatting ePubs

I am working on a project for moving a large document to an electronic medium for reading purposes. I started with iSilo on a Palm and was getting pretty good results but the document was so large and the Palm was so small I got tired of the conversion process.

I have since gotten a Sony Reader and with the advent of ePub capabilities have been drawn back to this project to try and produce an ePub version. I basically have html which needs a lot of formatting. I am working on a chapter at a time.

The results so far are pretty good but I can't seem to get page breaks where I want them. I would like the top of the page to start right after the break. I am using the following statement:

<br clear="all" style='page-break-before:always' />

Should I add the style to my Chapter title? How do I add multiple styles since the chapter title is already style='text-align:center'? span tag?

Sorry for the newbie html questions but this is annoying.
dynabook is offline   Reply With Quote
Old 09-22-2008, 06:35 PM   #2
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,828
Karma: 908606
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
i believe epub uses an external stylesheet, which will allow you to add whatever (as many) css styles you like.

it might be helpful to look at a finished epub document : you could try formatting a sample document using the wysiwyg editor on feedbooks.com, then just download the preview rather than publishing the document. an epub file can be opened using winzip or winrar to see the different files that compose it. you could also use this editor to make your entire book. books in progress are saved between sessions.
zelda_pinwheel is offline   Reply With Quote
Old 09-22-2008, 07:12 PM   #3
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,265
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Quote:
Originally Posted by dynabook View Post
I am working on a project for moving a large document to an electronic medium for reading purposes. I started with iSilo on a Palm and was getting pretty good results but the document was so large and the Palm was so small I got tired of the conversion process.

I have since gotten a Sony Reader and with the advent of ePub capabilities have been drawn back to this project to try and produce an ePub version. I basically have html which needs a lot of formatting. I am working on a chapter at a time.

The results so far are pretty good but I can't seem to get page breaks where I want them. I would like the top of the page to start right after the break. I am using the following statement:

<br clear="all" style='page-break-before:always' />

Should I add the style to my Chapter title? How do I add multiple styles since the chapter title is already style='text-align:center'? span tag?

Sorry for the newbie html questions but this is annoying.
I'm not sure that you're allowed this CSS property here. Try the same thing on a div, it'll probably work.
Hadrien is offline   Reply With Quote
Old 09-22-2008, 08:24 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,285
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
<h2 style="page-break-before: always">Chapter title</h2>

And you can use html2epub to create epubs for the sony.

EDIT; And you can always force a page break by splitting the HTML file into two separate files.

Last edited by kovidgoyal; 09-22-2008 at 08:41 PM.
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[KOBO] Strip existing formatting to apply my own default formatting to all books digital_steve Calibre 2 08-10-2010 06:34 PM
Classic Combining ePubs? druzyek Barnes & Noble NOOK 2 07-29-2010 08:04 PM
Calibre and FORMATTING how to stop it altering my formatting? nerys Calibre 37 07-23-2010 02:35 AM
Calibre and FORMATTING how to stop it altering my formatting? nerys Calibre 0 02-28-2010 04:51 PM
line formatting formatting question daesdaemar Workshop 9 02-06-2009 11:47 AM


All times are GMT -4. The time now is 12:22 PM.


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