0 votos
9 visualizações

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 atrás por (108 pontos)
atrás editado por | 9 visualizações

Por favor, faça login ou registre-se para responder a esta pergunta.

Perguntas relacionadas

0 votos
1 resposta 269 visualizações
Estamos usando \w \w* no texto da tradução para marcar Termos Bíblicos que possuem entradas no glossário. O resultado é a ... no Paratext se eu usar \w \w* dentro do glossário.
john_nystrom 312 perguntada Ago 22, 2022
0 votos
1 resposta 597 visualizações
Vinculamos um Termo Bíblico a uma entrada do glossário. Sabemos como vinculá-lo a uma entrada diferente do glossário, ... Obrigado por qualquer ajuda que possam me dar sobre isso.
john_nystrom 312 perguntada Fev 21, 2023
0 votos
0 respostas 215 visualizações
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
perguntada Fev 23, 2017
+1 voto
1 resposta 361 visualizações
Vinculamos Espírito Santo (Asubane Noekene) à entrada correspondente no nosso glossário. Agora também queremos vincular santo ( ... mudar de volta. Ou haveria uma solução melhor?
Anne Stoppels 106 perguntada Set 18, 2024
+1 voto
1 resposta 597 visualizações
Quando você insere entradas no glossário por meio da ferramenta de Termos Bíblicos ou da janela de Renderizações de ... a seguir também descreve esse procedimento em mais detalhes:
[Expert]
Jeff_Shrum
2,9k
perguntada Mar 23, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Give proper recognition to those widows who are really in need.
1 Timothy 5:3
3,072 perguntas
6,034 respostas
5,703 comentários
2,038 usuários