![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69
Karma: 50592
Join Date: Oct 2010
Device: Kobo Libre H20
|
![]()
I apologize... I feel like this has been asked a million times, and the answer is out there. But I am baffled why this isn't working.
I have a test epub. The popup endnotes and footnotes work as expected in the macOS Books desktop app. From reading the Kobo Lab documentation, I think I've added the correct tags. However, after I convert to kepub (either with Calibre or using the CLI kepubify version 4.0.4), instead of popups I either get full jumps or non-functional links on my Kobo Libra H2O. Can someone please help? I've tried every permutation I can think of and the various tips on the web I've seen to no avail. With spans, without spans... etc. I have an epub where the endnotes do work after converting to kepub -- so I don't think it is a device thing. But even after looking at the code from that book in Sigil, I still can't figure out why it works in that book and not in mine. I would deeply appreciate your help. (And so, hopefully, will the readers of the book I'm converting!) I've attached the whole epub, but in case it is easier, here are the code snippets: Here's an example place I want an endnote: Code:
... <p class="body">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel risus commodo viv maecenas accumsan. Odio pellentesque diam volutpat suc poc como sed egestas egestas. Lorem ipsum dolor sit amet consectetur. Leo vitae turpis massa.<a href="endnotes.xhtml#massa" epub:type="noteref">[1]</a> ... Code:
... <p id="massa" epub:type="endnote"><span class="endnote">[1] Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel risus commodo viverra maecenas accumsan. Odio pellentesque diam volutpat commodo sed egestas egestas.</span></p> ... Last edited by jeff47; 07-29-2023 at 02:49 PM. Reason: Added additional info on ereader |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,335
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
This is what a functional footnote looks like in one of my books. The footnotes are part of the chapter itself and not a separate file. Tapping on the asterisk in the body text will open the footnote pop-up window, and tapping on the asterisk next to the footnote will jump to the page that references the footnote.
Code:
<a class="hlink" href="#c03-ftn3" id="c03-ftn3a"><sup class="frac">*</sup></a> <p class="footnote" id="c03-ftn3"><a class="hlink" href="#c03-ftn3a">*</a>Shiny footnote text</p> |
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69
Karma: 50592
Join Date: Oct 2010
Device: Kobo Libre H20
|
Quote:
As an aside - don't ids have to be unique? Last edited by jeff47; 07-29-2023 at 05:53 PM. |
|
![]() |
![]() |
![]() |
#4 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,862
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
His IDs are unique. However, if you are going outside the current file, you have to include the filename. Looking at your sample, I added back1a and back3a for the back links.
Code:
<a href="endnotes.xhtml#massa" epub:type="footnote" id="back1a">[1]</a> <p><a id="massa" epub:type="endnote" href="Section0001.xhtml#back1a">[1]</a><span class="endnote"> Shiny footnote text here.</span></p> |
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69
Karma: 50592
Join Date: Oct 2010
Device: Kobo Libre H20
|
Quote:
Doesn't it need to be "noteref" in the epub:type, based on Apple's documentation? (https://help.apple.com/itc/booksasse...cf8ecf5c8.html) In case it isn't clear, I've attached a screenshot of my Kobo on a book where this works. My problem is I don't understand why it works in the book I'm looking at, and not when I try it! |
|
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
I experimented with pop-up footnotes some time ago and created an epub3 test file with footnotes formatted according to the Apple Books Asset Guide recommendations. On my iPad, they were displayed as pop-up footnotes. Try to kepubify it. If my footnotes aren't shown as pop-up footnotes either, you'll have to reverse-engineer a KEPUB book with working pop-up footnotes to find out the correct syntax.
|
![]() |
![]() |
![]() |
#7 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69
Karma: 50592
Join Date: Oct 2010
Device: Kobo Libre H20
|
Quote:
I think I'll take this over to the kobo github and see if they have any clues. |
|
![]() |
![]() |
![]() |
Tags |
endnote, epub, footnote, footnote popup, kepub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with endnotes/footnotes? | r_avital | ePub | 4 | 10-28-2019 03:11 PM |
Aura ONE footnotes popup | nozonyan | Kobo Reader | 5 | 07-30-2018 07:45 AM |
Footnotes and Endnotes | Ken Irving | Writer2ePub | 2 | 01-02-2011 09:05 AM |
Footnotes/Endnotes | crutledge | Sigil | 17 | 07-17-2010 11:56 AM |
How do endnotes/footnotes work? | JSWolf | ePub | 4 | 04-22-2009 05:54 PM |