0 votos
313 visualizações

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

Publicação antiga - exibida no idioma original
Paratext por (1,4k pontos)
reexibida | 313 visualizações

1 Resposta

0 votos
Melhor resposta

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

Publicação antiga - exibida no idioma original
por [Administrator]
(3,4k pontos)

Perguntas relacionadas

0 votos
1 resposta 331 visualizações
Um projeto para o qual estou prestando suporte técnico tem marcas RTL espalhadas por onde não deveriam estar. O ... , as verificações básicas não estavam detectando a marca RTL.
[Moderator]
Nathaniel Paulus
158
perguntada Mai 24, 2023
0 votos
2 respostas 264 visualizações
Recentemente, a busca (Ctrl-F) e a substituição (Ctrl-H) não estão mais encontrando todas as ocorrências do termo pesquisado ... mesmo dentro do escopo selecionado. (PT 9.2.102.13)
anon015155 153 perguntada Mai 20, 2022
+1 voto
1 resposta 226 visualizações
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 perguntada Jul 13, 2017
0 votos
8 respostas 1,4k visualizações
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 perguntada Ago 20, 2018
0 votos
3 respostas 810 visualizações
Estou tentando ajustar um conversor de codificação .tec para que ele seja seguro para ida e volta (round trip) ... com o RegexPal. Alguma sugestão de como fazer isso?
DVM 175 perguntada Mar 17, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
If anyone destroys God’s temple, God will destroy that person; for God’s temple is sacred, and you together are that temple.
1 Corinthians 3:17
3,045 perguntas
6,005 respostas
5,671 comentários
2,026 usuários