मेरे पास एक अस्थायी समाधान है। मैं ऊपर दी गई .tex पंक्ति को टिप्पणी (comment) में बदल देता हूँ ("%" के साथ), फिर अपने PrintDraftChanges.txt फ़ाइल में निम्नलिखित जोड़ देता हूँ:
'(?<!\\ft) *:( |\n)' > '\u202f:\1' # Place non-breaking thin space before colon
मेरे विशेष मामले में, मैं \ft मार्कर के बाद स्थान (space) को बदलना नहीं चाहता था (क्योंकि इससे यह काम करना बंद कर देता है), इसलिए मैंने वहाँ एक छोटा सा नेगेटिव लुक-बिहाइंड (negative look-behind) डाला। और कोलन वास्तव में पंक्ति के अंत में भी हो सकता है, इसलिए मुझे कोलन के बाद स्थान या नई पंक्ति (newline) दोनों की तलाश करनी पड़ती है।
यह इसलिए काम करता है क्योंकि मैं खोज स्ट्रिंग में थोड़ा अधिक संदर्भ जोड़ रहा हूँ, जिससे PDF फ़ाइल पथ में कोलन को बदलने से बचा जा सकता है।
मैं यह पसंद करूंगा कि मैं कोई अन्य समाधान खोज लूं, यदि संभव हो, क्योंकि मेरे पास .tex फ़ाइल में \kern कमांड की तुलना में \u202f के साथ उतना नियंत्रण नहीं है। लेकिन यह कम से कम मुझे एक अंदाज़ित अनुमान देता है, ताकि मैं अपने टाइपसेटिंग में आगे बढ़ सकूं।
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.
English से मशीन-अनुवादित