View Single Post
Old 02-13-2020, 09:30 PM   #34
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Tex2002ans View Post
Quote:
Originally Posted by thymesnewroman View Post
Is there a quick way to modify our coding so that, rather than jumping to the notes section, I would see, for example, just footnote 15 in a pop-up box when I tap on the number 15 in the main body of the book?
No, not that easily...
Actually, I lied.

If you're using Calibre to read this book, one of its heuristics looks for "superscript numbers" linking to each other.

Use this Regex:

Search: (<a href="#f[tn]\d+" id="f[tn]\d+">)(\[\d+\])</a>
Replace: \1<sup>\2</sup></a>

this will change my [1] link into a superscript <sup>[1]</sup>.

Then Calibre's reader will enable the footnote popups.

Last edited by Tex2002ans; 02-13-2020 at 09:33 PM.
Tex2002ans is offline   Reply With Quote