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 03-10-2010, 06:32 PM   #1
MarcusStringer
Member
MarcusStringer began at the beginning.
 
MarcusStringer's Avatar
 
Posts: 21
Karma: 14
Join Date: Sep 2009
Location: Maryborough, Vic, Australia
Device: Adobe Digital Editions
HTML formatting

Hi people.
Just ran a test job for a client who want to branch into the eBook world.

I'm not that familiar (enough to get me in trouble) with HTML and the .epub was created from InDesign. I've anchored all the images so they appear where they are supposed to... but the formatting is atrocious... see here:
For example the prelims (dedication, imprint, title page etc) needs to really be on their own page. Can this be done???



And the start of chapters have an image here that I would indicate a new chapter and which I would like starting on a new page...



Is there a list of commands for things like this and where to place them, for beginners?

Like:
Making paragraphs centered then insert this code here.
or this is how to make all the fonts the same size
or to adjust font size insert this code here

That would be helpful

Thanks
Marcus
MarcusStringer is offline   Reply With Quote
Old 03-10-2010, 08:24 PM   #2
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
Adobe Digital Editions respects the css 'page-break-before: always' style, though some other epub readers don't. The sure-fire way of forcing a pagebreak is to break the text into separate flows, which for InDesign means creating the epub from a Book that contains separate documents (each document will be a new flow).

As for the rest, try reading up on CSS2.

Creating epubs requires mix of typographic and technical skills equivalent to those needed to design a physical book.
charleski is offline   Reply With Quote
Old 03-11-2010, 10:24 AM   #3
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by charleski View Post
Creating epubs requires mix of typographic and technical skills equivalent to those needed to design a physical book.
I'd say that having skills typically associated with web design is 90% of knowing how to create a good epub. The skills used in making a physical book are IMO not that much related. What are the chances that someone creating physical books knows XHTML and CSS? And where do classic typography skills come into play for epub where the layout is left entirely to the Reading Systems? Sure, they matter, but not as much as we'd like.

I'm not saying there is no overlap between skills used in making physical books and epubs, I'm just saying it's small.
Valloric is offline   Reply With Quote
Old 03-11-2010, 11:46 AM   #4
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 Valloric View Post
I'd say that having skills typically associated with web design is 90% of knowing how to create a good epub.
A web page is a very different thing to an ebook. It serves a different purpose and is used in a different manner. While web design has inherited many elements from large-format book design, it has (quite rightly) branched out in entirely different directions. While they both use similar languages (html/xhtml and css), those are merely tools that can be put to very different purposes.

I've seen several books which have been laid-out as if they were just one long web-page, no doubt the result of some numpty thinking, 'This ebook thing is just html, that's easy!' They look hideous and are hard to read.

Quote:
where the layout is left entirely to the Reading Systems
Any epub that didn't use any styling code to override the default rules would be a joke.
charleski is offline   Reply With Quote
Old 03-11-2010, 12:51 PM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by charleski View Post
A web page is a very different thing to an ebook. It serves a different purpose and is used in a different manner.
No argument here.

Quote:
Originally Posted by charleski View Post
While web design has inherited many elements from large-format book design, it has (quite rightly) branched out in entirely different directions. While they both use similar languages (html/xhtml and css), those are merely tools that can be put to very different purposes.
Still no argument.

Quote:
Originally Posted by charleski View Post
Any epub that didn't use any styling code to override the default rules would be a joke.
And I agree with this too. I've never said epub books should be laid out as web pages, I'm just saying that skills and knowledge used in web development (XHTML and CSS) are more pertinent to epub creation than those from traditional typesetting.

You just confirmed this: any epub book not using specific CSS code looks amateurish. How many traditional typesetters/typographers/etc know CSS? I'd bet the number is very low.

And by "layout" being up to the Reading Systems, I meant the actual text layout. As in the way paragraphs and lines flow and break, tracking, kerning etc. You can't control that when creating an epub book, and it's very important for physical books. Those would be the skills from traditional typography that are sadly left wasted for ebooks.
Valloric is offline   Reply With Quote
Old 03-11-2010, 05:42 PM   #6
MarcusStringer
Member
MarcusStringer began at the beginning.
 
MarcusStringer's Avatar
 
Posts: 21
Karma: 14
Join Date: Sep 2009
Location: Maryborough, Vic, Australia
Device: Adobe Digital Editions
Quote:
Originally Posted by Valloric View Post
How many traditional typesetters/typographers/etc know CSS? I'd bet the number is very low.
Agreed, and the problem is Publishers are heading to traditional typesetters like myself for solutions to producing ebooks (which is a natural progression IMO). Problem is they don't understand what's involved in such a venture.

