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 08-07-2008, 05:56 PM   #1
Timoleon
Time Enough at Last
Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.
 
Timoleon's Avatar
 
Posts: 387
Karma: 1151316
Join Date: Feb 2008
Location: New England
Device: iPad 3, iPhone 5, Kindle 3, Fire, Sony PRS-350
ePub Cover Page

Hi All ---

I've been fooling with ePub files for the past week or so since Sony made the new upgrade available. I've tried "hand-crafting" some ePub files, and have also had Book Glutton convert some html files over, and although I've had luck with both, I can't seem to get my Sony PRS-505 or Adobe DE to recognize cover pages. Anyone have any hints, or boilerplate that I might try?

Tim

...anxiously awaiting Kovid Goyal's latest masterpiece...
Timoleon is offline   Reply With Quote
Old 08-07-2008, 06:09 PM   #2
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by Timoleon View Post
I've been fooling with ePub files for the past week or so since Sony made the new upgrade available. I've tried "hand-crafting" some ePub files, and have also had Book Glutton convert some html files over, and although I've had luck with both, I can't seem to get my Sony PRS-505 or Adobe DE to recognize cover pages. Anyone have any hints, or boilerplate that I might try?
What do you mean by "cover pages"? In EPUB the book "cover" is just the first page of the book, so if you have a cover image you can wrap it in some XHTML (and possibly SVG) and add an <itemref/> to the cover HTML as the first item in your <spine/>.

Hope that helps!
llasram is offline   Reply With Quote
Old 08-07-2008, 09:34 PM   #3
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Most of the ePubs I have seen include a single page titlepage.xhtml or title_page.html (or whatever) as the first item in the spine. Some just include one large xhtml file, and then whatever is on the 1st page is the "cover" page as far as Adobe Digital Editions is concerned. I have also seen some cover pages listed in the spine with the linear="no" attribute, but that may be dangerous if there is ever an ePub reader that treats such items differently to linear="yes" (see OPF 2.0: Spine).

An ePub can have a "guide" section in its .opf file, but it is optional and Adobe DE ignores it. This means that OEB-based ePubs, which are entirely legal ePubs, won't necessarily show their cover image when viewed by Adobe DE. It is now common for MOBI ebooks to only have the cover in a guide item of type "other.ms-coverimage-standard", so these won't automatically convert to Adobe DE compliant ePubs without special handling.

There are advantages to the "first page is the cover page" approach though. For one thing, it does not have to be (or include) a bitmapped image.
wallcraft is offline   Reply With Quote
Old 08-07-2008, 10:46 PM   #4
Timoleon
Time Enough at Last
Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.
 
Timoleon's Avatar
 
Posts: 387
Karma: 1151316
Join Date: Feb 2008
Location: New England
Device: iPad 3, iPhone 5, Kindle 3, Fire, Sony PRS-350
Thanks, both.

For some reason, the cover art in my creations shows up on the second page rather than the first, in Adobe Digital Editions. I need to investigate my methods a little more thoroughly, I guess

Tim
Timoleon is offline   Reply With Quote
Old 01-09-2009, 09:21 AM   #5
georg3200
Connoisseur
georg3200 began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Nov 2008
Device: none
Hi there,

I have the same problems. I'm not really sure how the cover.html works.

But I could make a png-graphic file to show as the "cover" and "thumbnail" of the book. I added a line to <manifest..> and the <spine.. > section of content.opf.

It looks like this:

<manifest xmlns="http://www.idpf.org/2007/opf">
<item id="logo" href="logo.png" media-type="image/png" />
...
<manifest>
<spine xmlns="http://www.idpf.org/2007/opf" toc="ncxtoc">
<itemref idref="logo"/>
...
<spine>

It's the line with the logo. Make sure, that it is at the very beginning of the sections. Make sure, that the file logo.png is in the same folder as content.opf.
I've tested it with ADE, cause I do not have a Sony PRS...

