0 votes
218 vues

I am typesetting a Gospel and a Glossary. The language is RTL but in the Glossary there are some LTR embeddings. These embeddings work correctly in Paratext, but the PTXprint output has a problem as this picture will show:

image

Because I do not see most images in this forum, I am not confident you do either. So, here is a verbal explanation. The body text is in Arabic script, but inserted are the following items in Roman script (including the square brackets): [Bible], [Old Testament] and [New Testament], each surrounded by Arabic script text. The single word [Bible] displays correctly, but the other two display  Testament] [Old  and  Testament] [New

I have unsuccesfully tried inserting some RTL and LTR markers in the text, but wil not get the correct result. Does anybody have any advice how to do this?

Why does Paratext display this text correcty but PTXprint does not?

PTXprint par (164 points) | 218 vues

1 Réponse

0 votes

Yes, it is certainly getting muddled with the LTR text in the middle of an RTL block of text. Here is a way to solve that by using a changes.txt rule:

at GLO "(\([a-zA-Z\s]+\))" > "\\beginL \1 \\endL"

This is very specific to your situation, and may need to be tweaked to be more useful in other situations; but it says, (only in the GLO book) search for ( open parenthesis followed by one or more latin characters or space, followed by a closing parenthesis ). Wrap what has been found in these special markers \beginL ...\endL which will change the flow of the text.

par (3,2k points)
Thank you Mark, your answer was extremely helpful!
Here is an improved version which might be more helpful in certain situations:
at GLO "(\([a-zA-Z]+?)\s([a-zA-Z]+?\))" > "\\beginL \1 \2 \\endL ~"

Questions connexes

0 votes
1 réponse 326 vues
A project I've been providing technical support to has RTL marks sprinkled throughout where they don't belong. The ... tell, the basic checks were not catching the RTL mark.
[Moderator]
Nathaniel Paulus
158
posée mai 24, 2023
0 votes
3 réponses 796 vues
I am trying to fine tune a .tec encoding converter to make it round trip safe for a Left-to-Right transliteration ... familiar with RegexPal. Any suggestions of how to do this?
DVM 175 posée mars 17, 2021
0 votes
3 réponses 318 vues
We just recently migrated a set of parallel Roman/Arabic script projects. Note that the parallel is manual , not a PT8 ... problem anyway. I'd appreciate any help you can give me.
jeffh 1,4k posée août 28, 2017
0 votes
2 réponses 546 vues
In a right-to-left project, if I type a verse range in a footnote, e.g. 1-2 , Paratext inserts an invisible RTL marker ... make the Numbers check pass? (I'm using 7.6 for Linux.)
anon261123 180 posée oct. 5, 2016
0 votes
1 réponse 309 vues
I'm working for the first time in PT with a right-to-left language project (I've only used RTL resources up to now). I ... Find string and the Replace string, and ␣ is a space.)
wdavidhj 1,4k posée juil. 21, 2016
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Very truly I tell you, whoever accepts anyone I send accepts me; and whoever accepts me accepts the one who sent me.
John 13:20
3,044 questions
6,003 réponses
5,671 commentaires
2,026 utilisateurs