Thread: Aura ONE footnotes popup
View Single Post
Old 07-30-2018, 07:45 AM   #6
nozonyan
Enthusiast
nozonyan began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Oct 2016
Device: none
Quote:
Originally Posted by davidfor View Post
There has been plenty of discussion on this in the past. And unless you change the book to epub3 and use the epub3 semantics, it is all a bit of guesswork as to what works. This is on both our and the softwares part.

The length isn't the issue. If the footnote is two long, only part will be displayed. And I'm pretty sure the renderer only considers the first paragraph as the footnote. I'd only expect to see it in the popup. And it doesn't look to long to be shown.

In this case, I think moving the destination id to the paragraph tag will work. Or wrapping the first line of text in the a tag. That's the first thing I would try. Or, depending on what the div is wrapping, moving the id to that might work as well.

The return links are not really needed as there will be a "Previous location" in the bottom bar after you go to the location. Most other ereaders and applications will have this as well. The two links might be confusing things.

The last thing I can think of is that the source link appears to be a number in it's own paragraph. To me, that would be a weird way to do a footnote. I could see the renderer deciding that this was a link, not a footnote reference. Especially if it is the first thing on the page.
I understand. Thank you

Quote:
Originally Posted by jackie_w View Post
The footnote in the attached epub pops up for me when sent to Kobo as a kepub. I used the same method I always use for footnotes.

Where you have used 2 adjacent <a> tags, one for the id and the other for the href:
Code:
<p class="calibre32"><a id="..." class="..."></a><a href="..." class="...">1</a></p>
merge them into one containing both the id and the href:
Code:
<p class="calibre32"><a id="..." href="..." class="...">1</a></p>
... and the same for the footnote, change
Code:
<p class="firstnote"><a id="..." class="..."></a><a href="..." class="...">1</a>-3. La poesia di Dante si avvia a cantare un più sereno argomento, lasciando l’angoscioso mondo infernale.<a href="..." class="...">←</a></p>
to
Code:
<p class="firstnote"><a id="... href="..."" class="...">1</a>-3. La poesia di Dante si avvia a cantare un più sereno argomento, lasciando l’angoscioso mondo infernale.<a href="..." class="...">←</a></p>
If your book is coded consistently and you have some regex skills you should be able to fix the book quite quickly.

I'm not going to claim it's the best solution or the only solution, but it's always worked for me.
Thanks to you too. I'll see if I can manage.
nozonyan is offline   Reply With Quote