Scripture App Builder (SAB) वर्दलिस्ट प्रविष्टि में कस्टम स्टाइलिंग (नॉन-USFM) टैग की अनुमति देता है (\w ... \w+)। हमारे पास इस तरह के डेटा वाला एक परियोजना है:
\c 1 \q1 \k serpent \k* snake \q1 \k subtle \k* crafty, or smart; commonly used to describe \w \+lw serpents \+lw* |lemma="serpent" \w* \q1 \k \lw eternal\lw* life\k* life with no end
Scripture Progressive Web App के लिए, हम Proskomma का उपयोग करते हैं, जिसे एक कठोर USFM पार्सर के रूप में डिज़ाइन किया गया है। जब SAB नॉन-USFM टैग (जैसे `\zvideo ID`) की अनुमति देता है, तो हमें आमतौर पर इन्हें एक माइलस्टोन में परिवर्तित करना पड़ता है (जैसे `\zvideo-s |id="ID"\*\zvideo-e\*`)।
क्या वर्दलिस्ट प्रविष्टि के अंदर माइलस्टोन की अनुमति है? क्या हम ऊपर दिए गए USFM को इसमें परिवर्तित कर सकते हैं:
\c 1 \q1 \k serpent \k* snake \q1 \k subtle \k* crafty, or smart; commonly used to describe \w \+zwrapper-s |id="lw"\* serpents \+zwrapper-e\* |lemma="serpent" \w* \q1 \k \zwrapper-s |id="lw"\* eternal\zwrapper-e\* life\k* life with no end
और फिर हम इसे प्रस्तुत करते समय इसे HTML में परिवर्तित कर सकते हैं। धन्यवाद,
Chris *हमने प्रदर्शन के उद्देश्य से अल्पसंख्यक भाषाओं की प्रविष्टियों के आधार पर अंग्रेज़ी का निर्माण किया है।
व्याख्या: इन `\lw` मार्करों के वहाँ होने का कारण "शब्दों को नॉन-ब्रेकिंग फॉर्मेट मार्करों में लपेटना" है। SAB परिवर्तनों का समर्थन करता है और इसकी एक प्रविष्टि है: खोजें: ([\u1780-\u17dd“”‘’«»!?()\[\]]+)([ ,\u2002])(?!\d) प्रतिस्थापित करें: \\lw \1\\lw*\2 इससे इन शब्दों के चारों ओर `<span class="lw">SOME WORDS</span>` बन जाता है (css के साथ `.lw { white-space: nowrap; }` )।
Scripture App Builder (SAB) allows custom styling (non-USFM) tags in wordlist entry (\w ... \w+). We have a project with data like* this:
\c 1 \q1 \k serpent \k* snake \q1 \k subtle \k* crafty, or smart; commonly used to describe \w \+lw serpents \+lw* |lemma="serpent" \w* \q1 \k \lw eternal\lw* life\k* life with no end
For the Scripture Progressive Web App, we use Proskomma, which is designed to be a strict USFM parser. When SAB allows non-USFM tags (e.g. `\zvideo ID`), we normally have to convert these to a milestone (e.g. `\zvideo-s |id="ID"\*\zvideo-e\*`).
Are milestones allowed inside a wordlist entry? Can we convert the above USFM to:
\c 1 \q1 \k serpent \k* snake \q1 \k subtle \k* crafty, or smart; commonly used to describe \w \+zwrapper-s |id="lw"\* serpents \+zwrapper-e\* |lemma="serpent" \w* \q1 \k \zwrapper-s |id="lw"\* eternal\zwrapper-e\* life\k* life with no end
And then we can convert this to HTML when we present it. Thanks,
Chris *We fabricated the english based on minority language entries for demonstration purposes.
Explanation: The reason why these `\lw` markers are there is to "wrap words in non-breaking format markers". SAB supports changes and there is an entry for: find: ([\u1780-\u17dd“”‘’«»!?()\[\]]+)([ ,\u2002])(?!\d) replace: \\lw \1\\lw*\2 This end up with `<span class="lw">SOME WORDS</span> around these words (with the css `.lw { white-space: nowrap; }` ).
English से मशीन-अनुवादित मूल दिखाएं