結果發現,在 \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