0 votes
6 vues

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 il y a par (108 points)
il y a modifié par | 6 vues

Veuillez vous connecter ou vous inscrire pour répondre à cette question.

Questions connexes

0 votes
1 réponse 269 vues
Nous utilisons \w \w* dans le texte de la traduction pour marquer les termes bibliques qui ont des entrées de glossaire. ... le glossaire, cela ne forme pas de lien dans Paratext.
john_nystrom 312 posée août 22, 2022
0 votes
1 réponse 597 vues
Nous avons lié un terme biblique à une entrée du glossaire. Nous savons comment le lier à une autre entrée du glossaire, ... pour toute aide que vous pourrez m'apporter à ce sujet.
john_nystrom 312 posée févr. 21, 2023
0 votes
0 réponses 215 vues
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
posée févr. 23, 2017
+1 vote
1 réponse 361 vues
Nous avons lié Saint-Esprit (Asubane Noekene) à l'entrée correspondante de notre glossaire. Nous voulons maintenant également ... en place. Ou y aurait-il une meilleure solution ?
Anne Stoppels 106 posée sept. 18, 2024
+1 vote
1 réponse 597 vues
Lorsque vous saisissez des entrées de glossaire via l'outil des termes bibliques ou la fenêtre des rendus des ... La vidéo suivante décrit également cette procédure en détail :
[Expert]
Jeff_Shrum
2,9k
posée mars 23, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For just as each of us has one body with many members, and these members do not all have the same function, so in Christ we, though many, form one body, and each member belongs to all the others.
Romans 12:4-5
3,072 questions
6,034 réponses
5,703 commentaires
2,038 utilisateurs