@sjhawar:
IMHO, the easiest solution would be to import a Saved Search group. The Saved Search .ini format is pretty straightforward and can be easily generated from a list with a spreadsheet program or a script.
A typical Save Search file looks like this:
Code:
[search_entries]
1\Name=Group Name/Search Name
1\Find=Find1
1\Replace=Replace1
2\Name=Group Name/Search Name
2\Find=Find2
2\Replace=Replace2
size=2
I converted your sanskrit list to a simple Saved Search file and attached it to this post. Note that since this Saved Search contains regular expressions, you'll need to enable the Regex mode in the Find and Replace window.
To import and use a Saved Search:
1. Press CTRL+F to display the Find and Replace window and select Regex, if isn't already selected.
2. Unzip sanskrit.ini from sanskrit.ini.zip.
3. Select Tool > Saved Searches.
4. Right-click in the Saved Searches window, select Import and import sanskrit.ini. This should create an Imported group, if it doesn't already exist. (The group might also be added as a subgroup to the first selected Saved Search group.)
5. Click Imported, highlight Sanskrit and click Load Search.
6. In the Saved Searches window, click Find followed by Replace or Replace/Find.
If you didn't use italics elsewhere in the book you could also click Replace All and then double-check all italics tags.
It goes without saying, that you should make a backup of your book, before testing this potentially very dangerous method!!!