Overview: I'm trying to export an index for an ebook using Ole Kvern's scripting tools, linked to the paragraph level instead of page numbers. The index was created outside of Indesign, in Macrex indexing software, but was set up using the names of text anchors in the InDesign book. Unfortunately using InDesign's native indexing isn't an option at this point (incredibly long book was already indexed with Macrex, would cost thousands to redo).
I think the InDesign documents are set up correctly. But when I export one of the documents (or the entire book) to EPUB, the hyperlinks that the index needs to point to (should look like <a href=”c10.s68011.p34.49”>34</a>) are exported instead in the form of <a id="_idTextAnchor002"></a>.
Is there any way to preserve the text anchor names that show up in InDesign so that they are retained in the EPUB export?
Here's a screenshot of the InDesign document (I opened the new cross-references panel to show that the text anchors appear to be named correctly by the script, which inserted Notes and Hyperlinks at the beginning of each paragraph):
And of the corresponding lines of the EPUB export:
I'd really appreciate any ideas as to how to get the <a/> tags in the EPUB to match the names of the hyperlinks in InDesign--thanks!
OK, so on further testing, the above issue is resolved if I downgrade to InDesign CS6 (and probably some earlier versions too)--the named text anchors export correctly to identically named <a/> tags--just not in InDesign CC 2015.
It seems like in CC 2015 the <a/> tags are auto-named with ascending numbers as _idTextAnchor001, ...002, ...003, and so on, same as footnotes. And presumably there's no way to change or override that.
Nice find. This is pretty aggravating, I'd like to be able to use the latest CC...
How do we get Adobe to revert this behavior?
I have tested this in CC 2014 and it still works in that version.