View Single Post
Old 12-12-2021, 02:46 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,828
Karma: 6120478
Join Date: Nov 2009
Device: many
Yes, the Index Editor was just meant to do the grunt work. Once all words are marked and the index.xhtml has been created once, then you will need to edit the resulting index.xhtml and NOT regenerate the index or you will lose all changes. Then you will need to use regular expression search and replaces to add the "See also text and if desired links to it *inside* the index.

If the number of these to handle is too large, then think about creating the list of search and replacement regular expressions in Excel and then export it as CSV and importing from CSV into Sigil's Saved Searches and the running that Saved Search List (once).

To see the required columns for Saved Searches, select a current set of saved searches and output them to csv and visually inspect it first.

I have taken a text paired word list and used perl/python to create the search entries I wanted, imported it into Excel for cleanup and then loaded it into Sigil's Saved Searched and then ran them on the current file (index.html)

Don't forget to make a Checkpoint of your epub just before running your imported saved search in case you make mistakes and need to retry after reverting to the Checkpoint.

Last edited by KevinH; 12-12-2021 at 03:00 PM.
KevinH is online now   Reply With Quote