Tengo una solución temporal. Comento la línea .tex anterior (con “%”), luego agrego lo siguiente en mi archivo PrintDraftChanges.txt:
'(?<!\\ft) *:( |\n)' > '\u202f:\1' # Place non-breaking thin space before colon
En mi caso particular, no quería reemplazar el espacio después del marcador \ft (ya que hace que deje de funcionar), así que puse una pequeña búsqueda hacia atrás negativa allí. Y el dos puntos puede ocurrir realmente al final de la línea, así que tengo que buscar ya sea un espacio o un salto de línea después de los dos puntos.
Esto funciona porque estoy agregando un poco más de contexto a la cadena de búsqueda, por lo que evita cambiar el dos puntos en la ruta del archivo PDF.
Preferiría encontrar otra solución, si es posible, ya que no tengo casi tanto control con \u202f como con el comando \kern en el archivo .tex. Pero esto al menos me da una aproximación, para avanzar en mi composición tipográfica.
I have a temporary word-around. I comment out the .tex line above (with “%”), then add the following into my PrintDraftChanges.txt file:
'(?<!\\ft) *:( |\n)' > '\u202f:\1' # Place non-breaking thin space before colon
In my particular case, I didn’t want to replace the space after the \ft marker (as it makes it not work anymore), so I put in a little negative look-behind there. And the colon can actual occur at the end of the line, so I have to look for either a space or a newline after the colon.
This works because I’m adding a little more context into the search string, so it avoids changing the colon in the PDF file path.
I would prefer to find another solution, if possible, since I don’t have nearly as much control with \u202f as I do with the \kern command in the .tex file. But this at least gives me a rough approximation, to move forward in my typesetting.
Traducción automática desde English