View Single Post
Old 04-13-2010, 04:23 PM   #20
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: 74,167
Karma: 315558334
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by MichaelCampbell View Post
<reference type="cover" title="Book Cover" href="Cover.xhtml" />
This is different to the meta data that iTunes uses. The <reference> element appears in the <guide> element of content.opf, and should indeed reference the xhtml file for the cover.

The meta data needs to appear in the <metadata> element, usually near the start of the .opf file, and would be something like

<meta name="cover" content="cover-image"/>

Note that name="cover" is required, but the "cover-image" bit is arbitrary, and just needs to match the id given in the manifest for the bitmap version of the cover. So, using the above, in the <manifest> element of the .opf file there would also need to be a line

<item id="cover-image" href="images/img0032.png" media-type="image/png"/>

where the id must match the 'content' bit of the meta data, and the href and media-type must correctly identify the cover bitmap.

HTH
pdurrant is offline   Reply With Quote