我不知道有辦法將格式標記從一個專案複製到另一個已有文本的專案中。
但或許使用一些搜尋與取代常規程序可以讓你完成大部分的工作。
首先,你可以使用如下搜尋/取代,在每個節標記前插入 \q1:
搜尋:\v
取代為:\q1 \v
其次,你可以使用 RegExPal 中的此字串,在任何非節末的標點符號後插入 \q2
搜尋:([;.,?:]\s)(?!\n)
取代為: \1 \\q2
這些操作將把如下文本:
\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.
變成這樣:
\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.
你可能需要審查這些結果,例如,「A Psalm by David」需要一個標記,而且第 4 節可能行數過多。
我會將詩篇複製到一個臨時專案中,並進行實驗。如果你得到了良好的結果,你可以將詩篇導入常規專案;但如果結果不佳,你只需放棄該臨時專案,你仍然會保留目前的狀態。
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.
機器翻譯自 English