Quote:
Originally Posted by Dabcar
I get the following errors from EPUB-Checker:
|
What version of epubcheck are you using?
(Or are you using a plugin? Or a specific site?)
Quote:
Originally Posted by JSWolf
Is this an ePub 3 or ePub 2 eBook?
|
Says EPUB3 in his post, but could be Dabcar's accidentally using this markup in an EPUB2 book.
Do you use Sigil? If you open the book in Sigil, the titlebar has a little line that says if your book is 3 or 2:
or if you run epubcheck, one of the first lines should tell you whether it's checking in epub2 or epub3 mode.
Quote:
Originally Posted by Dabcar
What does this mean?
|
epub:type="endnote" and "endnotes" are both perfectly valid according to the EPUB3 specs:
https://idpf.github.io/epub-vocabs/structure/#notes
along with "footnote" and "footnotes".
... so something else here may be causing the trouble.
Quote:
Originally Posted by Dabcar
I'm using the following HTML (as an example) for EPUB 3 based on suggestions from others:
|
(Can I ask where you got this code suggestion from?)
From what you're showing, the code does seem to look "okay".
I probably wouldn't use a giant <ul> though.
Quote:
Originally Posted by Dabcar
How do I define this so it works?
|
To be safe, I would wrap each note in an <aside> and use <p>, so something along these lines may work better:
Code:
<aside epub:type="endnotes">
<h2>Notes</h2>
<aside id="fn1" epub:type="endnote">
<p class="note"><a href="#ftn1">[1]</a> This is text for endnote 1.</p>
</aside>
</aside>
See
Doitsu's EPUB3 footnotes test-case from 2016 (not much has changed since then).
That would more gracefully fallback, and work a bit better across a variety of readers.