![]() |
#1 |
Connoisseur
![]() Posts: 77
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
|
Kobo pop-up footnotes and h2
I have an EPUB 2 book with footnotes numbered 1 to 43 (all in exactly the same format), which I convert to kepub with Calibre and transfer to my Kobo Libra 2 via DropBox.
Footnotes 1 to 24 are displayed in popup window. From 25 onwards, instead, it jumps to where the text of the note is located at the end of the book. It is important to say - as you will see later - that each xhtml file has a unique h1 header, at the beginning, and several h2's intercalated throughout each file. And the headers appear in the table of contents. Although I don't know why this happens, I have managed to find where it happens. The notes whose call links appear in a place before the h2 labeled as <h2 id=“sigil_toc_id_39”> are displayed (at least in my case) in popup window, not so those whose call link appears below said h2
|
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,512
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Perhaps instead of using header tags in your footnotes, you could use appropriately styled p tags?
And yes, Sigil's ToC build code builds the ToC based on the use of h1-h6 tags. That's the purpose of h tags given the common definition I've seen in multiple places is "the <h1> to <h6> tags are used to define HTML headings". Personally, I use h1 tags for books in a multi-book omnibus, h2 for parts within a book, h3 for chapters & h4 for sections within a chapter. The only time I used h5 & h6 was in one textbook which was a (IMNSHO) dog's breakfast considering over 1,300 entries in the xhtml ToC file made it almost useless on most devices/apps that didn't support ToC collapsing. |
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() Posts: 77
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
|
Quote:
File 07.xhtml: Code:
<h1>Header</h1> <p>Text.<a id="rf24" href="notes.xhtml#nt24"><sup>[24]</sup></a></p> <h2 id="sigil_toc_id_39">Header</h2> <p>Text.<a id="rf25" href="notes.xhtml#nt25"><sup>[25]</sup></a></p> Code:
<div class="nota"> <p id="nt24"><sup>[24]</sup> Text. <a href="07.xhtml#rf24"><<</a></p> </div> <div class="nota"> <p id="nt25"><sup>[25]</sup> Text. <a href="07.xhtml#rf25"><<</a></p> </div> For some reason, only footnotes above <h2 id=“sigil_toc_id_39”> (at least in this particular case) are shown in popup. If I move footnote 25 above said h2, then it shows in popup. If I rebuild the table of contents only up to level 1 (i.e. not including h2), all footnotes are shown in popup. |
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 13
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
|
I don't know if it can be useful, maybe I'm wasting your time. I did many tests for a book of my own in the past. I have the sensation that the offset in the file is somewhat important. So, what happens if you split notes.xml and move nt25 and following in a newly created notes2.xml?
|
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() Posts: 77
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
|
Quote:
Later I found out that it was related with the h2 headers, which seem to impose a certain limit with their id="sigil_toc_id_x". If I remove the "id" from the h2 tags, the problem disappears. It has nothing to do with the 4,000-character limit people mention because these footnotes are very short (no more than 2 lines each), and there are only 43 of them. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pop-up footnotes in Kobo eReaders | il mietitore | Writers' Corner | 11 | 10-31-2024 08:48 AM |
Footnotes no longer pop up | paperback | Editor | 2 | 02-03-2023 05:33 AM |
I have a DOCX with footnotes that I wanna turn to pop-up notes in ePub on Kobo Forma | droopy | ePub | 38 | 05-08-2020 04:46 PM |
Pop-up footnotes | Leonatus | Kobo Reader | 41 | 01-13-2017 07:06 PM |