最近,一位队友对我说:“我们以前使用过短语 XYZ,但在某个时候将其删除了。你知道我们是在哪里使用它的,以及我们是什么时候删除它的吗?”
据我所知,在 Paratext 内部没有办法进行这样的搜索。如果我错了,请纠正我——我很想知道该怎么做!
经过一番尝试和错误,我找到了如何在外部使用 hg Mercurial 工具来完成此操作。从项目文件夹的根目录运行命令
hg grep --all -I '*.SFM' 'XYZ'
其中 --all 表示“搜索所有修订版本”,-I '*.SFM' 表示“仅查看以 .SFM 结尾的文件”,而你的搜索词是 XYZ。
如果 XYZ 是 ASCII 字符,我能够在 Windows 上成功运行搜索。要搜索 Unicode 字符,我唯一能使其正常工作的方法是在 Linux 中运行该工具。
Recently a teammate said to me, “We used to use the phrase XYZ, but deleted it at some point. Do you know where we used it, and when we deleted it?”
To the best of my knowledge there is no way to do such a search inside of Paratext. Please correct me if I’m wrong–I’d love to know how to!
After a bit of trial and error, I was able to figure out how to do it externally using the hg Mercurial tools. From the root of the project folder, run the command
hg grep --all -I '*.SFM' 'XYZ'
Where --all means “search all of the revisions”, -I '*.SFM' means “only look in the files with .SFM endings”, and your search term is XYZ.
If XYZ is ascii, I was able to get the search to work in Windows. To search for unicode the only way I could get it to work was to run the tool inside of Linux.
机器翻译自 English