0
319 次浏览

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.4k 分) 发布
已重新显示 | 319 次浏览

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.4k 分) 发布

相关问题

0
1 个回答 332 次浏览
我提供技术支持的一个项目中,在不该出现 RTL 标记的地方散布着许多 RTL 标记 该项目是一个 RTL 项目的回译,但所有文本均为英文 我不知道这些标记是如何出现的,但我注意到 RTL 标记大多位于经文编号内 ... 了变化 能否让 Paratext 显示不可见的控制字符? 据我所知,基本检查(Basic Checks)并没有捕获到这些 RTL 标记
[Moderator]
Nathaniel Paulus
158 发布
提问于 五月 24, 2023
0
2 个回答 272 次浏览
最近,搜索(ctrl-F)和替换(ctrl-H)功能无法找到搜索词的所有出现位置。这与范围设置(章节、书卷、全部)无关,即使在选定的范围内也是如此。(PT 9.2.102.13)
anon015155 153 发布 提问于 五月 20, 2022
+1
1 个回答 230 次浏览
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 发布 提问于 七月 13, 2017
0
8 个回答 1.5k 次浏览
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
1 个回答 37 次浏览
在一个 RTL Paratext 项目中,我尚未找到任何一组《圣经》引用设置 经文文本和模块规范能够完美协同工作 《圣经》引用必须在章节-节分隔符(:) 节范围分隔符(-)和章节范围分 ... 例如在 Scripture App Builder Publishing Assistant 等中 但 Paratext 一定有一种正确的方法来处理这个问题,对吧?
Denny Emser 115 发布 提问于 3 小时
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 个问题
6,007 个回答
5,672 条评论
2,027 位用户