0 votes
100 views
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
General by (220 points) | 100 views

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]
(290 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.

Related questions

+1 vote
1 answer 237 views
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 asked Apr 7, 2020
+1 vote
1 answer 311 views
In translating 1 Kings 7, we want to use fractions when we give the number as numerals, e.g. in 7:10: Aitoka ... can be numbers. Is there some further setting that I have missed?
JohnBrownie 385 asked Oct 16, 2023
+1 vote
3 answers 408 views
Hi, How to calculate number of words in chapter or in one book. It should not include marking.
Prabhu_beelagi 241 asked Mar 20, 2020
0 votes
1 answer 201 views
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 asked May 26, 2017
0 votes
2 answers 340 views
Is there any way to generate a list that shows how many notes are in each chapter? I can find out by clicking ... things like planning how many chapters I should check per day.
skim1124 219 asked Sep 22, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Just as a body, though one, has many parts, but all its many parts form one body, so it is with Christ.
1 Corinthians 12:12
3,037 questions
5,994 answers
5,661 comments
2,022 users