嗨,CrazyRocky 和 anon719148
您可以在檔案中儲存多個搜尋/取代規則,並在 RegExPal 中執行指向該檔案的
表達式。語法是使用
"–>",然後在搜尋框中指向包含取代規則的檔案名稱。
類似以下範例:
–>\Users\HastyDR\Desktop\smallcaps.txt
注意:如果路徑名稱包含任何空格,我認為它不會運作,
這就是為什麼我選擇將檔案放在桌面上。
在該檔案中,針對您語言中所有小寫到大寫的組合,
放置類似以下陳述式的內容。
(?<=\\sc\s[^\\]*?)a-->A
(?<=\\sc\s[^\\]*?)e-->E
(?<=\\sc\s[^\\]*?)i-->I
建立檔案後,執行 RegExPal,在搜尋框中輸入 -->filename
並作為取代執行。請注意,這種類型的取代會忽略
取代對話框中可能存在的任何文字。
請參閱下方 RegExPal 螢幕截圖中的範例。
此變更的運作方式是,它會在章節中的第一個匹配處停止,
並選取該章節的其餘部分。您會看到每個
取代變更都以粉紅色突出顯示。請注意,黃色突出顯示中的小寫
元音在粉紅色突出顯示中變成了大寫。
請注意,這會變更專案中的實際文字。透過
切換匹配和取代的大小寫來復原變更,以恢復
原始編碼。
D anon467281
Global Publishing Services
聖經排版訓練師 & 正規表達式「專家」
德州達拉斯

cacnjcfmebdikdkd.png669×513 43.9 KB
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
機器翻譯自 English