0 票
296 次浏览

我正在协助一个项目,该项目中的诗篇没有插入任何格式代码。有没有办法将代码从一个项目复制/复制到另一个已经包含文本的项目中?

EpiWaetMan

机器翻译自 English
Paratext 中 由 (196 分) 发布 | 296 次浏览

1 个回答

0 票
最佳答案

我不知道如何将格式标记从一个项目复制到另一个已经包含文本的项目中。
但也许使用一些查找和替换例程可以完成大部分工作。

首先,您可以使用以下查找/替换在每个节标记前插入 \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 节的行数可能过多。
我会将诗篇复制到临时项目中,并对此进行实验。如果结果良好,您可以将诗篇导入常规项目;如果结果不佳,您可以放弃临时项目,仍然保留当前的内容。

机器翻译自 English
由 [Expert]
(3.3k 分) 发布

已重新显示

谢谢你的建议,sewhite!
EpiWaetMan

机器翻译自 English

相关问题

+4 票
1 个回答 615 次浏览
如果您安装了 Paratext,并且想要重置注册码(或者如果您更改了组织,注册码可能已被重置),我发现 Paratext 中有一个恼人的 bug,可能会导致 ... SOFTWARE\Paratext\PreviousRegistrationCode 删除 PreviousRegistrationCode 值,然后启动 Paratext,它应该会接受新代码
[Expert]
sewhite
3.3k 发布
提问于 五月 3, 2023
0 票
2 个回答 655 次浏览
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 发布 提问于 五月 12, 2019
0 票
1 个回答 235 次浏览
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 发布 提问于 五月 9, 2017
0 票
0 个回答 64 次浏览
目前是否已经存在针对 USFM 的语法高亮工具? 这些工具可能以以下形式存在: 模式匹配器 解析器 语义高亮 我想知道在其他 USFM 编辑器中提供此功能有多困难。
Mercado 203 发布 提问于 十月 24, 2024
0 票
2 个回答 423 次浏览
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 发布 提问于 二月 7, 2018
Paratext 中
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For just as each of us has one body with many members, and these members do not all have the same function, so in Christ we, though many, form one body, and each member belongs to all the others.
Romans 12:4-5
3,052 个问题
6,011 个回答
5,677 条评论
2,031 位用户