Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-02-2020, 05:36 PM   #1
graatch
Enthusiast
graatch began at the beginning.
 
graatch's Avatar
 
Posts: 43
Karma: 10
Join Date: Apr 2018
Device: Samsung Galaxy Tab S2, iPad 2 (Bluefire Reader); fire hd 10, Windows
Different footnote/link behavior resulting from epub formatting -- how?

I originally posted here and regarding Moonreader, since there are epub programs which ignore this distinction entirely, but it certainly seems to be a result of something in the epub formatting, no?

https://www.mobileread.com/forums/sh...d.php?t=330267

In Moonreader sometimes footnote links ‘jump’ to a different part of the text and at other times the footnote link just brings up the note (in a nice yellow "sticky note", as of the last update) without jumping you around -- in what's brought up you have the option to 'open' the destination which then takes you there. For me a book full of footnotes in the former style is borderline unreadable as it’s too easy to be moved to different parts of the text. I’ve been looking and looking at hrefs in html and epub, as well as the offending files in Sigil, and for the life of me I can’t figure out what causes a link to do one rather than the other.




So, for example, in my epub of Macbeth:



"Nothing afeard" brings up a popup, which is good, whereas "what thyself didst make" jumps to the note at the end of the file, which is not good.

The underlying formatting is this ugliness:

Quote:
<br/>********<a id="aa1s3l99"></a><a class="hlink" href="../Text/Footnote.htm#a1s3l99">Nothing afeard<sup>99</sup></a> of <a id="aa1s3l99a"></a><a class="hlink" href="../Text/Footnote.htm#a1s3l99a">what thyself didst make</a>,<br/>
and the footnotes:

Quote:
<p class="footnote" id="a1s3l99"><a class="hlink" href="../Text/Shak_9781588368331_epub_c01_r1.htm#aa1s3l99"><stro ng><sup>99</sup> Nothing afeard</strong></a> not at all afraid **</p>
<p class="footnote" id="a1s3l99a"><a class="hlink" href="../Text/Shak_9781588368331_epub_c01_r1.htm#aa1s3l99a"><str ong>what … make</strong></a> i.e. slaughter on the battlefield (<strong>strange images of death</strong>)**</p>

It seems the only difference is that one receives a numeral in superscript and the other doesn't? What am I missing?
graatch is offline   Reply With Quote
Old 06-02-2020, 08:01 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by graatch View Post
It seems the only difference is that one receives a numeral in superscript and the other doesn't? What am I missing?
No guarantees, but you could experiment with always keeping the id="..." and the href="..." attributes together in a single <a> tag, rather than splitting them over
- two <a> tags (as in your chapter HTML) or
- a <p> and an <a> tag (as in your endnote HTML).

Like this:
Code:
<br/>********<a class="hlink" id="aa1s3l99" href="../Text/Footnote.htm#a1s3l99">Nothing afeard<sup>99</sup></a> of <a class="hlink" id="aa1s3l99a" href="../Text/Footnote.htm#a1s3l99a">what thyself didst make</a>,<br/>

<p class="footnote"><a class="hlink" id="a1s3l99" href="../Text/Shak_9781588368331_epub_c01_r1.htm#aa1s3l99"><strong><sup>99</sup> Nothing afeard</strong></a> not at all afraid **</p>
<p class="footnote"><a class="hlink" id="a1s3l99a" href="../Text/Shak_9781588368331_epub_c01_r1.htm#aa1s3l99a"><strong>what … make</strong></a> i.e. slaughter on the battlefield (<strong>strange images of death</strong>)**</p>
I've had more consistent results with pop-up footnotes in various apps since I started doing this. Don't ask me why, though.
jackie_w is offline   Reply With Quote
Advert
Old 06-03-2020, 01:44 AM   #3
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,010
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
The size of the destination paragraph can have an effect, but varies by app, ereader and epub vs kepub on Kobo.
Quoth is offline   Reply With Quote
Old 06-03-2020, 07:15 PM   #4
graatch
Enthusiast
graatch began at the beginning.
 
graatch's Avatar
 
Posts: 43
Karma: 10
Join Date: Apr 2018
Device: Samsung Galaxy Tab S2, iPad 2 (Bluefire Reader); fire hd 10, Windows
Appreciate that tip Jackie, I'll try it!

Quoth, that's a good point -- there would have to be some limitation I'm sure, though it can't be operative in this case since the footnotes are both short, well shorter than other notes that popup for me.
graatch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moonreader - two different footnote/link behaviors in epub/mobi graatch Android Devices 0 05-27-2020 12:27 PM
Footnote formatting Phssthpok Conversion 2 12-07-2015 12:45 PM
Footnote Link Question cupofjoe Sigil 6 05-21-2015 07:54 AM
How good is resulting MOBI file when converting from ePub? droopy Calibre 2 03-04-2015 11:38 AM
PW2: Every link a footnote? How to allow navigation between sections within a book? ASD Conversion 1 08-31-2014 02:31 AM


All times are GMT -4. The time now is 12:18 AM.


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