最近一位隊友跟我說:「我們以前使用過 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