有些项目在一段时间后会决定不希望脚注末尾出现句号或其他句末标点。使用查找和替换是显而易见的方法。然而,在句号和脚注结束标记“\f*”之间很容易出现多余的空格。
要查找所有脚注末尾的句号,无论句号和 USFM “\f*” 之间有多少个空格(包括没有空格),都需要使用正则表达式。
正则表达式 \.\s?\\f\* 将查找所有脚注末尾的句号,无论句号和 \f* 之间有多少个空格。
可以通过多种方式执行此查找和替换,但如果在 Paratext 的“查找和替换”对话框的查找框中输入“regex:”,则可以使用简单的正则表达式。
步骤:
按快捷键 Ctrl+h 打开“查找和替换”对话框。
在查找框中输入 regex:\.\s?\\f\*。
在替换框中输入 \f*。
确认 Match in: 框设置为 All text 。
设置要删除句号的书籍范围。
将限制(Restrictions)设置为 No Restrictions 。
点击 Replace 按钮。
Find-Replace dialogue-2 1281×1429 202 KB
示例:删除创世记中所有脚注末尾的句号
逐步检查每个建议的更改,并根据情况点击“是”或“否”。
管理员编辑:已修复帖子格式。
Some projects after some time decide that they do not want periods or other sentence final punction at the end of their footnotes. Using find and replace is the obvious method. However, it is easy to have extra spaces between the period and the end of footnote marker “\f*”.
To find all periods at the end of footnotes regardless of the number of spaces (including none) between the period and the USFM “\f*”, a regular expression is needed.
The regular expression \.\s?\\f\* will find all periods at the end of footnotes regardless of the number of spaces between the period and \f*.
This find and replace can be done by various means, but it is possible to use simple regular expressions in Paratext’s Find and Replace dialogue, if “regex:” is typed in the Find box.
Procedure:
Open the Find and Replace dialogue by typing the shortcut key Ctrl+h.
Type regex:\.\s?\\f\* in the Find box.
Type \f* in the replace box.
Verify that the Match in: box is set to All text .
Set the range for the book or books where you want to delete the periods.
Set Restrictions to No Restrictions .
Click on the Replace button.
Find-Replace dialogue-2 1281×1429 202 KB
Example of remove final periods for all footnotes in Genesis
Step through each proposed change clicking Yes or No as appropriate.
Admin Edit: Fixed formatting of post.
机器翻译自 English 显示原文