Resulta que agregar el \b después del \pc no funcionó. (También fue absorbido por el \nobreak.) Así que pensé que agregaría un nuevo párrafo con un espacio sin salto como este:
'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p \u00a0\2'
Pero eso también parece ser absorbido. Si convierto el espacio sin salto en un carácter real "x", entonces el espaciado sale más o menos bien... ¡pero también pone una "x" en la salida!
'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p x\2'
¿Hay algo que pueda poner en el párrafo que sea invisible, pero que no sea absorbido por el \nobreak?
Jeff
ACTUALIZACIÓN: Bueno, resulta que un espacio sin salto estrecho es invisible y no se absorbe:
'(\\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
Traducción automática desde English