हम परंपरागत रूप से शब्द-मध्य हाइफ़न के बाद पंक्तियों को तोड़ने की अनुमति नहीं देते थे। लेकिन इस योना की पुस्तक के लिए हम इस विकल्प के साथ प्रयोग करना चाहते हैं। View/Edit > Changes.txt टैब पर, मैंने दाईं ओर मौजूद बहुत उपयोगी बटनों से कोड स्निपेट जोड़ा है--स्क्रीनशॉट में पंक्ति 7। यह बहुत अच्छा काम करता है--इन उपयोगी स्निपेट सुझावों के लिए धन्यवाद! हालाँकि, एक अनुच्छेद में मुझे एक अनाथ प्रत्यय (suffix) स्ट्रिंग से बचना है, इसलिए मैंने पंक्ति 9 जोड़ी और फिर अपने PTX Print Layout विंडो में "Expand paragraph by one line" का उपयोग किया।
इस कॉन्फ़िगरेशन का परिणाम नीचे है--समान परिणाम : पंक्ति 7 पंक्ति 9 को ओवरराइड करती है। जब मैं पंक्ति 7 को कमेंट आउट करता हूँ, तो शब्द piriʼooareha-ʼuuri को अगली पंक्ति पर एक इकाई के रूप में सही ढंग से ले जाया जाता है; हालाँकि... सभी पंक्ति-अंत शब्द-मध्य हाइफ़न को न-तोड़ने योग्य (non-breaking) माना जाता है, जो कि मैं नहीं चाहता।
फिर मुझे ध्यान आया (अरे!) कि पंक्ति 7 हाइफ़न के बाद एक शून्य-चौड़ाई स्पेस (zero-width space) डालकर पंक्ति तोड़ने की अनुमति देती है। इसलिए मैंने पंक्ति 9 के लिए यह आज़माया:
at JON 1:8 '(piriʼooareha)-\u200B(ʼuuri?”)' > '\1\u2011\2'
लेकिन प्रत्यय फिर भी अनाथ था। यह रेगुलर एक्सप्रेशन कोड मेरी समझ से परे है-OWL paygrade।
तो मैं एकल इकाई के लिए "allow linebreaks after in-word hyphens" कोड को कैसे ओवरराइड करूँ? या क्या इस कोड स्निपेट को संकीर्ण दायरे या कुछ और के लिए समायोजित किया जा सकता है?
We have traditionally NOT allowed lines to break in-word hyphens. But for this Jonah book we want to experiment with this option. On the View/Edit > Changes.txt tab I added the code snippet from the very helpful buttons at the right--line 7 in the screenshot. This works great--thank you for these helpful snippet suggestions! However, in one paragraph I need to avoid an orphaned suffix string, so I added line 9 and then used "Expand paragraph by one line" in my PTX Print Layout window.
The result of this configuration is below--same result : Line 7 overrides line 9. When I comment out line 7 the word piriʼooareha-ʼuuri is correctly moved as a unit to the next line; however... all end-of-line in-word hyphens are treated as non-breaking, which is not what I want.
So then I noticed (duh!) that line 7 allows the line break by inserting a zero-width space after the hyphen. So I tried this for line 9:
at JON 1:8 '(piriʼooareha)-\u200B(ʼuuri?”)' > '\1\u2011\2'
But the suffix was still orphaned. This regex code is above my power-OWL paygrade.
So how do I override the "allow linebreaks after in-word hyphens" code for a single instance? Or could this code snippet be tweaked for a narrower scope or something?
English से मशीन-अनुवादित मूल दिखाएं