Readwyn 0.1.0

Why footnotes do not pop up on a Kobo or a Kindle

A tap on a little number opens a pop-up only if the book's links let the e-reader recognise a note, and each device looks for something different. A Kindle looks for a note that links back to the text. A Kobo looks for a link to a short passage that comes later in the book. If the links don't fit, the tap jumps you to the notes section like any other link. Some apps never show a pop-up at all, so check the app before you blame the book.

Apps and models that never pop up

Kobo's EPUB guidelines for publishers say notes open as a pop-up box on its e-ink readers and in the iOS app. The exceptions are the original Kobo eReader and the Kobo Wi-Fi. In the Kobo apps for desktop computers, Android and Windows, a note is an ordinary link: you follow it to the notes and come back yourself.

On a Kindle, the user guide of the Kindle Colorsoft says a tap on a footnote, an endnote or a chapter note opens it in a panel at the bottom of the page, or full screen when it won't fit in the bottom third. The same section adds: “Note that not all books support this feature.” Several Kindle e-readers got pop-up notes with the update of August 2015 that brought Bookerly and hyphenation.

What a Kindle looks for

Amazon's text guidelines for reflowable books require footnotes with bidirectional hyperlinks: the number in the text links to the note, and the note links back to the number. It's that pair that some Kindles, the Paperwhite among them, turn into a pop-up. The page also asks publishers to mark each note with an HTML aside element carrying epub:type, and strongly recommends putting the notes at the end of the chapter or of the book. Its checklist before publishing tells them to make sure the pop-up isn't blank, so an empty panel is a known way for this to go wrong.

Amazon ties the pop-up to that pair, so a note that never links back is the first thing to check. The rule also works the other way. Amazon's hyperlink guidelines warn that links which are not footnotes shouldn't come in pairs that point at each other, “to avoid unintended footnote pop-ups.”

What a Kobo looks for

Kobo's guidelines strongly recommend the epub:type attribute with the value footnote or endnote, and point out that it's valid only in EPUB 3 files, not in EPUB 2. They also say the attribute is currently supported in the iOS app. For its e-ink readers and iOS, Kobo describes a test that a plain link passes if all four of these hold:

  1. The link points to a file of the book and to an element inside it by its id, as in notes.html#n12, not to the file alone.
  2. That element holds at least nine characters of text once the tags are taken out.
  3. It holds no more than 5,000 characters.
  4. It comes after the link: a reference in chapter 2 pointing to the end of chapter 2, or to an endnotes file at the back.

Each rule has a plain way to fail. A long endnote can run past 5,000 characters. If the id sits on an element that holds only the note's number, the target has fewer than nine characters. Notes gathered at the front of the book come before every reference, so none of them pass the fourth test.

The guidelines also describe the reading engine. A book you copy to a Kobo as .epub is shown by the Adobe Digital Editions engine, and only a file named .kepub.epub goes to Kobo's own engine, which displays it as the Kobo store would. The guidelines don't say whether the note rules differ between the two engines. Readwyn sends EPUBs to a Kobo as KEPUB by default, and KEPUB or EPUB explains the setting.

The markup that both devices understand

The EPUB 3 Structural Semantics Vocabulary defines noteref as a reference to a note, “typically appearing as a superscripted number or symbol”, and footnote as the note itself, to be used on the aside element. The Digital Publishing WAI-ARIA Module has the same idea as the role doc-noteref, for assistive technology such as screen readers. The EPUB 3.3 specification puts epub:type in the namespace http://www.idpf.org/2007/ops. The sample below declares it on the html element. A note in chapter02.xhtml that meets the Kindle's rule and Kobo's test looks like this:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
…
<p>The ship sailed at dawn.<a id="ref1" href="chapter02.xhtml#note1" epub:type="noteref">1</a></p>
…
<aside id="note1" epub:type="footnote">
  <p><a href="chapter02.xhtml#ref1">1</a> The log gives the time as a quarter past five.</p>
</aside>

The link names the file and an id, the note comes after it in the same chapter, its text is longer than nine characters, and it links back to the reference. If you have a DRM-free copy of a book whose notes don't pop up, an EPUB editor lets you check each of those points and fix the ones that fail. A book with DRM can't be edited, so there the publisher's file is what you get. Kobo sells some books without DRM, and those you can download as an EPUB.