View Single Post
Old 06-27-2022, 04:18 PM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
Footnotes: Best Practices?

I'm not sure where to post this question. But, since I was in the Calibre Editor when I messed things up, I figured this forum might be acceptable.

Anyway, I managed to destroy the footnote links in an epub and thought it wouldn't be a problem to re-create them. Unfortunately, I can't seem to figure it out. From what I can see, roughly speaking, the book puts the footnote text down at the bottom of the chapter/file, prefaces it with a paragraph id and a link back to the place in the text where it's called. With most of the extraneous stuff stripped out, that footnote text looks like:

Code:
<p id="footnoteid"><a href="#returnfootnoteid"><sup>*</sup></a>the note</p>
Up in the text, the call to the footnote is simply a link to the spot:

Code:
<a id="returnfootnoteid" href="footnoteid"><sup>*</sup></a>
But, when I look at W3C's information on footnotes, I find:

https://www.w3.org/MarkUp/html3/footnotes.html

which uses an <fn> element to do the same thing and doesn't have a return function. The equivalent of the above is:

Code:
<fn id="footnoteid"><sup>*</sup>the note</fn>
and

Code:
<a href="#footnoteid"><sup>*</sup></a>
Of course, I've found other ways to do the same thing:

https://stackoverflow.com/questions/...otnote-in-html

And some references to even more ways that seem to require epub3 which I can't even understand:

https://github.com/kobolabs/epub-spe...kobo-platforms

and

https://www.w3.org/publishing/epub3/...type-attribute

But, for Calibre and my Kobo Forma, what would be the best way to do footnotes? Note that the footnote behavior is different in Calibre's Viewer between the <fn> element version and the supposed original way the book did it (the <fn> "window" seems to show the whole screen from the footnote text up, while the "original" way seems to just show the footnote text.
enuddleyarbl is offline   Reply With Quote