![]() |
Anchors not reaching destination correctly
I have lots of cross-references to add to a document. Half the book is made up of Appendix items. I've set up the first and it's not working correctly. It's supposed to find Appendix Item #26, but when I click the link, (while using Chrome's ebook reader) it only get halfway through Appendix 20.
The anchor link is: <p class="appendix"><a href="Appendix.xhtml#A-26">Appendix #26. Poplar Ridge Friends Meeting</a></p> Then, on the Appendix.xhtml file I've coded: <h2 id="sigil_toc_id_119"><a id="A-26">26. Poplar Ridge Friends Meeting, July 8, 2014</a></h2> Any suggestions? |
Edit to above
Just noticed that TOC is not working correctly for this section of the book, either.
|
Does it work in Sigil and Calibre?
What version of Sigil are you using on what platform? Could you have a duplicate id someplace earlier in the destination file that is set to "A-26"? Or perhaps "a-26" and your reader is not treating the id properly as case sensitive? |
It works properly in Sigil. I'm wondering if the problem might have to do with all the large image files in that 'chapter.' Perhaps that's creating a lag in display. I'm going to try making each appendix item its own file.
|
I would double-check as google ebooks have problems as they do not treat ids as case sensitive.
|
The links are calling for the anchors in a case-sensitive correct way. Is that what you mean?
|
I mean if the id="A-26" and id="a-26" both exists in the same file, google ebooks may get the destination wrong as it seems to treat them as identical (they compare using a case-insensitive manner) whereas the epub spec clearly states they should be treated as different ids (ie case sensitive comparisons). Both Sigil and calibre follow the spec. This can be an issue with the ids used in the opf as well.
|
Thanks. I'll keep that in mind.
|
| All times are GMT -4. The time now is 10:34 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.