आपकी टिप्पणियों से मैं यह अनुमान लगाता हूँ कि कोई भी वर्ण शैली (character styling), या कविता की नई पंक्ति (\q1 , \q2) नियम के अनुप्रयोग को अवरुद्ध कर देगी। इसी तरह, पद संख्या (verse number) (\v # ) भी एक समस्या हो सकती है।
मेरे पास कोई उत्तर नहीं है, लेकिन मेरे पास एक समान समस्या है जिसका संबंधित समाधान हो सकता है, इसलिए मैं आपके पोस्ट का लाभ उठा रहा हूँ।
मैं US अंग्रेज़ी शीर्षकों के वर्ण-महत्व (capitalization) को UK शीर्षक वर्ण-महत्व (UK title capitalization) में बदलने की कोशिश कर रहा हूँ। US शीर्षक शैली पहला शब्द और सभी शब्दों को वर्ण-महत्व (capitalizes) करती है, सिवाय कुछ सीमित छोटे शब्दों के, जबकि UK शैली पहला शब्द और केवल विशेष संज्ञाओं (proper nouns) को वर्ण-महत्व (capitalizes) करती है। मेरे पास इसे करने की तर्कशक्ति (logic) है, लेकिन मुझे इसे केवल शीर्षकों में पाठ (\s1 , \s2 , आदि) पर लागू करने का तरीका चाहिए।
जो मैंने पाया है वह यह है कि अनुप्रेक्षित (transliteration) परियोजनाएँ केवल स्थानीय भाषा के पाठ (vernacular text) पर एन्कोडिंग कन्वर्टर परिवर्तनों को लागू करती हैं, और वे मार्कअप संदर्भ (markup contexts) के बारे में अनजान होती हैं। मेरे पास एक cc टेबल है जो Paratext के बाहर वर्ण-महत्व (capitalization) परिवर्तनों को सही ढंग से लागू करती है, लेकिन जब मैं इसे अनुप्रेक्षित (transliteration) परियोजना में लोड करता हूँ तो यह सही ढंग से काम नहीं करता है। मेरी टेबल सभी स्थानीय भाषा के पाठ फ़ील्ड्स (vernacular text fields) में परिवर्तन करती है। गैर-स्थानीय भाषा के फ़ील्ड्स (Non-vernacular fields) (\id , \rem ) प्रभावित नहीं हुए।
अनुप्रेक्षित (transliteration) कार्यक्षमता को वास्तव में उपयोगी बनाने के लिए, हमें मार्कअप संदर्भ के प्रति जागरूक परिवर्तन करने का तरीका चाहिए। क्या यह संभव है?
From your comments I surmise that any character styling, or a new line of poetry (\q1 , \q2) will block the application of the rule. Likewise a verse number (\v # ) may also be an problem.
I do not have an answer, but I have a similar problem that may have a related solution, so I am piggybacking on your post.
What I am trying to do is to change the capitalization of US English headings to UK title capitalization. US title style capitalizes the first word and all words except a limited set of short words, whereas the UK style capitalizes the first word and only proper nouns. I have the logic to do this, but I need a way to apply it only to text in headings (\s1 , \s2 , etc. ).
What I have found is that transliteration projects only apply encoding converter changes to vernacular text, and they are not aware of markup contexts. I have have a cc table that applies capitalization changes properly outside of Paratext, but when I load it into a transliteration project it does not work correctly. My table makes changes to all vernacular text fields. Non-vernacular fields (\id , \rem ) were not affected
For the transliteration functionality to really be useful, we need a way to make changes that are aware of the markup context. Is that possible?
English से मशीन-अनुवादित