0 votes
7 views

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; }` ).

Paratext ago by (108 points)
ago edited by | 7 views

Please log in or register to answer this question.

Related questions

0 votes
1 answer 269 views
We are using \w \w* in the translation text to mark Biblical Terms that have glossary entries. The result is a link is ... link in Paratext if I use \w \w* within the glossary.
john_nystrom 312 asked Aug 22, 2022
0 votes
1 answer 597 views
We have linked a Biblical Term to a glossary entry. We know how to link it to a different glossary entry, but we anon421222 ... this. Thanks for any help you can give me on this.
john_nystrom 312 asked Feb 21, 2023
0 votes
0 answers 215 views
Click in the window of your project, to make it the active window. From the Tools menu, select Biblical Terms . Find and ... t/how-do-i-filter-terms-in-the-biblical-terms-tool/230)
[Expert]
anon421222
735
asked Feb 23, 2017
+1 vote
1 answer 361 views
We have linked Holy Spirit (Asubane Noekene) to the corresponding entry in our glossary. Now we also want to link holy ... change it back. Or would there be a better solution?
Anne Stoppels 106 asked Sep 18, 2024
+1 vote
1 answer 597 views
When you enter a glossary entries through either the Biblical terms tool or the Biblical terms renderings window, ... following video also describes this procedure in more detail:
[Expert]
Jeff_Shrum
2.9k
asked Mar 23, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I urge you, brothers and sisters, to watch out for those who cause divisions and put obstacles in your way that are contrary to the teaching you have learned. Keep away from them.
Romans 16:17
3,072 questions
6,034 answers
5,703 comments
2,038 users