0 votes
410 views

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 by (155 points) | 410 views

3 Answers

0 votes
Best answer

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.

by (304 points)
0 votes

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.

by (418 points)
0 votes

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.

by (155 points)

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:
:

Related questions

0 votes
1 answer 9.1k views
When it comes to the book of Psalms, we would like to use the plural Psalms in book titles and in the ... the Scripture Reference Settings, and the plural in the USFM text?
bit 495 asked Nov 12, 2021
0 votes
3 answers 386 views
When giving scripture references across chapters the Komba team prefers to mark it as follows 1:1 - 3:5. That is to say - ... no spaces is too long and is not pleasing to the eye.
anon142050 118 asked Apr 17, 2019
0 votes
2 answers 271 views
When you make corrections to \toc headers, the Book Names under Scripture Reference Settings don’t seem to update automatically. Is that by design?
anonymous asked Apr 10, 2015
0 votes
2 answers 447 views
I'm working with a team who want to write out scripture references like this: \xt book_name rukuh # ayat #\xt* ... after chapter separator . Is there any way to get around that?
mnjames 1.9k asked Sep 12, 2022
+1 vote
1 answer 38 views
My problem: Sometimes in the maintext, the footnote caller auto-created in an alphabet order prints in the end of ... In PTXPrints, how to print the new footnote caller formatting?
Y Mdu Niê 124 asked Jan 14
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, purifies us from all sin.
1 John 1:7
3,037 questions
5,995 answers
5,661 comments
2,022 users