0 votes
Dear Friends,

Scenario:

1. We are doing typesetting using PA and InDesign

2. Export the text from Paratext to PA and into InDesign

3. In this export process, we wanted to convert those numeric (0-9) which are written in Roman Script into another script called Dzongkha script.

I need your help
Publishing Assistant by (209 points)

1 Answer

0 votes

If you are wishing to convert all of the chapter and verse numbers, and references in the header, PA has menus for selecting the numbering system to use for each of these (Chapter/Verse, and Headers/Footers tab). My understanding is that Dzongkha is written in the Tibetan script. There is a 'Tibetan' option in the number script menu options I referenced.

If you are wishing to convert all numbers in the scripture text itself to Tibetan, that would need to be done carefully via some expressions in changes.txt. The conversion to Tibetan numbers is a one-to-one mapping. This would need to be done carefully so as not to affect markers and chapter / verse numbering.

Before attempting an explanation of the second, is the task you are wishing to do of the first type (chapter, verse, running header), which is already provided for in the UI job options?

by [Expert]
(277 points)
Dear jmkla, I appreciate your answer to my query. I wanted to do it in CHANGES.TXT because I already know how to do it from PA UI. I am kind of not sure how to write the code. It is the parallel reference (\r) or anywhere else where there's a combination of TEXT and NUMERIC, wanted to convert just the numeric portion. I know that this needs to be done through CHANGES.TXT but I am stuck on how to write the code in this file.

I need your help. Thank you
OK. There may be a simpler way to do this, but here is something I have tried. It's tricky because if you want to convert ALL numbers, you still need to preserve some arabic numbers within markers and chapter and verse numbers (which will be handled by PA).

In changes.txt, add the following lines:

----------
# 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.
"@" > ""
----------
Thank you very much. I tried it out and it was working perfectly. Once again I appreciate your kind help very much.
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
So Peter was kept in prison, but the church was earnestly praying to God for him.
Acts 12:5
2,628 questions
5,369 answers
5,045 comments
1,420 users