0
366 次浏览

我想我应该就这个问题开启一个新话题,而不是在另一个话题的讨论中继续。

我想删除所有 \s 行(\s、\s1、\s2 等)。这些行是空的。我可以轻松删除标记,但我不确定如何删除这些行。

有人提出了以下两种解决方案,但都没有起作用:
\s\d? [^\]*(未找到任何 \s 标记)
\s\d? [^\r]+\r\n(逐行删除所有行,包括经文)

还有其他想法吗?

机器翻译自 English
Paratext (127 分) 发布
已重新显示 | 366 次浏览

2 个回答

0
最佳答案

Hi anon928451,

I think those the two RegEx you listed need another \ before \s at the beginning of the line.

Are there any \s which contain text, or are all \s in the project empty?

If they’re all empty, I think you can do a simple text search for \s and replace it with nothing. And then do another search for \s1, etc. You don’t need to use RegEx. Paratext will take care of cleaning up the empty lines. Of course, if you delete the \s and there was actually text after them, you’d be making a bit of a mess.

(607 分) 发布

完美。我不知道 Paratext 会删除空行。谢谢!

机器翻译自 English

Just to add to @LivingField’s comment, you should search for \s1, \s2, etc first, and only delete \s as the last thing.

Why? Because if you delete all the \s markers, every \s1 will just turn into a random 1 hanging out in the middle of your text.

0

为了澄清,在 RegEx Pal(位于 Paratext 主菜单下的 Advanced 中),你可以搜索 \\s\d? [^\r]+\r\n 并将其替换为无,以删除章节标题。这包括 LivingField 提到的额外反斜杠。(之前的发帖人在撰写帖子时可能没有将他们的正则表达式标记为“Preformatted text”,因此输出中的一个反斜杠被“吞掉”了。)

回复 @mnjames,这个正则表达式会自动处理所有形式的章节标题,\s\s1s2 等。正则表达式包含 \d?,这告诉它匹配一个可选的数字,因此它匹配所有这些章节标题形式。你不需要单独搜索 \s 标记。

机器翻译自 English
(1.4k 分) 发布

相关问题

0
1 个回答 308 次浏览
昨天,当一位用户打开 Paratext 9.1 时,收到了以下弹出警告信息: Le projet Ban sur votre ordinateur n'a pas pu être ouvert. .', valeur hexadécimale 0x00, est ... 以正常打开该项目,但每次打开 Paratext 时警告信息依然存在 我该如何消除它?
n8_in_car 298 发布 提问于 十一月 17, 2021
0
3 个回答 302 次浏览
我可以自定义回译项目的行距吗?
Michel 125 发布 提问于 十一月 4, 2023
0
2 个回答 399 次浏览
逐词对照工具(interlinearizer)中的 解析释义 (parse gloss)行内部是从哪里获取信息的?我开始尝试使用 PT 9.1 的逐词对照工具进行适配,由于更新到 PT 9.2 后情况发生了变化,我认 ... 行)出现了奇怪的信息 我该怎么办? 2022-03-04 11_21_20-Paratext 9.21264 269 13.6 KB
anon297911 424 发布 提问于 三月 4, 2022
0
1 个回答 275 次浏览
当我向 圣经术语 (Biblical Terms) 添加一个新术语或短语时,需要填写的内容之一是出现该术语的参考文献列表(每行一个),如下所示: 现在,假设我在 Paratext 外部 生成了这样一个列表,如下所示(Notepad++ ... 伯来语单词 עֶבֶד 被翻译为 (宫廷)官员 的所有地方 据我所知,在 Paratext 中无法生成这样的列表
viverechristus 296 发布 提问于 七月 15, 2021
0
2 个回答 357 次浏览
A team I support has been publishing selected Psalms and other chapters to their Scripture app as the chapters are approved ... might be useful to other teams in other regions too.
anon469793 155 发布 提问于 十一月 11, 2019
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Don’t you know that you yourselves are God’s temple and that God’s Spirit dwells in your midst?
1 Corinthians 3:16
3,048 个问题
6,007 个回答
5,672 条评论
2,028 位用户