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,5тыс. просмотров
Что касается книги Псалтири, мы хотели бы использовать множественное число Псалтирь в названиях книг и в оглавлении, но ... ссылок на Писание, а множественное - в тексте USFM?
bit 495 задал вопрос ноя 12, 2021
0 голосов
3 ответов 534 просмотров
При указании ссылок на Писание, охватывающих несколько глав, команда Komba предпочитает оформлять их следующим образом: ... тире без пробелов слишком длинное и выглядит некрасиво.
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) неверна и вызывает ... чтобы вообще не нужно было вводить \fr (или \xo).
CraigF 237 задал вопрос окт 23, 2020
0 голосов
2 ответов 566 просмотров
Я работаю с командой, которая хочет записывать ссылки на Писание вот так: \xt book_name rukuh # ayat #\xt* где ... книга после разделителя глав). Есть ли способ обойти это?
mnjames 1,9тыс. задал вопрос сен 12, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And I tell you that you are Peter, and on this rock I will build my church, and the gates of Hades will not overcome it.
Matthew 16:18
3,053 вопросов
6,013 ответов
5,677 комментариев
2,032 пользователей