0 votes
435 views

Hi,
Can anyone help me please with a regex that will work to put in PrintDraftChanges.txt that will remove all verse segments in a text? Some verses have e.g. up to 5 segments (v14a, v14b, v14c, v14d, v14e). I simply want the verse to be normal. I’m guessing that means changing all the a’s to just the verse number, and removing all remaining references to the segments.
Thank you,

PTXprint by (424 points) | 435 views

5 Answers

0 votes

Hi,

try:

(\v \d+?)a > \1

(\v \d+?)[b-z] >

Mark Skinner

by (129 points)
reshown
0 votes

Totally untested but…

"(\\v\s+\d+)a" > "\1"
"(\\v\s+\d+)[b-z]" > ""

Ought to be pretty close…
CAPTURE{A literal back-slash, a v, one space or more, one digit or more}then an a. becomes what was captured.
The second line doesn’t actually need to capture anything, but it shouldn’t slow things down much, I hope, and it keeps the symmetry.

by (1.1k points)

This is great. It partially solves one question I’ve had, but we need the ability to include OR exclude the verse segment markers for specific purposes.

We added verse segments into the Gospel passages that are regularly dramatized at Christmas and Easter, to automate printing the drama scripts from a PT Module file. The segments signal change of speaker/actor in our Module spec. (when more than one speaker speaks within a verse). It would be great to strip the segments for other publication types, but if I add these lines to PrintDraftChanges.txt it will strip out the V segments for all pubs, unless someone remembers to comment out the lines when we print the drama scripts for Years A,B,C. We’ve been printing them yearly for in-progress translations, as the text isn’t finalized. I myself might be able to remember to do this but others to whom I hope to delegate this job will not necessarily handle it well.

So I would like to request, if it’s not already available:

A place to store certain PrintDraftChanges and other formatting tweaks in the Saved Layout spec, because certain publications need specific tweaks. Perhaps even a tag in PrintDraftChanges.txt to specify include/exclude a custom statement?

0 votes

HI Mark! it looks like you hit send just before I did! Bracket things in back-ticks to avoid double-slashes displaying as a single one.

by (1.1k points)

Good catch.

Mark Skinner

0 votes

That seems to work great, thanks. Just a note to anyone else who might use it, that you need to check any footnotes don’t reference verse segments and adjust accordingly.

by (424 points)
0 votes

Hi @Kim_Blewett ,
We have that ability already in PTXprint, where you can write configuration-specific rules in changes.txt and those only apply to the one configuration. (In addition, you can include printdraftchanges.txt) for any rules that need to apply to ALL configurations, regardless of which configuration you’re running at the time. I hope this slide helps you understand it a bit better.

by (3.2k points)

Related questions

0 votes
1 answer 56 views
I have lines like this in a custom.vrs file: *REV 21:6,a,b I have USFM marking like this in Paratext: \v 6a ... 'm missing? I'd rather not print more than required. Thanks, Paul
Paul 642 asked Oct 21, 2024
0 votes
4 answers 414 views
To view the versions of a project in which there were changes to one or more verses: Click anywhere in one verse or ... do-i-revert-text-from-an-earlier-version-of-a-project/541)
[Expert]
anon421222
735
asked Feb 23, 2017
0 votes
1 answer 58 views
I'm looking for help with the proper formatting for verse segments (e.g., 1a, 1b, 1c, etc.) in Paratext. I'm working ... If you have any advice / tips, I'm all ears! Thanks, Paul
Paul 642 asked Nov 14, 2024
0 votes
2 answers 383 views
I'm having problems with the back-translation progress marking and verses that are marked with segments (a, b, c, ... there a problem with the progress boxes and the markup? Thanks
anon297911 424 asked Oct 29, 2020
0 votes
1 answer 106 views
The PTXPrint project in question is constructed in the peripherals section using the following Selected Front Matter PDF(s) ... g. Roman) page numbers to the front matter PDF?
Alastair 102 asked Jan 15, 2025
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For we were all baptized by one Spirit so as to form one body—whether Jews or Gentiles, slave or free—and we were all given the one Spirit to drink.
1 Corinthians 12:13
3,039 questions
5,994 answers
5,661 comments
2,022 users