View Single Post
Old 05-23-2021, 07:56 AM   #1055
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,316
Karma: 95058547
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Back to the original question...

Quote:
Originally Posted by replicant View Post
recently i started reading a book that has long footnotes and somehow the popups show only one paragraph of text (some footnotes have more than one parapragh). if the footnote has more than one <p> tag (thus another paragraph) the popup won't show it.

do you happen to know a way to fix that without having to remove the additional <p> tags?
I played around with this a bit more and came up with a hack that allows pop-up footnotes with multiple paragraphs in KFX format. The trick it to put a hidden border around the paragraphs that make up the footnote. This causes the KFX converter to group them together into a single block that will display in the footnote pop-up. Here is an example:

Code:
<p>This footnote example uses the aside element with the epub:type attribute and bi-directional
hyperlinks.<sup><a id="source" href="#ft-1-1" epub:type="noteref">1</a></sup></p>

...

<aside epub:type="footnote" style="border-style: hidden">
<p id="ft-1-1"><a epub:type="noteref" href="#source">1.</a> This is the footnote text.</p>
<p>This is another paragraph in the same footnote.</p>
</aside>
I tested it using current software. There is no guarantee that it will work in books converted by older or newer versions of the Kindle Previewer or displayed on older or newer versions of the KFX renderer. This works somewhat by chance so it would not be a great idea to rely on it in a published book.
jhowell is offline   Reply With Quote