For those of you who are sticking with InDesign CS6, you need to know that InDesign CS6 and prior versions have the unfortunate feature of stripping out embedded index entries when it exports to ePub. As more and more publishers want to produce epub versions of their books, this has become an issue: how do we get linked and active indexes as an output from InDesign?
Olav Martin Kvern wrote a set of Creative Commons scripts for InDesign to help publishers get around this issue. The scripts allow you to build an index outside of InDesign - one that does not use InDesign's markers. Instead, professional indexing software is used (Cindex, Macrex or Sky). You could probably even use Excel, but you won't have an index compiler.
The InDesign scripts put hyperlinks, and notes showing the hyperlink anchor's text, in each paragraph of a book's files. There must be a book file. If the script hits a long paragraph, it puts in a mid-paragraph anchor.
Once the anchored hyperlinks are inserted, there is a script that checks to be sure each hyperlink reflects the current page number. This allows the publisher to freeze the InDesign files, and develop both the print and the epub index from one file.
There is a script for removing notes and starting over, in case of page number errors.
The final script takes an exported index from professional indexing software saved as .txt, and checks each link in the index to be sure there is a matching link in the InDesign files. No typos... therefore hopefully no bad links.
For the print version of the index, there is a GREP routine for making the hyperlinked index into a regular print-style index, so it can be laid out in InDesign, and go to print. This only works if the publisher freezes the files and allow no text rolls in the files while indexing is ongoing. This allows both the print index and the epub index to be created from one file.
Advantages:
The InDesign files can go back to the publisher after the first two steps. As long as major text changes are not done in-house at the publisher's, and the hyperlinks not removed or corrupted, the files can go through last minute copy edits and art tweaks. Text content has to be maintained where it was, or at least on the same page. If text tolls to other pages, the index will be off. Communicating with the indexer can allow the index to be corrected.
When the files are exported by InDesign as epub, the notes are removed, but the hyperlinks remain. With the associated hyperlinked index file generated by the indexing software, a conversion service can create a linked index for the ebook, one that links to the paragraph level.
At the same time the scripts allow for a print index for the print run.
Rigid file control is required, but the result is a hyperlinked index to the paragraph level in epub, and a matching print index.
Disadvantages:
Hyperlinked PDF indexes exported from the InDesign files would only be available with the use of Sonar Activate. There are no InDesign index markers in the files.
If the files have to be changed, reflowed, or edited heavily, the index will have to be updated manually. But, because the index is in professional indexing software, it can be viewed and sorted in page-number or link-number order, and adjusted. These kinds of changes should be minimized, though, because large changes get really tedious and costly.
The scripts rely on professional indexing software, or using Excel to build the index. Using Excel won't deliver a print edition of the index, but it can be done for an epub-only index.
If you want to use the scripts, please contact Wright Information at the email below.
Contact Wright Information at jancw@wrightinformation.com.