View Single Post
Old 10-20-2016, 06:15 AM   #14
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,745
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
@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!!!
Attached Files
File Type: zip sanskrit.ini.zip (3.2 KB, 275 views)

Last edited by Doitsu; 10-20-2016 at 06:18 AM.
Doitsu is offline   Reply With Quote