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

相关问题

0
1 个回答 331 次浏览
我提供技术支持的一个项目中,在不该出现 RTL 标记的地方散布着许多 RTL 标记 该项目是一个 RTL 项目的回译,但所有文本均为英文 我不知道这些标记是如何出现的,但我注意到 RTL 标记大多位于经文编号内 ... 了变化 能否让 Paratext 显示不可见的控制字符? 据我所知,基本检查(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.2k 发布 提问于 七月 13, 2017
0
8 个回答 1.4k 次浏览
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 编码转换器,以便使其对于从左到右(LTR)音译一个从右到左(RTL)语言项目来说是往返安全的 (这使得可以与原文进行比较,以确保拉丁字母一侧正字法上的调整没有引入任何文本变化 ) 主要障碍是出现在经文 ... 用正则表达式做到这一点,但为了那些不熟悉 RegexPal 的人,我希望使其自动化 关于如何做到这一点,有什么建议吗?
DVM 175 发布 提问于 三月 17, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Finally, all of you, be like-minded, be sympathetic, love one another, be compassionate and humble.
1 Peter 3:8
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户