0 票
504 次瀏覽

One of the projects I support has the following formatting for their chapter/verse references in footnotes (the part after the \fr and before the \ft tag) 31.5 rather than 31:5 which is what they want. I had them check their scripture reference settings and they specify a :.

Does anyone know how to get PT to convert the Footnote chapter/verse references to the desired format or does the team need to do that manually?

Thanks!

舊文章 - 以原文顯示
Paratext 由 (155 點) 提出 | 504 次瀏覽

3 個回答

0 票
最佳回答

It might be worth pointing out here that Paratext uses the current chapter/verse separator from the Reference Settings each time it inserts a footnote, but if the separator changes, existing footnotes are not affected. So at one point the chapter/verse separator must have been set to a full stop (period). Changing it to colon will result in all new footnotes using colon, but you will still need a regex to fix existing footnotes.

舊文章 - 以原文顯示
由 (304 點) 提出
0 票

It is fairly straightforward to do using RegexPal. I think Randy Hasty actually set up a batch of preconfigured regexes including one that that covers standardizing the footnote reference format. If you are familiar with RegexPal, I can try to send you a search and replace string that would fix the reference format, or you might be able to get the more complete preconfigured user menu that Randy already set up.

舊文章 - 以原文顯示
由 (418 點) 提出
0 票

Thanks! I figured that a regex could be a solution, but I wasn’t sure how exactly to use it.

Thanks for the input. I think we’ll be able to solve the problem from here.

舊文章 - 以原文顯示
由 (155 點) 提出

anon469793,
To find the period in the middle of a reference and change it to a colon I use the following in the Paratext Find/Replace.
Find:
regex:(?<=\d).(?=\d)
Replace:
:
This says, “use regex” to look for a period that is proceeded by a digit and followed by a digit and replace it with a colon.

Obviously if you have other places in the text where you have digit period digit and want to keep them you would need to expand the find. You might want to do a find first and examine the results to see if there are any items that need to be maintained (like $200.00)

舊文章 - 以原文顯示

To just get the \fr field you could expand the find to be:
Find:
regex:(?<=\fr \d+).(?=\d)
Replace:
:

舊文章 - 以原文顯示

相關問題

0 票
1 個回答 9.5k 次瀏覽
關於《詩篇》這本書,我們希望在書名和目錄中使用複數形式「Psalms」,但在經文引用中使用單數形式「Psalm」 書名: 長格式 (toc1):詩篇(The book of Psalms) 短格式 (toc2): ... 應該在「經文引用設定」(Scripture Reference Settings)中填入單數形式,而在 USFM 文字中填入複數形式嗎?
bit 495 提出 已提問 11月 12, 2021
0 票
3 個回答 534 次瀏覽
在給出跨章節的經文參考時,Komba 團隊偏好以下標記方式:1:1 - 3:5 也就是說,使用 - 然而,似乎「經文參考設定」(Scripture Reference Settings)無法處理僅在字元後有空格 而在字元前無空格的情況 如果在字 ... 嗎?我猜測其他人也有此偏好慣例 對我們團隊來說,沒有空格的破折號(em-dash)太長,且視覺上不美觀
anon142050 118 提出 已提問 4月 17, 2019
0 票
2 個回答 355 次瀏覽
When you make corrections to \toc headers, the Book Names under Scripture Reference Settings don’t seem to update automatically. Is that by design?
匿名 提出 已提問 4月 10, 2015
0 票
4 個回答 871 次瀏覽
我遇到了一堆因複製貼上而出現問題的腳註:腳註引用(\fr)是錯誤的,並在「References」檢查中產生了「Reference does not exist」錯誤 我覺得,既然系統可以從該腳註的位置獲取資訊,就沒必要在腳註(或交叉引用)中手動 ... 呢?或者更好的是,提供一個全域/出版選項來開啟或關閉引用,這樣甚至完全不需要輸入 \fr(或 \xo)
CraigF 237 提出 已提問 10月 23, 2020
0 票
2 個回答 566 次瀏覽
我與一個團隊合作,他們希望將經文引用寫成如下格式: \xt book_name rukuh # ayat #\xt* 其中「rukuh」意為「章」,「ayat」意為「節」 在許多情況下,我們已經放棄讓 ... 顯示「Unexpected book after chapter separator」(章分隔符後出現意外書名) 有沒有辦法繞過這個問題?
mnjames 1.9k 提出 已提問 9月 12, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
How good and pleasant it is when God’s people live together in unity!
Psalm 133:1
3,053 個問題
6,013 個回答
5,677 則評論
2,032 位使用者