Georg
georg3200 is offline   Reply With Quote
Old 01-09-2009, 09:29 AM   #6
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by georg3200 View Post
It's the line with the logo. Make sure, that it is at the very beginning of the sections. Make sure, that the file logo.png is in the same folder as content.opf.
The OPF spec states that the <spine/> can only contain OPS Content Documents -- basically just HTML, in most cases. ADE may render a PNG listed in the <spine/>, but there's no guarantee another EPUB reader will.
llasram is offline   Reply With Quote
Old 01-13-2009, 02:40 PM   #7
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,263
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 llasram View Post
The OPF spec states that the <spine/> can only contain OPS Content Documents -- basically just HTML, in most cases. ADE may render a PNG listed in the <spine/>, but there's no guarantee another EPUB reader will.
Should be allowed as long as you've set up a DTBook or XHTML flow as the fallback.
Hadrien is offline   Reply With Quote
Old 01-13-2009, 07:39 PM   #8
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by Hadrien View Post
Should be allowed as long as you've set up a DTBook or XHTML flow as the fallback.
Actually, I'm not sure the OPF spec allows that. The only reference it makes to an item with one of the OPS Core Media Types having a fallback is:

Quote:
For the purpose of fallback specification, the file with the media type application/x-dtbncx+xml that specifies the publication’s NCX (see below) should be considered a Core Media Type, thus fallback information must not be provided for this file.
The "thus fallback information must not be provides" bit is what gets me. Instead of making NCX a special exception which must not have fallback information provided, the spec makes it one of the Core Media Types and implies that because of this it is disallowed from having a fallback.

Is disallowing such fallbacks actually useful? I can't think of a good reason for it.
llasram is offline   Reply With Quote
Old 11-06-2009, 08:54 AM   #9
Chang
Connoisseur
Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 87
Karma: 50000
Join Date: Oct 2009
Device: none
Maybe my question goes under this thread.

Am I right that if I want to have a cover from a real book for my ebook, I need to have xhtml file as my first page and that xhtml file contains just an image of my book cover? For example, in Adobe DE there is a small cover picture next to the author and title. Is it always the same as the first page of my ebook? Is it possible to have book cover in the small picture frame without creating xhtml file with the same picture and keep it as a first page in the ebook. Maybe a bit hardly explained but I hope you get my point
Chang is offline   Reply With Quote
Old 11-06-2009, 09:28 AM   #10
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,366
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
If ADE handled the (optional) guide element, you could specify the cover in that, and leave the cover out of the flow in the spine. Then ADE could get the cover for library display, but start the book at the first page, rather than the cover.

Unfortunately, ADE currently ignores the guide items completely and yes, it does just use the first item in the spine as the cover.

No, there isn't a way around this that confirms to the ePub standard.


Quote:
Originally Posted by Chang View Post
Maybe my question goes under this thread.

Am I right that if I want to have a cover from a real book for my ebook, I need to have xhtml file as my first page and that xhtml file contains just an image of my book cover? For example, in Adobe DE there is a small cover picture next to the author and title. Is it always the same as the first page of my ebook? Is it possible to have book cover in the small picture frame without creating xhtml file with the same picture and keep it as a first page in the ebook. Maybe a bit hardly explained but I hope you get my point
pdurrant is offline   Reply With Quote
Old 11-06-2009, 11:22 AM   #11
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
When you convert Mobi to ePub with Calibre, it picks up the cover image from the "Guide" item in the Mobi book.
HarryT 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
My first epub: Cover is on page 2 (?) omk3 ePub 35 11-02-2010 05:44 PM
Convert to EPUB without Cover Page? Handyman1 Calibre 14 10-17-2010 10:18 AM
ePub Page Numbering Using Page-map Dark123 Calibre 2 06-16-2010 07:15 AM
ePub Suppress Cover Page daveps Calibre 3 02-10-2010 10:12 AM
EPUB=>Mobi: Start/open at cover page - how to? Skydog Calibre 6 10-16-2009 09:43 PM


All times are GMT -4. The time now is 01:17 AM.


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