0 वोट
567 व्यूज़

प्रोजेक्ट में 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) में केस बदलने की क्षमता पाने के लिए उत्सुक होगा?
  • क्या मुझे इसे एक फीचर रिक्वेस्ट के रूप में जमा करना चाहिए?
English से मशीन-अनुवादित
Paratext में द्वारा (1.8k अंक)
फिर से दिखाया गया | 567 व्यूज़

4 उत्तर

0 वोट
सर्वोत्तम उत्तर

यदि यह काम करता है, तो यह मूर्खता नहीं है:

in '(?<=\\sc\s)[^\\]*?(?=\\)': 'a' > 'A'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'b' > 'B'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'c' > 'C'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'd' > 'D'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'e' > 'E'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'f' > 'F'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'g' > 'G'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'h' > 'H'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'i' > 'I'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'j' > 'J'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'k' > 'K'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'l' > 'L'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'm' > 'M'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'n' > 'N'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'o' > 'O'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'p' > 'P'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'q' > 'Q'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'r' > 'R'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 's' > 'S'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 't' > 'T'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'u' > 'U'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'v' > 'V'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'w' > 'W'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'x' > 'X'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'y' > 'Y'
in '(?<=\\sc\s)[^\\]*?(?=\\)': 'z' > 'Z'
English से मशीन-अनुवादित
द्वारा (872 अंक)

Hi CrazyRocky & anon719148

You can have multiple find/replaces stored in a file and run an
expression that points to that file in RegExPal. The syntax is to use
"–>"and then point to the filename with the replaces in the find box.
Similar to the following:

–>\Users\HastyDR\Desktop\smallcaps.txt

Note: I don’t think it works if the path name contains any spaces, which
is why I chose to place the file on my desktop.

In that file place statements similar to the following for all lower to
uppercase combinations in your language.

(?<=\\sc\s[^\\]*?)a-->A
(?<=\\sc\s[^\\]*?)e-->E
(?<=\\sc\s[^\\]*?)i-->I

Once the file is created, run RegExPal and place -->filenamein the find
box and run as a replace. Note that this kind of replace ignores any
text that may be in the replace dialog box.

See the sample in the following screen capture of the RegExPal screen below.

The way this change works is that it stops on the first match in a
chapter and selects the rest of the chapter. You will see each of the
changes in the replacement highlighted in pink. Notice the lower case
vowels in the highlighted yellow become uppercase in the highlighted pink.

Note that it changes the actual text in the project. Undo the changes by
switching the cases on the match and replace to get back to the original
encoding.

D anon467281

Global Publishing Services
Scripture Typesetting trainer & Regular Expression “specialist”
Dallas, TX

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

नमस्ते anon467281
मैं एक अन्य थ्रेड में समान प्रकार के प्रश्नों से जूझ रहा था। [Link Removed] भाग्यवश anon719148 ने मुझे इस लिंक की ओर इशारा किया।

मैंने देवनागरी लिपि में RegExPal टिप आज़माई, लेकिन यह टेक्स्ट खोज नहीं रहा। जबकि रोमन लिपि अच्छी तरह से काम कर रही है।

(?<=\xt\s[^\]?)यूह–>यूहन्‌ना
(?<=\xt\s[^\]
?)baba–>BABA

ऊपर दिए गए दो उदाहरणों में, मैंने क्रॉस-रेफरेंस में खोज की, RegExPal केवल दूसरा (अर्थात् baba) खोज सकता है, लेकिन पहला नहीं (अर्थात् यूह - यह देवनागरी लिपि में है)।

क्या आपको पता है कि गैर-रोमन लिपि क्यों काम नहीं कर रही है?

सलाह के लिए धन्यवाद…

English से मशीन-अनुवादित
0 वोट

यह पूरी तरह से दस्तावेज़ीकरण न होने वाला प्रतीत होता है। हम इसके बारे में और जानकारी कहाँ प्राप्त कर सकते हैं?
(यहाँ उत्तर दे रहा हूँ, लेकिन यह अपने आप में एक विषय होना चाहिए।)

English से मशीन-अनुवादित
द्वारा (872 अंक)
0 वोट

मैंने कुछ परीक्षण किए क्योंकि यह एक उपयोगी सुविधा प्रतीत होती है। लेकिन यह मुझे बहुत बग वाला (buggy) लगता है। हालाँकि, मेरे परीक्षणों में, ऐसे समय थे जब यूनिकोड कैरेक्टर नंबरों का उपयोग करना बेहतर काम करता प्रतीत होता था (BabelPad का उपयोग करके रूपांतरित करें), उदाहरण के लिए:

(?<=\xt\s[^\]?)\u092F\u0942\u0939–>यूहन्‌ना

लेकिन मैं कभी भी RegExPal को दोनों पंक्तियाँ खोजने में सक्षम नहीं कर पाया; ऐसा प्रतीत होता था कि यह केवल तभी ऊपरी पंक्ति को खोजेगा जब “baba” मौजूद नहीं है।

English से मशीन-अनुवादित
द्वारा (607 अंक)
0 वोट

यहाँ RegEx Pal में सूची के उपयोग पर एक और पोस्ट है।

English से मशीन-अनुवादित
द्वारा (9.9k अंक)

संबंधित प्रश्न

0 वोट
8 उत्तर 1.5k व्यूज़
We have a user who has inserted a lot of \pn and some \nd inside of footnotes. We now know we need those to be ... the search to inside of a single footnote? Thank you, MSEAIT/LT
MSEAIT_LT 478 पूछा गया अगस्त 20, 2018
Paratext में
0 वोट
5 उत्तर 756 व्यूज़
It appears that for all projects that I have created in PT8 RegEx Pal displays text in the find and replace windows using ... What do I need to do to stop this from happening?
Kent Spielmann 1.8k पूछा गया फ़रवरी 26, 2018
Paratext में
0 वोट
3 उत्तर 978 व्यूज़
[There is no Help topic for RegEx Pal, so I'll start this thread for myself or anyone else to add helpful ... History panic (post #3) Key terms for search: regular expression
wdavidhj 1.4k पूछा गया जून 5, 2019
Paratext में
0 वोट
8 उत्तर 1.5k व्यूज़
Can someone answer definitively: What flavour of regex is used in RegEx Pal? Scope in my title is to encourage people ... used in this context. See next post for an example.
wdavidhj 1.4k पूछा गया जुलाई 20, 2016
+1 मत
5 उत्तर 912 व्यूज़
मुझे कुछ स्थितियों में लोअरकेस को अपरकेस में बदलना है - उदाहरण के लिए, मैं चाहता हूँ कि कॉलन के बाद के सभी लोअरकेस ... से शुरू करें और फिर जैसे-जैसे आगे बढ़ें उसे जोड़ते जाएं।
Phil_Leckrone 9.9k पूछा गया मार्च 2, 2022
Paratext में
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They all joined together constantly in prayer, along with the women and Mary the mother of Jesus, and with his brothers.
Acts 1:14
3,047 प्रश्न
6,007 उत्तर
5,672 टिप्पणियाँ
2,027 उपयोगकर्ता