0
350 次瀏覽

在一個專案中,我們使用 \tl … \tl* 來標記從英文轉寫過來的詞彙。這些詞彙相當常見,包括「乳香」、「聖殿」和「驢子」等。我們標記它們,是因為它們的拼寫與口語詞彙有相當大的差異。

現在我在想,是否有辦法檢查這些詞彙是否被一致地標記了。就我所知,唯一的方法是手動操作:列出所有用 \tl 標記的詞彙,然後將每個詞彙搜尋兩次:

  • 搜尋 temple

  • 搜尋 \tl temple\tl*,並從清單中移除命中的項目。

任何剩餘的命中項目(除了出現在圖說、檔案名稱等情況外)可能都是錯誤的。

有沒有更簡單的方法來檢查這一點?

我不確定這種 \tl 的用法是否常見——如果是的話,Paratext 中若能預先提供這種檢查功能會很棒。但如果這只涉及少數使用者,額外建立檢查功能可能不值得花力氣……

Paulus+Kieviet

機器翻譯自 English
Paratext (517 點) 提出
已重新顯示 | 350 次瀏覽

2 個回答

0
最佳回答

嗨 Paulus+Kieviet,

我會使用 RegexPal 的 Find/Replace 功能,類似這樣:

Find: (?<!\\tl )(incense|temple|donkey)
Replace: \tl \1\tl*

這將找到任何未被 ‘\tl’ 前置的 ‘incense’、’temple’ 或 ‘donkey’ 的出現。
替換操作會在找到的詞彙周圍加上 ‘\tl…\tl*’。
如果兩個轉寫詞彙連續出現,例如 ’temple incense’,這個簡單的搜尋可能會遇到問題。

LivingField

機器翻譯自 English
(607 點) 提出
已重新顯示

嗨 LivingField,

感謝您的回覆。這確實是找到沒有 \tl 標記實例的更快方法。感謝您的幫助!

這行確實需要一些調整;經過一些試錯後,我得出以下結果:

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

Replace: \tl \1\tl*

\b 是用來防止它找到 “\tl frankincense” 的。

不可避免地會有一些誤報(例如圖片說明、檔案名稱和圖片描述中的 “temple” 一詞,以及被 +tl … +tl* 包圍的腳註情況),但只要我不點擊「Yes to all」,這就沒問題。當然,也可以只使用 RegEx Pal 來找到實例,而不立即替換它們。

Paulus+Kieviet

機器翻譯自 English

抱歉,我沒有貼上 Regex Pal 中正確的 Find 和 Replace 行。最終我得出以下結果:

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

Replace with: \tl \1\tl*

(在 Find 框中,我省略了 “tl” 前面的反斜線——這樣它也會忽略腳註中的 “\+tl incense”。許多轉寫詞彙恰好會在腳註中解釋:ephah, talent, denarius 等等。)

這在任何不以 “tl” 結尾的語言中都能運作。我想很少有語言允許 “tl” 結尾……

Paulus+Kieviet

機器翻譯自 English
0

供參考,Regex Pal 位於主選單,而非專案選單:Paratext menu > Advanced > Regex Pal

您可能希望在 RegexPal 進行變更前後,自行執行「Mark point in history」。RegexPal 確實會在專案歷史中標記一個點,但它只顯示「Before Regex Pal Modifications」,這無法告訴您做了哪些變更,因此如果需要,在歷史記錄中定位可能會比較困難。

image

james_post

機器翻譯自 English
[Moderator]
(2.1k 點) 提出

相關問題

0
1 個回答 180 次瀏覽
似乎我上一則訊息中的某些反斜線被我的電子郵件程式刪除了。我建議的字串是: [backslash]tl [backslash]+w donkey[backslash]+w*[backslash]tl* [backslash]w [backslash]+tl donkey[backslash]+tl*[backslash]w* Paulus+Kieviet
Paulus Kieviet 517 提出 已提問 11月 3, 2022
0
2 個回答 340 次瀏覽
我在腳註中使用 \tl \tl* 來標記音譯的外來詞(希臘文和希伯來文) 其中一個腳註如下: \f + \fr 16.13 \fq mani \ft ... publishable nonvernacular \StyleType Character \FontSize 12 \Italic 為什麼我會收到這個錯誤? john_nystrom
john_nystrom 312 提出 已提問 8月 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 提出 已提問 3月 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 提出 已提問 9月 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 提出 已提問 8月 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 位使用者