0 votes
275 views

I am helping with a project that has no formatting codes inserted in the Psalms. Is there a way to copy/replicate codes from one project to another one that already has the text in place?

EpiWaetMan

Paratext by (196 points) | 275 views

1 Answer

0 votes
Best answer

I don’t know of a way to copy format markers from one project into another that already has text.
But maybe some search and replace routines would get you most of the way there.

First, you could insert a \q1 before every verse marker with a search/replace like this:
search for: \v
replace with \q1 \v

Second, you could insert a \q2 after any punctuation mark that is not at the end of a verse, with this string in RegExPal

search for: ([;.,?:]\s)(?!\n)
replace with \1 \\q2

These would take text like this:

\c 23
A Psalm by David.
\v 1 Yahweh is my shepherd; I shall lack nothing.
\v 2 He makes me lie down in green pastures. He leads me beside still waters.
\v 3 He restores my soul. He guides me in the paths of righteousness for his name’s sake.
\v 4 Even though I walk through the valley of the shadow of death, I will fear no evil, for you are with me. Your rod and your staff, 2 they comfort me.
\v 5 You prepare a table before me in the presence of my enemies. You anoint my head with oil. My cup runs over.
\v 6 Surely goodness and loving kindness shall follow me all the days of my life, and I will dwell in Yahweh’s house forever.

And give you this:
\c 23 A Psalm by David.
\q1 \v 1 Yahweh is my shepherd;
\q2 I shall lack nothing.
\q1 \v 2 He makes me lie down in green pastures.
\q2 He leads me beside still waters.
\q1 \v 3 He restores my soul.
\q2 He guides me in the paths of righteousness for his name’s sake.
\q1 \v 4 Even though I walk through the valley of the shadow of death,
\q2 I will fear no evil,
\q2 for you are with me.
\q2 Your rod and your staff,
\q2 they comfort me.
\q1 \v 5 You prepare a table before me in the presence of my enemies.
\q2 You anoint my head with oil.
\q2 My cup runs over.
\q1 \v 6 Surely goodness and loving kindness shall follow me all the days of my life,
\q2 and I will dwell in Yahweh’s house forever.

You probably need to review this, for instance, this needs a marker for “A Psalm by David” and it probably has too many lines in verse 4.
What I would do is copy the book of Psalms into a temporary project, and experiment with this. If you got good results you could then import Psalms into the regular project, but if you got bad results you could just abandon the temporary project and you’d still have what you have now.

by [Expert]
(3.3k points)

reshown

Thanks for the ideas, sewhite!
EpiWaetMan

Related questions

+4 votes
1 answer 548 views
If you have Paratext installed, and want to reset your registration code (or perhaps it has been reset if you have ... , then start Paratext and it should accept the new code.
[Expert]
sewhite
3.3k
asked May 3, 2023
0 votes
2 answers 566 views
Do I have the right, as an administrator, to go to the Paratext Registry and look up the registration codes of the members of the project?
wdavidhj 1.4k asked May 12, 2019
0 votes
1 answer 217 views
All the text in a local translator's back translation project has suddenly become right justified, with the backslash ... to do that? See attachment for screen shot. anon101508
anon101508 117 asked May 9, 2017
0 votes
0 answers 47 views
Do there already exist any syntax highlighters for USFM? These could be in the forms of pattern matchers parsers ... d be to provide this functionality in other USFM editors.
Mercado 203 asked Oct 24, 2024
0 votes
2 answers 363 views
We work with translators from a number of dialects. I've just gotten to the point where I've created a separate Project ... Is there a way to migrate Notes to a different project?
Paul 642 asked Feb 7, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Dear friends, since God so loved us, we also ought to love one another.
1 John 4:11
3,044 questions
6,003 answers
5,671 comments
2,025 users