View Single Post
Old 06-15-2012, 11:40 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,664
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by iain robinson View Post
The problem is when I create a mobi file if I click on an endnote marker in the text it takes me to the endnote but the endnotes don't have any numbering. If I scroll a page left or right and then back again when I get back to the first endnote I looked at, it now has its number. If I use the TOC to go back to my first page and click on the same endnote marker I get the same problem again in the endnotes. Anyone seen this before?
Sounds like the ID plugin is still generating code that ignores well known MOBI behavior/needs.

The anchor code for the target of the end-note link (in the html/epub source) needs to be before the element you're linking to... rather than actually being a part of the element you're trying to link to.

In other words... in your book:
Code:
<a id="backlink_1"></a><p>Text that needs a note. <a href="endnotes.xhtml#endnote_1">[1]</a></p>
The target needs to be:
Code:
<a id="endnote_1"></a><p><a href="chapter1.xhtml#backlink_1">[1]</a> Text of end note</p>
I'm guessing InDesign is producing something like (source):
Code:
<p>Text that needs a note <a id="backlink_1" href="endnotes.xhtml#endnote_1">[1]</a>.</p>
and the target :
Code:
<p><a id="endnote_1" href="chapter1.xhtml#backlink_1">[1]</a> Text of end note</p>

Last edited by DiapDealer; 06-15-2012 at 11:59 AM.
DiapDealer is offline   Reply With Quote