View Single Post
Old 08-17-2015, 11:59 AM   #153
CharlieSummers
Junior Member
CharlieSummers began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2015
Device: FBReader
Quote:
Originally Posted by BenChen View Post
Hi there,
I am happy to try and debug this. But it will be easier if you attach the EPUB in question. Thanks!
Ben.
This occurred on 22-23 files yesterday (I should have checked before doing most of the series), not a single file. I can't attach the files publicly (they are copyrighted), but I'd be happy to provide one or two in the original format and post-EPUB Metadata Editor if you can suggest a less...open method.

I have to admit I don't know the format specifications, so if multiple definitions of an item are permitted in the .opf file, this is then an issue with Sigil being too strict. If multiple definitions are _not_ permitted, then it may be the Editor. Making it clear I'm not blaming anyone for anything, just noting an anomaly between the two applications which only occurred after upgrading both from older versions yesterday.

EPUB Medatata Editor is definitely duplicating the cover.jpg id item (and the toc.ncx html item, which I just noticed now and doesn't seem to bother Sigil) when hitting that "Auto-fix .opf file" button, though. An example from one of these files, first before the autofix:

Code:
  <manifest>
    <item href="../0000Cover.jpg" id="prioritorised_cover" media-type="image/jpeg"/>
    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
    <item id="cover.jpg" href="Images/cover.jpg" media-type="image/jpeg"/>
    <item id="cover.xhtml" href="Text/cover.xhtml" media-type="application/xhtml+xml"/>
    <item id="part1.xhtml" href="Text/part1.xhtml" media-type="application/xhtml+xml"/>
...
    <item id="title.xhtml" href="Text/title.xhtml" media-type="application/xhtml+xml"/>
    <item href="toc.ncx" media-type="application/x-dtbncx+xml"/>
  </manifest>
...and now after:

Code:
  <manifest>
    <item href="../0000Cover.jpg" id="prioritorised_cover" media-type="image/jpeg"/>
    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
    <item id="cover.jpg" href="Images/cover.jpg" media-type="image/jpeg"/>
    <item id="cover.xhtml" href="Text/cover.xhtml" media-type="application/xhtml+xml"/>
    <item id="part1.xhtml" href="Text/part1.xhtml" media-type="application/xhtml+xml"/>
...
    <item id="title.xhtml" href="Text/title.xhtml" media-type="application/xhtml+xml"/>
    <item href="toc.ncx" media-type="application/x-dtbncx+xml"/>
  <item href="toc.ncx" media-type="application/x-dtbncx+xml"/>
    <item id="cover.jpg" id="cover" media-type="image/jpeg"/>
</manifest>
The current workaround is, of course, not hitting that button. ;)
CharlieSummers is offline   Reply With Quote