0 votes
224 views

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 by (164 points) | 224 views

1 Answer

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.

by (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 ~"

Related questions

0 votes
1 answer 62 views
In an RTL Paratext project, I have not found any combination of Scripture Reference Settings and verse text and module ... must be a way for Paratext to get this right?
Denny Emser 115 asked 3 d ago
0 votes
1 answer 338 views
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
asked May 24, 2023
0 votes
3 answers 852 views
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 asked Mar 17, 2021
0 votes
3 answers 332 views
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 asked Aug 28, 2017
0 votes
2 answers 575 views
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 asked Oct 5, 2016
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And over all these virtues put on love, which binds them all together in perfect unity.
Colossians 3:14
3,049 questions
6,007 answers
5,672 comments
2,029 users