0 票
505 次浏览

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 分) 发布 | 505 次浏览

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 次浏览
对于《诗篇》这本书,我们希望在书名和目录中使用复数形式 诗篇 ,而在引用时使用单数形式 诗篇 书名: 长名 (toc1):诗篇 短名 (toc2):诗篇 缩写 (toc3):诗 经文引用: 长名:诗 ... ) 我该怎么做?我应该把单数形式放在经文引用设置(Scripture Reference Settings)中,把复数形式放在 USFM 文本中吗?
bit 495 发布 提问于 十一月 12, 2021
0 票
3 个回答 534 次浏览
在给出跨章节的经文引用时,Komba 团队更喜欢将其标记为如下格式:1:1 - 3:5 也就是说,使用 - 然而,似乎 经文引用设置 (Scripture Reference Settings)无法处理仅在字符后有空格的情况,而字符前有空格时则 ... 他人也将此作为首选惯例 对于这个团队来说,没有空格的长破折号(em-dash)太长了,而且看起来不美观
anon142050 118 发布 提问于 四月 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?
匿名用户 发布 提问于 四月 10, 2015
0 票
4 个回答 871 次浏览
我遇到了一堆因复制粘贴而 生病 的脚注:脚注引用(\fr)是错误的,并在 引用检查 (References check)中生成 引用不存在 (Reference does not exist)错误 在我看来,当系统可以从脚注所在位置获取该信息时,在脚 ... 更好的是,有一个全局/出版选项可以开启或关闭引用,这样你甚至完全不需要输入 \fr(或 \xo)
CraigF 237 发布 提问于 十月 23, 2020
0 票
2 个回答 566 次浏览
我正在与一个团队合作,他们希望将经文引用写成如下格式: \xt book_name rukuh # ayat #\xt* 其中 rukuh 意为 章 , ayat 意为 节 在许多情况下,我们不得不放弃让 Paratext 解析这些 ... Check)时,会出现数百个错误,提示 章分隔符后出现意外的书卷名 有没有办法绕过这个问题?
mnjames 1.9k 发布 提问于 九月 12, 2022
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,053 个问题
6,013 个回答
5,677 条评论
2,032 位用户