0 votes
414 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) | 414 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
4 answers 276 views
Is there a way to remove the blank line before the section heading when the heading is at the top of a column? I have space before and space after set to 0.
mlucas53 148 asked Jul 28, 2023
0 votes
1 answer 148 views
Would it be feasible to make the Remove +0 option remove all lines that only have the +0 option on them, but leave the lines ... out a bunch of unneeded lines. I am on 2.2.40.
LorenHawthorne 173 asked Nov 23, 2022
0 votes
1 answer 214 views
We have upgraded many of our projects from Paratext 7.5 to Paratext 8. What we need now is to remove those ... list of projects to be removed to that concerned person. anon242407.
anon242407 138 asked Oct 19, 2017
0 votes
0 answers 153 views
Is there an easy way to remove Glossary Markup automatically (in bulk)? I will add this as a feature request. It can be done at ... \w* Then use Edit > Replace to get rid of "\w "
anonymous asked May 12, 2015
0 votes
1 answer 157 views
We have a Paratext Project that has a local FLEx project associated with it. The FLEx project is not being ... everyone have the FLEx project - Questions - Paratext Supporter Site
MSEAIT_LT 478 asked Mar 2, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Give proper recognition to those widows who are really in need.
1 Timothy 5:3
3,037 questions
5,995 answers
5,661 comments
2,022 users