0 票
33 次瀏覽

我使用這個指令來防止在特定標記前斷行(例如,讓 \q2 總是與前面的 \q1 或 \q2 保持在同一行),效果相當不錯:

\sethook{before}{q2}{\nobreak}

但使用 \setbetweenhook 指令時,效果就不太理想。我的情況是,在許多地方都有類似以下的文字:

\s Injiil Isa al-Masiih, al-katabah al-rasuul Matta (Matthieu)
\pc (Évangile : Mt 1, 18-24)
\p
\v 18 Daahu taariikh ...

我想防止 \s 和 \pc 出現在欄位的底部。我以為以下指令可以做到,但似乎沒有幫助:

\setbetweenhook{pc}{p}{\nobreak}

有什麼建議嗎?

機器翻譯自 English
PTXprint 由 (1.4k 點) 提出 | 33 次瀏覽

2 個回答

0 票
最佳回答

結果發現,在 \pc 後面加上 \b 並不起作用。(它也被 \nobreak 吸收了。)所以我想添加一個包含不換行空格的新段落,如下所示:

'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p \u00a0\2'

但這似乎也會被吸收。如果我把不換行空格換成實際字符 "x",間距大約是正確的... 但輸出中也會出現 "x"!

'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p x\2'

段落中是否有什麼東西可以隱形,但又不會被 \nobreak 吸收?
Jeff

更新:原來窄不換行空格是隱形的,而且不會被吸收:

'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p \u202f\2'

Jeff

機器翻譯自 English
由 (1.4k 點) 提出
已選取 由 提出
0 票

我找到了一個變通方法。使用以下指令效果較好:

\sethook{after}{pc}{\nobreak}

但在某些情況下,我不希望 \pc 與後續元素緊密相連。在這些情況下,我需要在 \pc 後面加上 \b,並在 "changes.txt" 中加入以下行:

'(\\pc .+)(\n\\s |\n\n)' > '\1\n\\b\2'

我很樂意聽到更好的解決方案...
Jeff

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

相關問題

0 票
1 個回答 106 次瀏覽
為了錄音,我希望將每位朗讀者要朗讀的章節印在獨立的頁面上,並確保段落不會被拆分到不同的頁面 透過在 changes.txt 中加入 '\\c ' > '\\pb\\c ',將每個章節印在新的一頁上,這個方法運作得很好 (感謝我在這 ... 個提示!) 然而,我還沒找到防止段落跨頁的方法 有辦法做到這一點嗎?這將對我非常有帮助! 感謝任何幫助! Roland
Roland 245 提出 已提問 3月 10, 2025
0 票
2 個回答 167 次瀏覽
似乎 PTXPrint 2.7.6 中的「第 1 章從新頁開始」選項無法正常運作。 如果我選擇「所有章節」,第 1 章確實會從新頁開始,其他章節也是如此。但當然這不是我們想要的結果。我是不是漏掉了什麼?第 1 章在 Paratext 中已標記為 \c 1。
marvinson 304 提出 已提問 12月 6, 2024
0 票
2 個回答 302 次瀏覽
When I run the Unmatched Pairs of Punctuation Check (PT 8 or 9), almost every opening quotation mark that starts a quote ... this case!). Any ideas on how to resolve this problem?
viverechristus 296 提出 已提問 8月 21, 2020
0 票
2 個回答 352 次瀏覽
Does anyone know if there is a way in PT8 to transfer paragraph breaks and section headings from one project to another?
anon233143 252 提出 已提問 2月 22, 2018
0 票
1 個回答 317 次瀏覽
I'm supporting a user who when trying to start a new paragraph cannot just enter \p . If he enters the ... with the EWTS Tibetan Keyboard, if that helps. Thanks, -anon482869
anon482869 105 提出 已提問 8月 7, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
All the believers were one in heart and mind. No one claimed that any of their possessions was their own, but they shared everything they had.
Acts 4:32
3,052 個問題
6,011 個回答
5,677 則評論
2,031 位使用者