View Single Post
Old 04-08-2021, 08:24 PM   #7
codychan
Groupie
codychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud of
 
codychan's Avatar
 
Posts: 153
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
Quote:
Originally Posted by DNSB View Post
Part of it is that if the footnotes/endnotes are not properly specified, the heuristics are not that great. If the number of characters between the start of the footnote and the end of the file the footnote is in, exceeds 5000 characters, it will be treated as you would expect a link in a HTML ToC to be treated. A good reason why using the correct syntax and keeping an eye on file sizes is important.

And this is just on a Kobo ereader. Similar issues exist on every ereader I've tried.
I read all the epub2 spec and all the result of "epub footnotes site:mobileread.com", follow the rules in some demo epub file in the links which is popup note on my Kobo, shrink the long footnote content and move the position of the footnote close to the reference node, pass the epubcheck check, they are still not popup.

BUT I managed to make the notes popup in other 2 books (I only tried 3 files including the Ulysses file, but it is chaos, I keep it untouched).

The solution is: split the html files
- add "page-break-before: always;" in stylesheet, for header tag or for just the footnote content part which lists all the footnote content.
- convert the epub file, the html will be split into multiple html files
- send the converted file to kobo

but the html files are not big, one is 60kb and the other is 100kb, don't know why it is a problem for kobo. Anyway, maybe it doesn't work for all cases, I'll use this method in the future and see how it goes.

And thanks for the help, learnt a lot.

Last edited by codychan; 04-09-2021 at 05:31 PM.
codychan is offline   Reply With Quote