0 票
32 次浏览

我使用此命令来防止在特定标记前断行(例如,始终将 \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 分) 发布 | 32 次浏览

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 发布 提问于 三月 10, 2025
0 票
2 个回答 167 次浏览
似乎 PTXPrint 2.7.6 中的“第1章另起一页”(Start 1st Chapter on a New Page)选项不起作用。 如果我选择“所有章节”(All Chapters),第1章确实会另起一页,其他所有章节也是如此。但当然这不是我们想要的。我是不是漏掉了什么?在 Paratext 中,第1章是用 \c 1 标记的。
marvinson 304 发布 提问于 十二月 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 发布 提问于 八月 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 发布 提问于 二月 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 发布 提问于 八月 7, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
There is neither Jew nor Gentile, neither slave nor free, nor is there male and female, for you are all one in Christ Jesus.
Galatians 3:28
3,052 个问题
6,011 个回答
5,677 条评论
2,031 位用户