View Single Post
Old 12-17-2021, 02:02 PM   #13
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 413Michele View Post
Wouldn't this leave the footnote in the main text? Or would I need to also add something like display:none; in the CSS?
Shoving footnotes at the end of each HTML file has multiple advantages:
  • Each chapter's HTML is completely independent.
    • Easily copy/pastable/usable elsewhere.
  • A device doesn't need to load any other files.
    • This was much more important on the older, much slower devices. Used to be a noticeable delay hopping back/forth.
  • Keeps filesizes smaller.
    • ~300 KB is the max filesize recommended. (Older devices could crash.)
  • [...]

(I described a lot more details back in 2013: "A link to jump back to the original start point?". Just ignore my backwards footnote/endnote description.)

Quote:
Originally Posted by 413Michele View Post
Wouldn't this leave the footnote in the main text? Or would I need to also add something like display:none; in the CSS?
If you want an endnotes file, adjust the code slightly.

Chapter 2:

Code:
<p>This is an example.<a href="../Text/endnotes.xhtml#fn2.1" id="ft2.1">[1]</a></p>
endnotes.xhtml:

Code:
<p class="footnote"><a href="../Text/Chapter02.xhtml#ft2.1" id="fn2.1">[1]</a> An example footnote.</p>
I recommend appending the Chapter# to your link ids. This allows you to have unique names throughout the entire book.

Quote:
Originally Posted by 413Michele View Post
Wouldn't this leave the footnote in the main text?
So? I still don't get this argument.

This was all discussed/described in the 2013 thread.

Just skip your eyes right over the footnotes or press the "next page" button a few times.

What the heck do you do while reading a physical book?

Quote:
Originally Posted by 413Michele View Post
Or would I need to also add something like display:none; in the CSS?
No. Don't ever do that. That'll cause many more problems.

This is partly why EPUB3 introduced all the <aside> + epub:type="footnote" stuff. This would allow readers to set their own preferred settings.

(Like, instead of popup footnotes, KOReader allows you to have a footer area that displays at the bottom of your screen.)

If you don't want footnotes "in the way", then use an endnotes file.

But I think advantages of footnotes >>> endnotes.

Last edited by Tex2002ans; 12-17-2021 at 02:05 PM.
Tex2002ans is offline   Reply With Quote