0
163 次浏览
各位朋友,

场景:

1. 我们正在使用 PA 和 InDesign 进行排版

2. 将文本从 Paratext 导出到 PA,再导入 InDesign

3. 在这个导出过程中,我们希望将那些用罗马文字书写的数字(0-9)转换为另一种文字,即宗卡文(Dzongkha script)。

我需要你们的帮助
机器翻译自 English
General (220 分) 发布 | 163 次浏览

1 个回答

0

如果您希望转换所有章节和节号以及页眉中的引用,PA 有菜单可以选择用于这些部分的编号系统(章节,以及 页眉/页脚 选项卡)。据我了解,宗卡文是用藏文书写的。在我提到的数字文字菜单选项中,有一个“藏文”选项。

如果您希望将经文文本本身中的所有数字转换为藏文,这需要通过 changes.txt 中的一些表达式仔细完成。转换为藏文数字是一一对应的映射。这需要仔细操作,以免影响到标记和章节/节号。

在尝试解释第二种情况之前,您希望执行的任务是否属于第一种类型(章节、页眉),即 UI 作业选项中已经提供的类型?

机器翻译自 English
[Expert]
(290 分) 发布
亲爱的 jmkla,感谢您对我的问题的回答。我想在 CHANGES.TXT 中完成,因为我已经知道如何从 PA UI 中操作。我不太确定如何编写代码。这是平行引用(\r)或任何其他地方,只要有文本和数字的组合,我就想只转换数字部分。我知道这需要通过 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 发布 提问于 十一月 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 发布 提问于 四月 7, 2020
+1
1 个回答 341 次浏览
在翻译《列王纪上》第 7 章时,当我们用数字表示数量时,希望使用分数,例如在 7:10 中: Aitoka sae ale ateva laghe atoka siola namungaili atu, kasina aluseaane erooroo kotolu me ... 符,以及标点符号 似乎没有办法说明分数可以是数字 是否有我遗漏的进一步设置?
JohnBrownie 385 发布 提问于 十月 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 发布 提问于 三月 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 发布 提问于 五月 26, 2017
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They all joined together constantly in prayer, along with the women and Mary the mother of Jesus, and with his brothers.
Acts 1:14
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户