0
164 次瀏覽
各位朋友,

情境說明:

1. 我們正在使用 PA 和 InDesign 進行排版

2. 將文字從 Paratext 匯出到 PA,再匯入 InDesign

3. 在這個匯出過程中,我們希望將以羅馬文字(0-9)書寫的數字轉換為另一種文字系統,即宗卡文(Dzongkha script)。

我需要你們的幫助
機器翻譯自 English
General (220 點) 提出 | 164 次瀏覽

1 個回答

0

如果您希望轉換所有的章號、節號以及頁眉中的經文引用,PA 提供了選單,可為這些項目選擇要使用的數字系統(章/節,以及 頁眉/頁腳 分頁)。據我了解,宗卡文(Dzongkha)是使用藏文書寫的。在我提到的數字文字系統選單選項中,有一個「藏文」(Tibetan)選項。

如果您希望將經文正文中的所有數字轉換為藏文數字,則需要透過 changes.txt 中的某些表達式謹慎地進行。轉換為藏文數字是一對一的對應關係。這需要謹慎處理,以免影響標記符號以及章/節編號。

在嘗試解釋第二種情況之前,您希望執行的任務是否屬於第一種類型(章、節、跑馬燈頁眉),而這種類型已經在 UI 工作選項中提供了?

機器翻譯自 English
[Expert]
(290 點) 提出
親愛的 jmkla,感謝您對我的提問給予回覆。我之所以想在 CHANGES.TXT 中進行操作,是因為我已經知道如何從 PA UI 中執行此操作。我不太確定如何編寫代碼。這是平行引用(\r)或其他任何包含文字(TEXT)和數字(NUMERIC)組合的地方,我希望只轉換其中的數字部分。我知道這需要透過 CHANGES.TXT 來完成,但我卡在了如何在此檔案中編寫代碼上。

我需要您的幫助。謝謝
機器翻譯自 English
好的。可能有一種更簡單的方法來做到這一點,但以下是我嘗試過的一種方法。這有點棘手,因為如果您想轉換所有數字,您仍然需要保留標記符號以及章號和節號中的一些阿拉伯數字(這些將由 PA 處理)。

在 changes.txt 中,添加以下行:

----------
# An @ sign will be used to identify numbers which should not be converted.
# These expressions find chapter numbers and verse numbers, and places an @ symbol after each number.
"(\\[cv] \d)(\d)(\d)(?=\s)" > "\1@\2@\3@"
"(\\[cv] \d)(\d)(?=\s)" > "\1@\2@"
"(\\[cv] \d)(?=\s)" > "\1@"
# Verse ranges
"(\\v (?:\d@)+-\d)(\d)(\d)" > "\1@\2@\3@"
"(\\v (?:\d@)+-\d)(\d)" > "\1@\2@"
"(\\v (?:\d@)+-\d)" > "\1@"

# Place an @ symbol after each number within USFM numbered markers.
"(\r?\n\\[^\d \r\n]+\d)([ \r\n])" > "\1@\2"

# These expressions find numbers which are not followed by an @ symbol, and converts them to Tibetan numbers.
in "\d+(?!@)": "0" > "\u0F20"
in "\d+(?!@)": "1" > "\u0F21"
in "\d+(?!@)": "2" > "\u0F22"
in "\d+(?!@)": "3" > "\u0F23"
in "\d+(?!@)": "4" > "\u0F24"
in "\d+(?!@)": "5" > "\u0F25"
in "\d+(?!@)": "6" > "\u0F26"
in "\d+(?!@)": "7" > "\u0F27"
in "\d+(?!@)": "8" > "\u0F28"
in "\d+(?!@)": "9" > "\u0F29"

# Now, get rid of the @ symbols.
"@" > ""
----------
機器翻譯自 English
非常感謝。我試了一下,它運作得完美無瑕。再次非常感謝您的熱心幫助。
機器翻譯自 English

相關問題

0
2 個回答 468 次瀏覽
I was creating a new project in Paratext 8 and set the font in the project Language Settings window. After selecting the ... 58.2 KB ! Main Paratext text window.jpg1366 728 102 KB
TSNgaihte 220 提出 已提問 11月 13, 2019
+1
1 個回答 255 次瀏覽
In PT9 when I select a book, wait for the drop down to go away and the book to appear in the box, highlight the chapter ... going to be faster, but it's just the same as PT8.)
anon953007 213 提出 已提問 4月 7, 2020
+1
1 個回答 341 次瀏覽
在翻譯《列王紀上》第 7 章時,當我們以數字形式呈現數值時,希望使用分數,例如 7:10: Aitoka sae ale ateva laghe atoka siola namungaili atu, kasina aluseaane erooroo kotolu me ... 點符號 似乎沒有辦法說明分數可以是數字的一部分 是否有我遺漏的進一步設定?
JohnBrownie 385 提出 已提問 10月 16, 2023
+1
3 個回答 445 次瀏覽
Hi, How to calculate number of words in chapter or in one book. It should not include marking.
Prabhu_beelagi 241 提出 已提問 3月 20, 2020
0
1 個回答 226 次瀏覽
We've installed Paratext 8 and the program seemed to try to install the patch twice but there was no progress bar ... version 8.0.100.6 Any suggestions for applying the patch?
dcb 194 提出 已提問 5月 26, 2017
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They devoted themselves to the apostles’ teaching and to fellowship, to the breaking of bread and to prayer.
Acts 2:42
3,045 個問題
6,005 個回答
5,671 則評論
2,026 位使用者