0
368 次瀏覽

我想我應該為這個問題開一個新的主題,而不是在另一個主題的討論中繼續。

我想刪除所有 \s 行(\s、\s1、\s2 等)。這些行是空的。我可以輕鬆刪除標記,但我不確定如何刪除這些行。

以下兩種解決方案已被提出,但沒有起作用:
\s\d? [^\]*(未找到任何 \s 標記)
\s\d? [^\r]+\r\n(逐行刪除所有行,包括經節)

還有其他想法嗎?

機器翻譯自 English
Paratext (127 點) 提出
已重新顯示 | 368 次瀏覽

2 個回答

0
最佳回答

Hi anon928451,

I think those the two RegEx you listed need another \ before \s at the beginning of the line.

Are there any \s which contain text, or are all \s in the project empty?

If they’re all empty, I think you can do a simple text search for \s and replace it with nothing. And then do another search for \s1, etc. You don’t need to use RegEx. Paratext will take care of cleaning up the empty lines. Of course, if you delete the \s and there was actually text after them, you’d be making a bit of a mess.

機器翻譯自 English
(607 點) 提出

完美。我不知道 Paratext 會移除空行。謝謝!

機器翻譯自 English

Just to add to @LivingField’s comment, you should search for \s1, \s2, etc first, and only delete \s as the last thing.

Why? Because if you delete all the \s markers, every \s1 will just turn into a random 1 hanging out in the middle of your text.

0

為了確保清楚,在 RegEx Pal(可在 Paratext 主選單的「進階」下找到)中,你可以搜尋 \\s\d? [^\r]+\r\n 並將其替換為空白,以移除章節標題。這包括了 LivingField 提到的額外反斜線。(之前的發文者可能在撰寫貼文時沒有將正則表達式標記為「預格式化文字」,因此輸出時其中一個反斜線被「吃掉」了。)

回覆 @mnjames,這個正則表達式會自動處理所有形式的章節標題,\s\s1s2 等。正則表達式包含 \d?,這告訴它匹配一個可選的數字,因此可以匹配所有這些章節標題形式。你不需要單獨搜尋 \s 標記。

機器翻譯自 English
(1.4k 點) 提出

相關問題

0
1 個回答 308 次瀏覽
昨天,當使用者開啟 Paratext 9.1 時,出現了以下彈出警告訊息: Le projet Ban sur votre ordinateur n'a pas pu être ouvert. .', valeur hexadécimale 0x00, est ... 可以正常開啟專案,但每次開啟 Paratext 時警告訊息仍然存在 我該如何消除它?
n8_in_car 298 提出 已提問 11月 17, 2021
0
3 個回答 302 次瀏覽
我可以自訂我的回譯(Back Translation)專案的行間距嗎?
Michel 125 提出 已提問 11月 4, 2023
0
2 個回答 399 次瀏覽
對照譯文工具(interlinearizer)中的「詞形解析註釋」(parse gloss)列,其內部資訊是取自哪裡?我開始嘗試使用 Paratext 9.1 的對照譯文工具進行適配,由於更新到 Paratext 9.2 後 ... 形解析註釋」列 我該怎麼辦? 2022-03-04 11_21_20-Paratext 9.21264 269 13.6 KB
anon297911 424 提出 已提問 3月 4, 2022
0
1 個回答 275 次瀏覽
When I add a new term or phrase to Biblical Terms, one of the things to fill in is a list of references (one per line ... way to generate such a list in Paratext, as far as I know.
viverechristus 296 提出 已提問 7月 15, 2021
0
2 個回答 357 次瀏覽
A team I support has been publishing selected Psalms and other chapters to their Scripture app as the chapters are approved ... might be useful to other teams in other regions too.
anon469793 155 提出 已提問 11月 11, 2019
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For just as each of us has one body with many members, and these members do not all have the same function, so in Christ we, though many, form one body, and each member belongs to all the others.
Romans 12:4-5
3,048 個問題
6,007 個回答
5,672 則評論
2,028 位使用者