EPUB: Difference between revisions
| (3 intermediate revisions by the same user not shown) | |||
| Line 19: | Line 19: | ||
When using reflowable EPUB, there's no real concept of a page, and thus no real concept of footnotes. One can move them to the end of a chapter, but an arguably better solution is a popup. Enclose the footnote text in an <tt>aside</tt> tag ala: | When using reflowable EPUB, there's no real concept of a page, and thus no real concept of footnotes. One can move them to the end of a chapter, but an arguably better solution is a popup. Enclose the footnote text in an <tt>aside</tt> tag ala: | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
<aside hidden epub:type="footnote" id="SOMEID"> | <aside hidden="hidden" epub:type="footnote" id="SOMEID"> | ||
<div class="footnote"><a href="#CALLSITE">*</a> Footnote text.</div> | <div class="footnote"><a href="#CALLSITE">*</a>Footnote text.</div> | ||
</aside> | </aside> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Use of <tt>epub:type="footnote"</tt> ought result in the text being hidden, but you might need <tt>hidden</tt> in your <tt>aside</tt> tag. | Use of <tt>epub:type="footnote"</tt> ought result in the text being hidden, but you might need <tt>hidden="hidden"</tt> in your <tt>aside</tt> tag. Unfortunately, this latter causes problems with the popup text in Calibre (at least version 7.4). | ||
Wrap the callsite with an <tt>a</tt> tag: | Wrap the callsite with an <tt>a</tt> tag: | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
| Line 32: | Line 32: | ||
EPUB3 eliminates all but a few HTML entitites. | EPUB3 eliminates all but a few HTML entitites. | ||
* &nbsp; ↦ &#160; | * &nbsp; ↦ &#160; | ||
==See also== | |||
* [https://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf Kindle Publishing Guidelines] from Amazon | |||