Quote:
Originally Posted by theducks
Look at the OPF code
A cover has 2 semantic components:
1) the image file
2) the file it resides on. Note a file can only have 1 semantic set, which is why Calibre creates the 'Titlepage' (the name is not important, it is the Flags in the OPF, point to it
|
I suspect this advice is aimed at a different problem than the one I'm having.
The book which is producing the error has no cover image in the book, and no files with either the Cover semantic or the Title Page semantic set. Its first HTML file is the one containing the first chapter. Normally, under those conditions, Calibre auto-generates a cover which is essentially just a screencap of the book's first page, and adds that cover into its metadata for the book (but not into the book file's internal medatata, unless I specifically tell it to); this time, it's instead producing an error.
Jus to make sure, I double-checked, and there's no difference in internal .opf code structure between the error-producing book and a different book which Calibre auto-generated a cover from in the usual way without error. Both contain, in order:
-metadata
--publisher
--calibre series index
--description
--language
--creator
--calibre timestamp
--calibre title sort
--calibre series
--date
--title
--identifier
--a bunch of subject tags
--sigil version
--date modified
-manifest
--a bunch of chapters
--ncx (table of contents)
-spine
--a bunch of chapters
...and that's it.