Hi CrazyRocky & anon719148
You can have multiple find/replaces stored in a file and run an
expression that points to that file in RegExPal. The syntax is to use
"–>"and then point to the filename with the replaces in the find box.
Similar to the following:
–>\Users\HastyDR\Desktop\smallcaps.txt
Note: I don’t think it works if the path name contains any spaces, which
is why I chose to place the file on my desktop.
In that file place statements similar to the following for all lower to
uppercase combinations in your language.
(?<=\\sc\s[^\\]*?)a-->A
(?<=\\sc\s[^\\]*?)e-->E
(?<=\\sc\s[^\\]*?)i-->I
Once the file is created, run RegExPal and place -->filenamein the find
box and run as a replace. Note that this kind of replace ignores any
text that may be in the replace dialog box.
See the sample in the following screen capture of the RegExPal screen below.
The way this change works is that it stops on the first match in a
chapter and selects the rest of the chapter. You will see each of the
changes in the replacement highlighted in pink. Notice the lower case
vowels in the highlighted yellow become uppercase in the highlighted pink.
Note that it changes the actual text in the project. Undo the changes by
switching the cases on the match and replace to get back to the original
encoding.
D anon467281
Global Publishing Services
Scripture Typesetting trainer & Regular Expression “specialist”
Dallas, TX
cacnjcfmebdikdkd.png669×513 43.9 KB