J'ai une solution de contournement temporaire. Je commente la ligne .tex ci-dessus (avec « % »), puis j'ajoute ce qui suit dans mon fichier PrintDraftChanges.txt :
'(?<!\\ft) *:( |\n)' > '\u202f:\1' # Place non-breaking thin space before colon
Dans mon cas particulier, je ne voulais pas remplacer l'espace après le marqueur \ft (car cela l'empêcherait de fonctionner), j'ai donc ajouté un petit arrière-plan négatif (negative look-behind) là-bas. Et le deux-points peut en fait se trouver à la fin de la ligne, donc je dois rechercher soit un espace, soit un retour à la ligne après le deux-points.
Cela fonctionne parce que j'ajoute un peu plus de contexte dans la chaîne de recherche, ce qui évite de modifier le deux-points dans le chemin du fichier PDF.
Je préférerais trouver une autre solution, si possible, car je n'ai pas autant de contrôle avec \u202f qu'avec la commande \kern dans le fichier .tex. Mais cela me donne au moins une approximation grossière pour avancer dans ma composition typographique.
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.
Traduit automatiquement depuis English