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 標記大多位於節號附近或其中: \v ... 候被更改了 Paratext 可以設定為顯示隱形控制字元嗎? 就我所知,基本檢查(Basic Checks)並未偵測到這些 RTL 標記
[Moderator]
Nathaniel Paulus
158 提出
已提問 5月 24, 2023
0
2 個回答 264 次瀏覽
最近,搜尋(Ctrl-F)和取代(Ctrl-H)功能無法找到搜尋詞的所有出現位置。這與範圍設定(章節、書卷、全部)無關,即使在選定的範圍內也是如此。(PT 9.2.102.13)
anon015155 153 提出 已提問 5月 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 提出 已提問 7月 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 提出 已提問 8月 20, 2018
0
3 個回答 810 次瀏覽
我正在嘗試微調一個 .tec 編碼轉換器,以確保它對於從右到左(RTL)語言專案的從左到右(LTR)轉寫而言是安全的往返操作 (這使得能夠與原文進行比較,以確保拉丁字母側正字法上的調整沒有對文本引入任何更改 ) 這方面的主要障礙是 ... 用正則表達式來完成,但為了方便那些不熟悉 RegexPal 的人,我希望將其自動化 關於如何做到這一點,有什麼建議嗎?
DVM 175 提出 已提問 3月 17, 2021
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,045 個問題
6,005 個回答
5,671 則評論
2,026 位使用者