Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

What would be the real guideline on adding cover in XHTML? #22

Open
amandasramalho opened this issue Jan 30, 2018 · 4 comments
Open

What would be the real guideline on adding cover in XHTML? #22

amandasramalho opened this issue Jan 30, 2018 · 4 comments

Comments

@amandasramalho
Copy link

Amazon guidelines guide that the book cover is not included in an XHTML file. (topic 4.2)
Kobo guidelines guide you to include the cover in an XHTML file. (see here)
Several examples that I found have the cover in XHTML.

However, Amazon warns that if the cover is included, it may appear twice on the Kindle. The same is true for iBooks: when you open a book, you first open the cover that the app "interprets" from the "cover" tag and then open the cover of XHTML.

What would be the right thing to do?

@nekennedy
Copy link
Collaborator

If you correctly identify the cover XHTML page in the guide section of the opf (and/or landmarks in the navdoc), Amazon will suppress that XHTML page in favor of the cover image as identified in the opf. I'm not sure if you can omit the EPUB2 guide and just use the EPUB3 landmarks, I have always included it for backwards compatibility so have never tested without it.

iBooks is a slightly different issue. The animation of iBooks "opening" the file does use the cover image before turning to the "bodymatter" landmark, which may or may not be your cover XHTML page. It does not result in the same duplicated cover page when the user swipes to turn pages (as it does in the Amazon system). If this is a concern for you I would suggest setting your bodymatter landmark accurately.

@gregoriopellegrino
Copy link
Collaborator

I think we need a consistent way to set CSS for EPUB cover.

In some reading systems cover images are splitting in multiple virtual pages, e.g.:

Schermata 2020-03-25 alle 15 04 39

Schermata 2020-03-25 alle 15 04 47

@laudrain
Copy link
Collaborator

@gregoriopellegrino Isn't that another issue ?

@gregoriopellegrino
Copy link
Collaborator

gregoriopellegrino commented Mar 25, 2020

Right, I make a new one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants