0 голосов
313 просмотров

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.)

Старое сообщение — показано на исходном языке
Paratext от (1,4тыс. очков)
снова показан | 313 просмотров

1 ответ

0 голосов
Лучший ответ

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

Старое сообщение — показано на исходном языке
от [Administrator]
(3,4тыс. очков)

Похожие вопросы

0 голосов
1 ответ 331 просмотров
В проекте, которому я оказываю техническую поддержку, по всему тексту разбросаны RTL-знаки там, где им не место. Проект ... , базовые проверки (Basic Checks) не выявляли RTL-знаки.
[Moderator]
Nathaniel Paulus
158
задал вопрос май 24, 2023
0 голосов
2 ответов 264 просмотров
Недавно поиск (Ctrl-F) и замена (Ctrl-H) перестали находить все вхождения поискового термина. Это не связано с настройками ... даже в пределах выбранной области. (PT 9.2.102.13)
anon015155 153 задал вопрос май 20, 2022
+1 голос
1 ответ 226 просмотров
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,2тыс. задал вопрос июл 13, 2017
0 голосов
8 ответов 1,4тыс. просмотров
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 задал вопрос авг 20, 2018
0 голосов
3 ответов 810 просмотров
Я пытаюсь доработать конвертер кодировок .tec, чтобы он был безопасен для многократного применения (round trip) при ... Есть ли какие-либо предложения, как это сделать?
DVM 175 задал вопрос мар 17, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I urge you, brothers and sisters, to watch out for those who cause divisions and put obstacles in your way that are contrary to the teaching you have learned. Keep away from them.
Romans 16:17
3,045 вопросов
6,005 ответов
5,671 комментариев
2,026 пользователей