0 votes
319 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’m finding I can’t match verse range markers with a regex, and on examining the SFM, I’m finding this:

  • \v 7U+200F-8

Where U+200F is the <RTL> marker. It’s clear that this is what is stopping my regex matching. Why is PT putting that in the middle of the USFM code? Just before I checked it with a hex viewer, I deleted and retyped the marker, so PT seems to have inserted the <RTL> afresh.

I was trying to correct verse ranges with stray spaces in them. For the moment I’ve solved the <RTL> problem with a regex like this:

(?<=\\v\W)(\d+)\W*-\W*(\d+)\W*(?=\w) → \1-\2␣

(where “ → ” divides the Find string and the Replace string, and “␣” is a space.)

Ancienne publication - affichée dans sa langue d'origine
Paratext par (1,4k points)
réaffiché | 319 vues

1 Réponse

0 votes
Meilleure réponse

Paratext inserts the RLT marker to get the text to display as most users
have expected it to. The - will appear to be in the wrong location without
it. This has to do with the complications of having LTR strings of numbers
within RTL text.

There have been some who wanted verse references to appear differently than
they do in RTL text, but that would be a feature request.

John+Wickberg
Paratext Support

Ancienne publication - affichée dans sa langue d'origine
par [Administrator]
(3,4k points)

Questions connexes

0 votes
1 réponse 332 vues
Un projet pour lequel je fournis un support technique contient des marques RTL dispersées là où elles n'ont pas leur ... les vérifications de base ne détectaient pas la marque RTL.
[Moderator]
Nathaniel Paulus
158
posée mai 24, 2023
0 votes
2 réponses 272 vues
Récemment, la recherche (Ctrl-F) et le remplacement (Ctrl-H) ne trouvent plus toutes les occurrences du terme recherché. Cela n ... sein de la portée sélectionnée. (PT 9.2.102.13)
anon015155 153 posée mai 20, 2022
+1 vote
1 réponse 230 vues
Here's another challenge for someone - which is hopefully easy to solve. image.png989 87 8.28 KB In the screen-shot above ... PT annoyance, and if so, how did you work around it?
Mark P 3,2k posée juil. 13, 2017
0 votes
8 réponses 1,5k vues
We have a user who has inserted a lot of \pn and some \nd inside of footnotes. We now know we need those to be ... the search to inside of a single footnote? Thank you, MSEAIT/LT
MSEAIT_LT 478 posée août 20, 2018
0 votes
1 réponse 37 vues
Dans un projet Paratext RTL, je n'ai trouvé aucune combinaison de Paramètres de référence biblique, de texte des ... moyen pour que Paratext fasse les choses correctement, non ?
Denny Emser 115 posée il y a 3 heures
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Dear friends, since God so loved us, we also ought to love one another.
1 John 4:11
3,047 questions
6,007 réponses
5,672 commentaires
2,027 utilisateurs