0
320 次瀏覽

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 點) 提出
已重新顯示 | 320 次瀏覽

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 標記大多位於節號附近或其中: \v ... 候被更改了 Paratext 可以設定為顯示隱形控制字元嗎? 就我所知,基本檢查(Basic Checks)並未偵測到這些 RTL 標記
[Moderator]
Nathaniel Paulus
158 提出
已提問 5月 24, 2023
0
2 個回答 272 次瀏覽
最近,搜尋(Ctrl-F)和取代(Ctrl-H)功能無法找到搜尋詞的所有出現位置。這與範圍設定(章節、書卷、全部)無關,即使在選定的範圍內也是如此。(PT 9.2.102.13)
anon015155 153 提出 已提問 5月 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 提出 已提問 7月 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 提出 已提問 8月 20, 2018
0
1 個回答 37 次瀏覽
在一個 RTL 的 Paratext 專案中,我尚未找到任何能同時正常運作的經文參考設定(Scripture Reference Settings) 經文文字與模組規定的組合 經文參考必須在章節分隔符(:) 節範圍分隔符 ... Assistant 等)中加入規則以插入 RTL 標記 但 Paratext 應該有辦法正確處理這個問題吧?
Denny Emser 115 提出 已提問 3 小時
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For we were all baptized by one Spirit so as to form one body—whether Jews or Gentiles, slave or free—and we were all given the one Spirit to drink.
1 Corinthians 12:13
3,047 個問題
6,007 個回答
5,672 則評論
2,027 位使用者