事实证明,在 \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
It turns out the adding the \b after the \pc didn't work. (It also got absorbed by the \nobreak.) So I thought I would add a new paragraph with a no-break space like this:
'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p \u00a0\2'
But that also seems to get absorbed. If I make the no-break space into a real character "x", then the spacing works out about right... but it also puts an "x" in the output!
'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p x\2'
Is there something I can put in the paragraph that would be invisible, but would not get absorbed by the \nobreak?
Jeff
UPDATE: Well, it turns out that a narrow no-break space is invisible and doesn't get absorbed:
'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p \u202f\2'
Jeff
机器翻译自 English