0 票
10 次瀏覽

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 點) 提出
前 已編輯 由 提出 | 10 次瀏覽

請 登入 或 註冊 以回答此問題。

相關問題

0 票
1 個回答 269 次瀏覽
我們在翻譯文本中使用 \w…\w* 來標記具有詞條的「Biblical Terms」。這樣做的結果是,會建立一個在 Paratext 和電子出版物中都能正常運作的連結。請問是否有辦法在詞條內部執行相同的操作,以引用另一個詞條,從而在電子出版物中建立指向該詞條的連結?如果我在詞條內使用 \w…\w*,在 Paratext 中並不會形成連結。
john_nystrom 312 提出 已提問 8月 22, 2022
0 票
1 個回答 597 次瀏覽
我們已將一個聖經術語連結到詞彙表項目。我們知道如何將其連結到另一個詞彙表項目,但我們 anon421222’t 想那樣做。我們只是想取消連結。我尚未找到這樣做的方法。感謝您能提供任何幫助。
john_nystrom 312 提出 已提問 2月 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 提出
已提問 2月 23, 2017
+1 票
1 個回答 361 次瀏覽
我們已經將 Holy Spirit (Asubane Noekene) 連結到詞彙表中對應的項目 現在我們也想將 holy (noekene) 連結到詞彙表 然而,兩個 holy (noekenes) 會重疊並導致衝突 該如何處理這個問題?有人給我們的建議是 ... 內容(包括翻譯文本和詞彙表中的關鍵詞),然後套用連結,再改回來 或者有沒有更好的解決方案?
Anne Stoppels 106 提出 已提問 9月 18, 2024
+1 票
1 個回答 597 次瀏覽
當您透過「聖經術語」工具或「聖經術語呈現」視窗輸入術語表條目時,Paratext 會將這些條目連結到聖經術語,並能決定如何排序這些術語表條目 (它使用專案設定中的排序順序來執行此操作 )如果您在使用「聖經術語」工具之前已手動建立了 ... 以在 Paratext 說明中的「如何將現有的術語表條目與聖經術語關聯」一節閱讀相關資訊 以下影片也詳細說明了此程序:
[Expert]
Jeff_Shrum
2.9k 提出
已提問 3月 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 個問題
6,034 個回答
5,703 則評論
2,038 位使用者