0 votos
5 vistas

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 hace por (108 puntos)
hace editado por | 5 vistas

Por favor, inicie sesión o regístrese para responder a esta pregunta.

Preguntas relacionadas

0 votos
1 respuesta 269 vistas
Estamos usando \w \w* en el texto de la traducción para marcar los Términos Bíblicos que tienen entradas en el glosario. ... enlace en Paratext si uso \w \w* dentro del glosario.
john_nystrom 312 preguntada ago 22, 2022
0 votos
1 respuesta 597 vistas
Hemos vinculado un Término Bíblico a una entrada del glosario. Sabemos cómo vincularlo a una entrada diferente del ... Gracias por cualquier ayuda que puedan darme al respecto.
john_nystrom 312 preguntada feb 21, 2023
0 votos
0 respuestas 215 vistas
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
preguntada feb 23, 2017
+1 voto
1 respuesta 361 vistas
Hemos vinculado Espíritu Santo (Asubane Noekene) con la entrada correspondiente en nuestro glosario. Ahora también queremos ... cambiarlo de vuelta. O habría una mejor solución?
Anne Stoppels 106 preguntada sep 18, 2024
+1 voto
1 respuesta 597 vistas
Cuando introduce entradas del glosario a través de la herramienta de términos bíblicos o de la ventana de ... El siguiente vídeo describe este procedimiento con más detalle:
[Expert]
Jeff_Shrum
2,9k
preguntada mar 23, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Dear friends, since God so loved us, we also ought to love one another.
1 John 4:11
3,072 preguntas
6,034 respuestas
5,703 comentarios
2,038 usuarios