Quote:
Originally Posted by iain robinson
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>