View Full Version : ePubCheck problem


Adjust
02-14-2012, 10:14 PM
Hi Guys,
I have always made ePubs with bits inserted to make it ready for Kindle conversion.

This goes into the Metadata section of the Content.opf
<meta name="cover" content="my-cover-image"/>

This goes into the manifest section

<item id="my-cover-image" href="images/Cover_kindle.jpg" media-type="image/jpeg"/>

This goes into the Spine section:
<itemref idref="cover" linear="no"/>

This goes into the guide section:
<reference type="cover" title="my-cover-image" href="images/Cover_kindle.jpg"/>
<reference type="toc" title="Table of Contents" href="Contents.xhtml"/>

And, finally, I add a Cover_kindle.jpeg into the Images folder.

Now, doing this, I've never had a problem getting the epub through epubcheck.
But now, since they've updated it, I errors out.

http://i41.photobucket.com/albums/e276/marcusstringer/Picture1-83.png

I've been ignoring this, as I know the files are correct. But it's just annoying...

Does anyone have any ideas how I can get around this?

Toxaris
02-15-2012, 02:46 AM
I would just ignore it. The message is probably correct for ePUB, but not for Kindle. Since that is your goal...

Jellby
02-15-2012, 04:50 AM
I guess you also have something like this in the manifest:

<item id="cover" href="Cover.xhtml" media-type="application/xhtml+xml"/>

as otherwise the bit in the spine would be pointing to a non-existing idref. In that case, you could try pointing the guide element to Cover.xhtml, instead of the jpg file. That would make it ePub compliant, but it might not convert nicely to Kindle, you'd have to try.

Adjust
02-15-2012, 03:38 PM
I guess you also have something like this in the manifest:

<item id="cover" href="Cover.xhtml" media-type="application/xhtml+xml"/>

as otherwise the bit in the spine would be pointing to a non-existing idref. In that case, you could try pointing the guide element to Cover.xhtml, instead of the jpg file. That would make it ePub compliant, but it might not convert nicely to Kindle, you'd have to try.

That line IS already in there?
I don't know what they changed in the epubcheck, but it's annoying

Jellby
02-16-2012, 02:53 PM
If I'm not mistaken, the errors say that links in the guide section must be to elements of "standard" types. In other words, they shouldn't link directly to a JPEG file, but to an XHTML that includes the image.

Adjust
02-16-2012, 03:33 PM
Yeah, I get that, but I guess what I'm asking is... What changed between the old and new epubcheck to throw up this error?

JSWolf
02-26-2012, 11:19 AM
You should be linking to the XML file that displays the cover and not the actual cover image. That will work, be compliant and not toss up errors.

You also have to make a cover link in the spine for converting to Mobipocket that points to the cover XML.

mmat1
02-27-2012, 01:36 PM
Does anyone have any ideas how I can get around this?

I noticed, that the "images" in your screenshot is spelled in lowercase. This is a bit unusual (at last for Sigil)

Maybe if you change this in "Images" (uppercase I) the error is gone ???