0 votes
197 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) | 197 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 304 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 736 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 282 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 526 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
0 votes
1 answer 287 views
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 asked Jul 21, 2016
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And I tell you that you are Peter, and on this rock I will build my church, and the gates of Hades will not overcome it.
Matthew 16:18
3,037 questions
5,994 answers
5,661 comments
2,022 users