0
349 次浏览

在一个项目中,我们使用 \tl … \tl* 来标记从英语音译过来的词。这些词相当常见,包括“incense”(乳香)、“temple”(圣殿)和“donkey”(驴)等术语。我们标记它们,是因为它们的拼写与口语词汇差异很大。

现在我在想,是否有办法检查这些词的标记是否一致。据我所知,唯一的方法是手动操作:列出所有用 \tl 标记的词,然后对每个词搜索两次:

  • 搜索 temple

  • 搜索 \tl temple\tl*,并从列表中移除命中的项。

剩下的命中项(除了出现在图片说明、文件名等情况中的)可能都是错误的。

有没有更简单的方法来检查这一点?

我不知道这种 \tl 的用法是否常见——如果是的话,Paratext 中最好能直接提供这种检查功能。但如果只有少数用户关心这个问题,额外构建一个检查功能可能不值得投入精力……

Paulus+Kieviet

机器翻译自 English
Paratext (517 分) 发布
已重新显示 | 349 次浏览

2 个回答

0
最佳答案

你好 Paulus+Kieviet,

我会使用 RegexPal 的查找/替换功能,类似这样:

查找: (?<!\\tl )(incense|temple|donkey)
替换: \tl \1\tl*

这将找到任何未被 ‘\tl’ 前置的 ‘incense’、’temple’ 或 ‘donkey’ 的出现。
替换操作会在找到的词周围添加 ‘\tl…\tl*’。
如果两个音译词连续出现,例如 ’temple incense’,这种简单的搜索可能会遇到问题。

LivingField

机器翻译自 English
(607 分) 发布
已重新显示

你好 LivingField,

谢谢你的回复。这确实是一种更快地找到没有 \tl 标记实例的方法。谢谢你的帮助!

这行代码需要一些调整;经过一些尝试和错误,我得到了:

查找: (?<!\tl )\b(incense|temple|donkey)

替换: \tl \1\tl*

\b 是为了防止它找到“\tl frankincense”。

不可避免地会有一些误报(例如图片说明、文件名和图片描述中的单词“temple”,以及被 +tl … +tl* 包围的脚注中的情况),但只要我不点击“全部是”(Yes to all),这就没关系。当然,也可以只使用 RegEx Pal 来查找实例,而不立即替换它们。

Paulus+Kieviet

机器翻译自 English

抱歉,我没有粘贴 Regex Pal 中查找和替换行的正确版本。最终我得到了:

查找: (?<!tl )\b(word1|word2|etc)\b

替换为: \tl \1\tl*

(在查找框中,我省略了“tl”前面的反斜杠——这样它也会忽略脚注中的“\+tl incense”。许多音译词恰好在脚注中有解释:ephah(伊法)、talent(他连得)、denarius(第纳利)等等。)

这在任何不以“tl”结尾的语言中都能工作。我想很少有语言允许以“tl”结尾……)

Paulus+Kieviet

机器翻译自 English
0

顺便说一下,Regex Pal 在主菜单中,而不是项目菜单中:Paratext 菜单 > Advanced > Regex Pal

在 RegexPal 中进行更改之前/之后,您可能希望自行执行“Mark point in history”(标记历史点)。RegexPal 确实会标记项目历史中的一个点,但它只显示“Before Regex Pal Modifications”(Regex Pal 修改之前),这并没有说明做了哪些更改,因此如果需要,在历史中定位可能会比较困难。

image

james_post

机器翻译自 English
[Moderator]
(2.1k 分) 发布

相关问题

0
1 个回答 180 次浏览
似乎我之前的消息中的一些反斜杠被我的电子邮件程序删除了。我建议的字符串是: [反斜杠]tl [反斜杠]+w donkey[反斜杠]+w*[反斜杠]tl* [反斜杠]w [反斜杠]+tl donkey[反斜杠]+tl*[反斜杠]w* Paulus+Kieviet
Paulus Kieviet 517 发布 提问于 十一月 3, 2022
0
2 个回答 340 次浏览
我在脚注中使用 \tl \tl* 来标记音译的外语(希腊语和希伯来语)单词 其中一个脚注如下所示: \f + \fr 16.13 \fq mani ... publishable nonvernacular \StyleType Character \FontSize 12 \Italic 我为什么会收到这个错误? john_nystrom
john_nystrom 312 发布 提问于 八月 17, 2022
0
3 个回答 265 次浏览
In the Luvale Bible translation (Zambia, Africa), we are using \tl to identify transliterated words, \pn for ... for your help. paulpoid, Luvale Bible Translator, ZBS, Zambia
paulpoid 118 发布 提问于 三月 11, 2019
+1
3 个回答 286 次浏览
Is it possible to embed a closing USFM code within another? For example, it would be helpful to embed \tl \tl* ... amee ménane pe leoolamwamolufe? Eie, mwa. Thanks, SIL+LSS+PNG
SIL LSS PNG 411 发布 提问于 九月 5, 2018
0
1 个回答 305 次浏览
Hello, many of you might rarely use the \tl, so here is the definition from usfmReference2_4.pdf: image.png1174 ... work properly those need to be treated special during checking.
Tim 934 发布 提问于 八月 1, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户