0 suara
505 tampilan

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!

Postingan lama - ditampilkan dalam bahasa aslinya
Paratext oleh (155 poin) | 505 tampilan

3 Jawaban

0 suara
Jawaban terbaik

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.

Postingan lama - ditampilkan dalam bahasa aslinya
oleh (304 poin)
0 suara

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.

Postingan lama - ditampilkan dalam bahasa aslinya
oleh (418 poin)
0 suara

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.

Postingan lama - ditampilkan dalam bahasa aslinya
oleh (155 poin)

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)

Postingan lama - ditampilkan dalam bahasa aslinya

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

Postingan lama - ditampilkan dalam bahasa aslinya

Pertanyaan terkait

0 suara
1 jawaban 9,5k tampilan
Mengenai kitab Mazmur, kami ingin menggunakan bentuk jamak Mazmur-mazmur dalam judul buku dan daftar isi, tetapi ... Scripture Reference Settings, dan bentuk jamak di teks USFM?
bit 495 bertanya Nov 12, 2021
0 suara
3 jawaban 534 tampilan
Saat memberikan referensi Kitab Suci yang melintasi pasal, tim Komba lebih memilih menandainya sebagai berikut 1:1 - 3 ... em tanpa spasi terlalu panjang dan tidak enak dipandang.
anon142050 118 bertanya Apr 17, 2019
0 suara
2 jawaban 355 tampilan
When you make corrections to \toc headers, the Book Names under Scripture Reference Settings don’t seem to update automatically. Is that by design?
anonim bertanya Apr 10, 2015
0 suara
4 jawaban 871 tampilan
Saya menghadapi banyak catatan kaki yang menderita dari "cut-and-paste-itis": referensi catatan kaki (\fr) salah dan ... tidak perlu memasukkan \fr (atau \xo) sama sekali.
CraigF 237 bertanya Okt 23, 2020
0 suara
2 jawaban 566 tampilan
Saya sedang bekerja dengan sebuah tim yang ingin menulis referensi ayat seperti ini: \xt book_name rukuh # ayat # ... chapter separator . Apakah ada cara untuk menghindari itu?
mnjames 1,9k bertanya Sep 12, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For where two or three gather in my name, there am I with them.
Matthew 18:20
3,053 pertanyaan
6,013 jawaban
5,677 komentar
2,032 pengguna