I wonder if some kind stranger can help me figure this out.
I did a epub validation check here:
http://validator.idpf.org/
And got these errors:
Code:
Type File Line Position Message
ERROR OEBPS/content.opf 13 13 Error while parsing file 'Multiple occurrences of the 'cover-image' property (number of 'cover-image' items: 2).'.
ERROR OEBPS/content.opf 14 99 Package resource 'OEBPS/Images/cover.png' is declared in several manifest item.
ERROR OEBPS/Text/guide.xhtml 18 64 Referenced resource could not be found in the EPUB.
In the manifest section of content.opf, it occurs twice:
Code:
<item id="cover_png" href="Images/cover.png" media-type="image/png" properties="cover-image"/>
<item id="cover.png" href="Images/cover.png" media-type="image/png" properties="cover-image"/>
So, could someone explain if I should keep the line with id="cover_png" or id="cover.png"? I have never had to mess around with these before.
I attached the whole content.opf, but here are some parts that may help solve the problem.
This is the start of the content.opf file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="3.0" unique-identifier="BookID" xmlns="http://www.idpf.org/2007/opf" prefix="rendition: http://www.idpf.org/vocab/rendition/#">
<metadata xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/">
<dc:title id="title1">Aṅguttaranikāya: Numbered Discourses</dc:title>
<meta refines="#title1" property="title-type">main</meta>
<dc:creator id="create1">Bhikkhu Sujato</dc:creator>
<dc:language>en</dc:language>
<meta name="Sigil version" content="0.9.9" />
<dc:identifier id="BookID">urn:uuid:73b4776c-6ed1-41ca-8b0e-b766ded5e300</dc:identifier>
<meta property="dcterms:modified">2018-10-17T15:05:30Z</meta>
<meta name="cover" content="cover.png" />
</metadata>
<manifest>
<item id="cover_png" href="Images/cover.png" media-type="image/png" properties="cover-image"/>
<item id="stylesheet" href="Styles/stylesheet.css" media-type="text/css"/>
<item id="toc" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
<item id="Section0001.xhtml" href="Text/Section0001.xhtml" media-type="application/xhtml+xml"/>
<item id="guide" href="Text/guide.xhtml" media-type="application/xhtml+xml"/>
<item id="an1.1-10" href="Text/an1.1-10.xhtml" media-type="application/xhtml+xml"/>
<item id="an1.11-20" href="Text/an1.11-20.xhtml" media-type="application/xhtml+xml"/>
This is in the middle:
Code:
<item id="an11.983-991" href="Text/an11.983-991.xhtml" media-type="application/xhtml+xml"/>
<item id="an11.992-1151" href="Text/an11.992-1151.xhtml" media-type="application/xhtml+xml"/>
<item id="cover.png" href="Images/cover.png" media-type="image/png" properties="cover-image"/>
<item id="cover.xhtml" href="Text/cover.xhtml" media-type="application/xhtml+xml" properties="svg"/>
<item id="intro.xhtml" href="Text/intro.xhtml" media-type="application/xhtml+xml"/>
<item id="SourceSerifPro-Bold.otf" href="Fonts/SourceSerifPro-Bold.otf" media-type="application/vnd.ms-opentype"/>
<item id="SourceSerifPro-BoldIt.otf" href="Fonts/SourceSerifPro-BoldIt.otf" media-type="application/vnd.ms-opentype"/>
<item id="SourceSerifPro-It.otf" href="Fonts/SourceSerifPro-It.otf" media-type="application/vnd.ms-opentype"/>
<item id="SourceSerifPro-Regular.otf" href="Fonts/SourceSerifPro-Regular.otf" media-type="application/vnd.ms-opentype"/>
<item id="navid" href="Text/nav.xhtml" media-type="application/xhtml+xml" properties="nav"/>
</manifest>
<spine toc="toc">
<itemref idref="cover.xhtml"/>
<itemref idref="intro.xhtml"/>
<itemref idref="Section0001.xhtml"/>
And this is the end:
Code:
<itemref idref="an11.502-981"/>
<itemref idref="an11.982"/>
<itemref idref="an11.983-991"/>
<itemref idref="an11.992-1151"/>
<itemref idref="navid"/>
</spine>
<guide>
<reference type="toc" title="Table of Contents" href="Text/guide.xhtml"/>
<reference type="text" title="Text" href="Text/an1.1-10.xhtml"/>
<reference type="title-page" title="Title Page" href="Text/intro.xhtml"/>
<reference type="cover" title="Cover" href="Text/cover.xhtml"/>
</guide>
</package>