मैं उन सभी सेक्शन हेडिंग्स (section headings) को खोजने की कोशिश कर रहा हूँ जो कुछ विशिष्ट कणों (particles) से शुरू होती हैं और बिना स्वर-चिह्न (accent) वाले स्वर (vowel) पर समाप्त होती हैं।
उदाहरण के लिए, इसमें यह खोजा जाना चाहिए:
\s Ko te ongo tangata langa fale
लेकिन यह नहीं:
\s Ko te ongo tangata langa falé
मैंने निम्नलिखित Regex का उपयोग किया:
regex:\s Ko te .?[aeiou]\s\
हालाँकि, यह काम नहीं करता: Paratext उन सभी सेक्शन हेडिंग्स को खोज लेता है जो “Ko te” से शुरू होती हैं, लेकिन वे भी खोजी जाती हैं जो साधारण स्वर (plain vowel) पर समाप्त नहीं होती हैं। बाद वाले के लिए, खोज परिणाम अगली सेक्शन हेडिंग तक का सारा टेक्स्ट शामिल करता है जो साधारण स्वर पर समाप्त होती है। उदाहरण के लिए, एक खोज परिणाम है:
\s Ko te fu’u 'akau mo tono fuá \r …. [बहुत सारा टेक्स्ट] …. \s Ko te fakatokanga
मेरी उम्मीद थी कि *? (not greedy) का उपयोग इसका ख्याल रखेगा, लेकिन प्रतीत होता है कि ऐसा नहीं है।
मैंने अन्य विविधताओं (variants) जैसे कि
regex:\s Ko te .?[aeiou]\ (केवल त्रुटिपूर्ण हिट)
regex:\s Ko te .?[aeiou]\s*\r\n (कोई हिट नहीं) का भी प्रयास किया
क्या कोई अन्य तरीका है जो काम करता है?
अग्रिम धन्यवाद!
Paulus+Kieviet
I’m trying to do a search for all section headings that start with certain particles and end with a vowel without accent.
E.g. it should find:
\s Ko te ongo tangata langa fale
but not:
\s Ko te ongo tangata langa falé
I used the following Regex:
regex:\s Ko te .?[aeiou]\s\
However, this does not work: Paratext does find all section headings that start with “Ko te”, but also finds those that don’t end with a plain vowel. For the latter, the search result includes all text down to the next section heading that does end with a plain vowel. For example, one search result is:
\s Ko te fu’u 'akau mo tono fuá \r …. [lots and lots of text] …. \s Ko te fakatokanga
I would have expected that the use of *? (not greedy) would take care of this, but apparently it doesn’t.
I also tried variants like
regex:\s Ko te .?[aeiou]\ (only faulty hits)
regex:\s Ko te .?[aeiou]\s*\r\n (no hits)
Is there another way which does work?
Thanks in advance!
Paulus+Kieviet
English से मशीन-अनुवादित