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* 来标记具有术语表条目的圣经术语。结果是创建了一个链接,该链接在 Paratext 内部和电子出版物中都能正常工作。有没有办法在术语表条目内部执行相同的操作,以引用另一个术语表条目,从而在电子出版物中创建指向该条目的链接?如果我在术语表内使用 \w…\w*,在 Paratext 中并不会形成链接。
john_nystrom 312 发布 提问于 八月 22, 2022
0 票
1 个回答 597 次浏览
我们将一个圣经术语链接到了一个词汇表条目。我们知道如何将其链接到另一个词汇表条目,但我们 anon421222’t 不想那样做。我们只是想取消链接。我还没有发现如何做到这一点。感谢你们能提供的任何帮助。
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)链接到我们术语表中对应的条目 现在我们也想将 圣 (noekene)链接到术语表 然而,这两个 圣 (noekenes)将会重叠并导致冲突 该如何处理这种情况?有人给我们提了一个建议: 可能有一些变通 ... 其他内容(在译文和术语表关键词中都要改),然后应用链接,然后再改回来 或者是否有更好的解决方案?
Anne Stoppels 106 发布 提问于 九月 18, 2024
+1 票
1 个回答 597 次浏览
当您通过 圣经术语 工具或 圣经术语译法 窗口输入词汇表条目时,Paratext 会将这些条目链接到相应的圣经术语,并确定如何对词汇表条目进行排序 (它使用项目设置中的排序顺序来实现这一点 )如果您在使用 圣经术语 工具之前手动创 ... 帮助中的 如何将现有词汇表条目与圣经术语关联 部分阅读有关此内容的说明 以下视频更详细地描述了此过程:
[Expert]
Jeff_Shrum
2.9k 发布
提问于 三月 23, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
3,072 个问题
6,034 个回答
5,703 条评论
2,038 位用户