传统上,我们不允许在词内连字符处换行。但对于这本约拿书,我们想尝试一下这个选项。在 View/Edit > Changes.txt 选项卡中,我添加了右侧非常实用的按钮中的代码片段——截图中的第 7 行。这效果很好——感谢这些有用的片段建议! 然而,在一个段落中,我需要避免孤立的后缀字符串,所以我添加了第 9 行,然后在 PTX Print Layout 窗口中使用了“Expand paragraph by one line”。

此配置的结果如下——结果相同:第 7 行 覆盖了第 9 行。当我注释掉第 7 行时,单词 piriʼooareha-ʼuuri 会作为一个整体正确移动到下一行;但是…… 所有 行尾的词内连字符都被视为不换行,这不是我想要的。
然后我注意到(哎呀!)第 7 行 通过在连字符后插入 零宽空格来实现换行。所以我尝试在第 9 行这样做:
at JON 1:8 '(piriʼooareha)-\u200B(ʼuuri?”)' > '\1\u2011\2'
但后缀仍然是孤立的。这个正则表达式代码超出了我的能力范围。

那么,我如何针对单个实例覆盖“允许在词内连字符后换行”的代码?或者这个代码片段能否调整为更窄的范围或类似的东西?
We have traditionally NOT allowed lines to break in-word hyphens. But for this Jonah book we want to experiment with this option. On the View/Edit > Changes.txt tab I added the code snippet from the very helpful buttons at the right--line 7 in the screenshot. This works great--thank you for these helpful snippet suggestions! However, in one paragraph I need to avoid an orphaned suffix string, so I added line 9 and then used "Expand paragraph by one line" in my PTX Print Layout window.

The result of this configuration is below--same result : Line 7 overrides line 9. When I comment out line 7 the word piriʼooareha-ʼuuri is correctly moved as a unit to the next line; however... all end-of-line in-word hyphens are treated as non-breaking, which is not what I want.
So then I noticed (duh!) that line 7 allows the line break by inserting a zero-width space after the hyphen. So I tried this for line 9:
at JON 1:8 '(piriʼooareha)-\u200B(ʼuuri?”)' > '\1\u2011\2'
But the suffix was still orphaned. This regex code is above my power-OWL paygrade.

So how do I override the "allow linebreaks after in-word hyphens" code for a single instance? Or could this code snippet be tweaked for a narrower scope or something?
机器翻译自 English