Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-14-2025, 01:00 PM   #1
repilo
Connoisseur
repilo began at the beginning.
 
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
  • If I rebuild the table of contents with Sigil, but only “Up to level 1” (i.e. excluding the h2), then ALL the notes are displayed in popup window.
  • IF I rebuild the table with “All” the headings
    THEN the problem returns, notes 25 and following no popup.
  • IF I rebuild the table and uncheck the h2 mentioned above (it changes to <h2 class=“sigil_not_in_toc”>)
    THEN note 25 becomes popup, BUT note 26 and following does not.
    And I notice that the h2 after that has changed to id="sigil_toc_id_39”
I wish someone from Kobo would see this, but I doubt they would do anything about it.
repilo is offline   Reply With Quote
Old 01-14-2025, 01:25 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 01-14-2025, 05:49 PM   #3
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
Perhaps instead of using header tags in your footnotes, you could use appropriately styled p tags?
I don't quite understand what you mean. So I'm going to detail it a bit more.
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>
File notes.xhtml:
Code:
  <div class="nota">
    <p id="nt24"><sup>[24]</sup> Text. <a href="07.xhtml#rf24">&lt;&lt;</a></p>
  </div>

  <div class="nota">
    <p id="nt25"><sup>[25]</sup> Text. <a href="07.xhtml#rf25">&lt;&lt;</a></p>
  </div>
Footnote 24 (and previous footnotes) is shown in popup window; footnote 25 (and following footnotes) is not.
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.
repilo is offline   Reply With Quote
Old 01-15-2025, 02:56 AM   #4
neclepsio
Member
neclepsio began at the beginning.
 
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?
neclepsio is offline   Reply With Quote
Old 01-15-2025, 03:43 AM   #5
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
Quote:
Originally Posted by neclepsio View Post
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?
I did it, and the problem kept happening in the same place, at the same footnote.
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.
repilo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:35 PM.


MobileRead.com is a privately owned, operated and funded community.