上週我在研究與專有名詞和大寫相關的事情時,注意到我無法使用詞表中的正規表示式(regex)功能來顯示所有大寫的條目。我遇到了完全出乎意料的行為。
通常,我在詞表以及 PT 的其他地方使用正規表示式都能得到非常有幫助的結果。我(再次)在說明文件中查找了一些範例,以確認 PT9 的語法,我嘗試了 ^[\p{Lu}],但沒有成功,沒有任何命中,方框變紅。但當我嘗試 ^[\p{Ll}] 時,搜尋方框變綠,我得到了許多結果,包括像 “Aaɖi” 這樣的搜尋結果,這感覺不對。
該功能存在,只是缺少大寫功能。例如,^\p{Lu}{5,5}$ 只給我所有五個字母的單字,符合預期,但同樣地,它混合了像 “Afʊmɩ” 這樣的錯誤結果。
我有一種預感,關於大寫的內部資料比 GUI 顯示的更複雜。但如果是這樣,最好能有相關的說明文件,而不是花時間對一個由我自己組織開發的工具進行「研究」。
我還注意到,即使在 PT9 中,我也找不到正規表示式工具,即使我按照內建說明這樣做:
在特定專案中使用 RegEx Pal
要在特定專案中使用 Paratext RegEx Pal,請執行以下操作:
- 點擊該專案的標籤,使其成為活動標籤。
- 開啟 Paratext RegEx Pal。(點擊主選單圖示 ,然後從 Paratext 選單中,指向「進階」(Advanced),並選擇「RegEx Pal」。)
我通常使用自己付費的工具,但不介意用內建的「助手」來「調整」我的工具。
感謝您對詞表中大寫問題的任何輸入。
I was researching something related to proper names and capitalization last week and noticed that I cannot get the regex feature in the wordlist to show me only all the capitalized entries. I get totally unexpected behaviour.
Normally I get very helpful results with regex, in the wordlist and elsewhere in PT. I (again) looked up some examples in the help to confirm flavour for PT9 andI tried ^[\p{Lu}] and got no joy, not a single hit, box turns red. But when I try ^[\p{Ll}] the search box turns green and I get many results, including things like “Aaɖi” as a search result, which does not feel right.
The functionality is there, minus the capitalisation. For example ^\p{Lu}{5,5}$ is giving me only all the five-letter-words as expected, but again it mixes results like “Afʊmɩ” which is wrong.
I have a hunch that the internal-data for the capitalisation is somehow more complex that what the GUI is showing. But then it would be nice to have documentation for that, rather than spending time doing “research” on a tool that is built by my own org.
I also noticed that I cannot find the regex tool in PT9, even following the inbuilt help like this:
Using RegEx Pal in a particular project
To use Paratext RegEx Pal in a particular project, do the following:
- Click the tab of that project to make it the active tab.
- Open Paratext RegEx Pal. (Click the main menu icon , then from the Paratext menu, point to Advanced, and select RegEx Pal.)
I am normally using my own paid tools, but would not mind “tuning” my tools against the inbuilt “helper”.
Thank you for any input about the capitalization in the wordlist.
機器翻譯自 English