View Single Post
Old 02-07-2020, 03:56 PM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Dabcar View Post
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 View Post
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:

Click image for larger version

Name:	Sigil.Title.Bar.Shows.EPUB3.png
Views:	301
Size:	1.5 KB
ID:	176999

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 View Post
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 View Post
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 View Post
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.

Last edited by Tex2002ans; 02-07-2020 at 04:01 PM.
Tex2002ans is offline   Reply With Quote