上周我在研究与专有名词和大写相关的事情时,注意到我无法使用词表中的正则表达式(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