0 голосов
7 просмотров

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 назад от (108 очков)
назад изменено от | 7 просмотров

Пожалуйста, войдите или зарегистрируйтесь, чтобы ответить на этот вопрос.

Похожие вопросы

0 голосов
1 ответ 269 просмотров
Мы используем \w \w* в тексте перевода для разметки библейских терминов, у которых есть записи в глоссарии. В ... w \w* внутри глоссария, в Paratext ссылка не формируется.
john_nystrom 312 задал вопрос авг 22, 2022
0 голосов
1 ответ 597 просмотров
Мы связали библейский термин с записью глоссария. Мы знаем, как связать его с другой записью глоссария, но мы anon421222' ... помощь, которую вы можете мне оказать в этом вопросе.
john_nystrom 312 задал вопрос фев 21, 2023
0 голосов
0 ответов 215 просмотров
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
задал вопрос фев 23, 2017
+1 голос
1 ответ 361 просмотров
Мы связали Святой Дух (Asubane Noekene) с соответствующей записью в нашем глоссарии. Теперь мы также хотим связать ... затем вернуть всё обратно. Или есть ли лучшее решение?
Anne Stoppels 106 задал вопрос сен 18, 2024
+1 голос
1 ответ 597 просмотров
Когда вы вводите записи в глоссарий через инструмент Библийские термины или окно Варианты перевода библийских ... В следующем видео эта процедура описана более подробно:
[Expert]
Jeff_Shrum
2,9тыс.
задал вопрос мар 23, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Live in harmony with one another. Do not be proud, but be willing to associate with people of low position. Do not be conceited.
Romans 12:16
3,072 вопросов
6,034 ответов
5,703 комментариев
2,038 пользователей