3 Replies Latest reply on Jun 16, 2016 4:42 PM by matthewconnor

    How do I preserve named text anchors in EPUB export?

    RosettaBooks Level 1

      Hi,

       

      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):

      screenshot_INDD.JPG

      And of the corresponding lines of the EPUB export:

      screenshot_EPUB.JPG

       

      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!