0 votes
156 vues
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 par (220 points) | 156 vues

1 Réponse

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?

par [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.

Questions connexes

0 votes
2 réponses 467 vues
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 posée nov. 13, 2019
+1 vote
1 réponse 255 vues
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 posée avr. 7, 2020
+1 vote
1 réponse 333 vues
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 posée oct. 16, 2023
+1 vote
3 réponses 440 vues
Hi, How to calculate number of words in chapter or in one book. It should not include marking.
Prabhu_beelagi 241 posée mars 20, 2020
0 votes
1 réponse 224 vues
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 posée mai 26, 2017
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,044 questions
6,003 réponses
5,671 commentaires
2,026 utilisateurs