प्रोजेक्ट में ALL CAPITAL TEXT (सभी अक्षरों में बड़े अक्षर) टाइपसेटर्स के लिए विभिन्न कारणों से अस्वीकार्य है। वे InDesign में बस स्टाइल्स का उपयोग करके टेक्स्ट को All Cap बना सकते हैं। हालाँकि, जब Print Draft बनाना होता है या YouVersion के लिए DBL पर टेक्स्ट अपलोड करना होता है, तो यह सुनिश्चित करने का कोई तरीका नहीं है कि टेक्स्ट All Cap है, जब तक कि वह वास्तव में ALL CAPITALIZED न हो। (स्टाइल शीट में AllCap सेटिंग अच्छी होगी।)
इसलिए, मैंने एक चतुराई भरा योजना बनाई जिसमें DBLChanges.txt और PrintDraftChanges.txt फाइलों में RegEx Pal की दस्तावेज़ीकरण न होने वाली कैपिटलाइजेशन सुविधा ^^^ का उपयोग करके चयनित फील्ड में छोटे अक्षरों को बड़ा किया जाता है।
उदाहरण के लिए, हमारी स्वाहिली अनुवाद में इंसक्रिप्शन टेक्स्ट, जिसे \sc …\sc* से चिह्नित किया जाता है, Small Cap के बजाय All Cap होना चाहिए। इसलिए मैंने सोचा कि मैं PrintDraftChanges.txt में इस कोड का उपयोग करके \sc टेक्स्ट को All Cap के रूप में निर्यात कर सकता हूँ:
in '(?<=\\sc\s)[^\\]*?(?=\\)': '(\p{Ll})' > '^^^\1'
लेकिन Bwana के BWANA बनने के बजाय, यह B^^^w^^^a^^^n^^^a बन जाता है।
तो स्पष्ट रूप से, Changes.txt फाइलों के लिए RegEx इंजन RegEx Pal में काम करने वाली इस शानदार दस्तावेज़ीकरण न होने वाली सुविधा का समर्थन नहीं करता है।
यदि केस बदलना (case changing) दोनों Changes.txt फाइलों और RegEx Pal की एक दस्तावेज़ीकृत सुविधा होती, तो कितना अच्छा होता। मैं वास्तव में अपने मास्टर पब्लिशिंग फाइलों में All Cap टेक्स्ट रखना नहीं चाहता, लेकिन अगर मैं ऐसा नहीं करता, तो ऐसे समय आते हैं जब मुझे इसे तुरंत बनाने की आवश्यकता होती है।
- कोई सुझाव? क्या आपने इससे सामना किया है और आपने इसे कैसे संभालने का निर्णय लिया?
- क्या कोई और Paratext नियमित अभिव्यक्तियों (regular expressions) में केस बदलने की क्षमता पाने के लिए उत्सुक होगा?
- क्या मुझे इसे एक फीचर रिक्वेस्ट के रूप में जमा करना चाहिए?
ALL CAPITAL TEXT in a project is anathema to typesetters for various reasons. They can just use styles in InDesign to make text All Cap. However when doing a Print Draft or putting text up on the DBL for YouVersion, there is no way to ensure that the text is All Cap without it actually being ALL CAPITALIZED. (An AllCap setting in the style sheet would be nice.)
So, I came up with a clever plan to use the undocumented RegEx Pal capitalization feature ^^^ in the DBLChanges.txt and PrintDraftChanges.txt files to capitalize lowercase letters in selected fields.
For instance, our Swahili translation wants inscription text, marked \sc …\sc*, to be All Cap rather than Small Cap. So I thought I could use this code in PrintDraftChanges.txt to export \sc text as All Cap:
in '(?<=\\sc\s)[^\\]*?(?=\\)': '(\p{Ll})' > '^^^\1'
But instead of Bwana becoming BWANA it becomes B^^^w^^^a^^^n^^^a
So obviously the RegEx engine for the Changes.txt files does not support this nifty undocumented feature that works in RegEx Pal.
How very nice it would be if case changing were a documented feature of both Changes.txt files and RegEx Pal. I really do not want to keep All Cap text in our master publishing files, but if I don’t, there are times I will need to create it on the fly.
- Any suggestions? Have you run into this and how have you decided to handle it?
- Would anyone else love to get case changing capability in Paratext regular expressions?
- Ought I submit this as a feature request?