Quote:
And by "layout" being up to the Reading Systems, I meant the actual text layout. As in the way paragraphs and lines flow and break, tracking, kerning etc. You can't control that when creating an epub book, and it's very important for physical books. Those would be the skills from traditional typography that are sadly left wasted for ebooks.
Is is my biggest problem...Crash course in XHTML + CSS to say "yes" we can do it... so we don't lose out on the potential massive market in this type of work... If we can offer a service of traditional typesetting as well as ebook production bundled together... It has to be the way of the future...

So I guess sortging out the best way to layout for traditional AND digital will be the challenge. Instead of creating one document in InDesign, Breaking it down the elements (title page, dedication pagee, chapter1, chapter2, etc) into seperate files then using the book feature, creating the epup file to ensure pages breaks.

Last edited by MarcusStringer; 03-11-2010 at 08:24 PM.
MarcusStringer is offline   Reply With Quote
Old 03-12-2010, 08:31 AM   #7
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 Valloric View Post
And by "layout" being up to the Reading Systems, I meant the actual text layout. As in the way paragraphs and lines flow and break, tracking, kerning etc. You can't control that when creating an epub book, and it's very important for physical books.
Obviously there's a lot more to typography and book design than that, though you're right that they are a very important component. Relowability means that line- and page-breaks within a continuous block of text need to be left to the reading system, but tracking and kerning can most certainly be controlled, I've attached an example to show this (which also shows the tedious contortions needed to get around the primitive limitations of the epub spec).

Typography was one of the first industries to embrace a computersied workflow, I don't think modern typographers have any problem with that, though they might not know what to do with a composing stick. (x)Html and CSS are hardly rocket-science, anyone can pick them up very quickly. They're just a tool, like a knife - everyone knows how to use a knife to cut some bread, but very few know how to use a knife to cut out an appendix.
Attached Files
File Type: epub Letterspacing Test.epub (2.2 KB, 139 views)
charleski is offline   Reply With Quote
Old 03-12-2010, 04:17 PM   #8
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
Quote:
Originally Posted by charleski View Post
Relowability means that line- and page-breaks within a continuous block of text need to be left to the reading system, but tracking and kerning can most certainly be controlled, I've attached an example to show this (which also shows the tedious contortions needed to get around the primitive limitations of the epub spec).
But you're telling it to use a different character spacing than usual, as a function of its normal character spacing ("tight", "loose", etc., throughout this span)-- you're not actually doing real kerning there, where information taken from the fonts is used pairwise to correctly place each pair of characters appropriately spaced apart given their individual shapes -- that would still have to be done by the rendering system, no? (Or it would be a real pain.)

Quote:
(x)Html and CSS are hardly rocket-science, anyone can pick them up very quickly. They're just a tool, like a knife - everyone knows how to use a knife to cut some bread, but very few know how to use a knife to cut out an appendix.
Thank you -- you need to tell that to DawnFalcon.

P.S. I looked at the CSS file inside the ePub. I was surprised by what I saw, which is controlling spacing using margin-left and margin-right -- surely the letter-spacing CSS property would be more appropriate, with just one <span> tag rather than a separate one for each letter. Doesn't the ePub spec support that? Disappointing if it doesn't.

Last edited by frabjous; 03-12-2010 at 04:28 PM.
frabjous is offline   Reply With Quote
Old 03-12-2010, 09:26 PM   #9
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 frabjous View Post
But you're telling it to use a different character spacing than usual, as a function of its normal character spacing ("tight", "loose", etc., throughout this span)-- you're not actually doing real kerning there, where information taken from the fonts is used pairwise to correctly place each pair of characters appropriately spaced apart given their individual shapes -- that would still have to be done by the rendering system, no? (Or it would be a real pain.)
Well, kerning, 'real' or otherwise, can be done manually or automatically. In most cases it's incorporated into the font through the kerning tables, though there are some fonts which deliberately eschew that. There are certainly times when you'd want to override automatic kerning to maintain a consistent balance in a headline, but yeah, manually kerning an entire body of text would require a degree of mania.

Quote:
P.S. I looked at the CSS file inside the ePub. I was surprised by what I saw, which is controlling spacing using margin-left and margin-right -- surely the letter-spacing CSS property would be more appropriate, with just one <span> tag rather than a separate one for each letter. Doesn't the ePub spec support that? Disappointing if it doesn't.
Pity you can't hear my bitter laugh. No, letter-spacing is not a required attribute for the CSS subset specified by the IDPF, and it's not supported by ADE.

I have no idea why it's not included (a search on the IDPF forum reveals nothing), and it's just another example of why the epub spec needs revision.

OTOH, letterspacing can be really irksome when overused, so maybe this is some subtle ploy to enforce a typographic standard .
charleski is offline   Reply With Quote
Old 03-13-2010, 07:22 AM   #10
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by charleski View Post
OTOH, letterspacing can be really irksome when overused, so maybe this is some subtle ploy to enforce a typographic standard .
I think most people would be surprised at just how few subtle ploys really exist in the world.
Valloric is offline   Reply With Quote
Old 03-29-2010, 01:05 AM   #11
MarcusStringer
Member
MarcusStringer began at the beginning.
 
