Quote:
Originally Posted by KevinH
perhaps parsing the opf guide and/or the nav landmarks to get the name of the xhtml file that contains the cover image might make things more general
|
Actually, in the epubs that I intend to convert to mobi with kindlegen, I don't have an xhtml cover page at all. This is because, back in the day, that would cause there to be "two" cover images in the mobi file -- one the actual cover, and the other the first page of the interior of the book. I think kindlegen is smarter than that now, and ignores the cover .xhtml file.
But why tempt fate? The guide element for "cover" points to the Image/cover.jpg file itself. Kindlegen likes this, but it will cause epubcheck to bark.
I guess one could parse the cover guide element and then check to see if the .jpg file is where the guide says it is, and if so consider that the cover image to check for the other properties (size, whatever else is checked).
Albert