MarcusStringer's Avatar
 
Posts: 21
Karma: 14
Join Date: Sep 2009
Location: Maryborough, Vic, Australia
Device: Adobe Digital Editions
Well...umm...I guess thanks? for helping me out... Individual Documents, right? Thanks charleski.

I didn't mean for this to turn into a argument about Letter spacing... To be honest. I'm hoping with the introduction of the iPad that PDFs will take over .epub as the new standard.

Because Acrobat will actually maintain the look and feel of the Printed Book, Including bookmarks, Hyperlinks, Metadata, and can now include video etc etc... and most importantly maintains columns and table... I think given time the industry will come full circle back to PDF, instead of the jumbled continuous single column only supporting OpenType fonts mess that it is at the moment...
MarcusStringer is offline   Reply With Quote
Old 03-29-2010, 09:27 AM   #12
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by MarcusStringer View Post
To be honest. I'm hoping with the introduction of the iPad that PDFs will take over .epub as the new standard.

Because Acrobat will actually maintain the look and feel of the Printed Book, Including bookmarks, Hyperlinks, Metadata, and can now include video etc etc... and most importantly maintains columns and table... I think given time the industry will come full circle back to PDF, instead of the jumbled continuous single column only supporting OpenType fonts mess that it is at the moment...
On MobileRead, that can of worms has been opened and closed repeatedly about 50 million times (on last count).

Let's not go there yet again.
Valloric is offline   Reply With Quote
Old 04-05-2010, 05:42 PM   #13
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: 45,394
Karma: 32620988
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by MarcusStringer View Post
To be honest. I'm hoping with the introduction of the iPad that PDFs will take over .epub as the new standard.

Because Acrobat will actually maintain the look and feel of the Printed Book, Including bookmarks, Hyperlinks, Metadata, and can now include video etc etc... and most importantly maintains columns and table... I think given time the industry will come full circle back to PDF, instead of the jumbled continuous single column only supporting OpenType fonts mess that it is at the moment...
ePub can use Truetype fonts as well as Opentyle when embedding fonts.

As far as PDF goes, let's just say you are way out in left field here. Most readers won't work well with PDF and since epub should work fine on the iPad and most readers, it would be rather bad for business to do away with ePub in favor of the eBook wannabe format that is PDF.
JSWolf is offline   Reply With Quote
Old 04-05-2010, 07:06 PM   #14
MarcusStringer
Member
MarcusStringer began at the beginning.
 
MarcusStringer's Avatar
 
Posts: 21
Karma: 14
Join Date: Sep 2009
Location: Maryborough, Vic, Australia
Device: Adobe Digital Editions
Quote:
Originally Posted by JSWolf View Post
As far as PDF goes, let's just say you are way out in left field here. Most readers won't work well with PDF and since epub should work fine on the iPad and most readers, it would be rather bad for business to do away with ePub in favor of the eBook wannabe format that is PDF.
The point I was trying to make was with the introduction of iPad I can see PDF becoming more widely used, because it retains everything people want in a book...Good design and readability.

My prediction will be iPad slowly becoming the benchmark, in the same vein as iPhone became the benchmark in mobile phone tech

Let me just say. There are a lot of frustrations because of the limitations .epub have for the first timer with ebook creation.
MarcusStringer is offline   Reply With Quote
Old 04-05-2010, 07:16 PM   #15
Elfwreck
Grand Sorcerer
Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.
 
Elfwreck's Avatar
 
Posts: 5,117
Karma: 24387938
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Clié; PRS-505; EZR Pocket Pro, PRS-600, Kobo Mini
Quote:
Originally Posted by MarcusStringer View Post
I didn't mean for this to turn into a argument about Letter spacing... To be honest. I'm hoping with the introduction of the iPad that PDFs will take over .epub as the new standard.
Not a chance.

Not everyone is going to read on a screen big enough to display letter-sized pages well, and that's what gets in the way of PDFs being the industry-standard for ebooks. Pocket-sized ebook readers, between Blackberry/PDA size and 6" e-ink screens, can't handle magazine-page-sized PDFs well.

What'll take over is whoever manages to make a markup-based format (which might be ePub) that displays with elaborate layout options if you've got the screen real estate, and simple linear layout if you don't.
Elfwreck is offline   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
Best example of HTML formatting for Kindle??? delphidb96 Amazon Kindle 13 02-15-2011 07:22 AM
html2mobi - html formatting brunovg Kindle Formats 2 12-13-2009 06:56 AM
HTML formatting john folkard Calibre 1 08-18-2009 11:15 AM
html formatting question Nate the great Workshop 49 07-17-2009 11:33 AM
Formatting a pdf or html..... tmastern Sony Reader 3 12-12-2006 04:41 PM


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


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