0
301 次浏览

Hi,
Does anyone know how I can find anywhere in my PT project where there are two quotes within the same paragraph? I can find them if they are in the same verse within the paragraph by using RegexPal:
\”(.*?)\“
But if there is a verse number between them, even though they are in the same paragraph, they don’t show up. What expression do I need to find them?

E.g. I want it to find Acts 10:17-18
\p While Peter was still trying to understand it, those 3 men from Cornelius walked into that town. They asked people, “Where does Simon live, the leather worker man? And the people told them how to get there. Then they went to that house and stood outside the gate, \v 18 and they asked, **“**Is Peter here?”

Thanks in advance :slight_smile:

较早的帖子 - 以原始语言显示
Paratext (213 分) 发布 | 301 次浏览

3 个回答

+1
最佳答案

After thinking about it I realized you can just use the text selector between quotes like this:
”([^\\]|\\(?!i?([dlmpqs]\w*|b)\s))*?“
I added the ?i so that it correctly selects text in introductory paragraphs.

较早的帖子 - 以原始语言显示
(1.8k 分) 发布
已重新显示

Perfect, thank you!!

较早的帖子 - 以原始语言显示
0

Indirect answer: It may be better in the long run to use Basic Checks > Quotations (cf. How do I check quotation marks?) and Quotation Rules (Guide: Checking > Quotation Rules)

Direct answer: use (?s)".*?"

较早的帖子 - 以原始语言显示
(872 分) 发布
0

This is a context that will find prose paragraphs

\\p\w*\s([^\\]|\\(?!([dlmpqs]\w*|b)\s))*?(?=\\([dlmpqs]\w*|b)\s|\Z):::

To find quotes in the paragraph just add what ever code you want to find the quoted passages. However I avoid using . to find any character because it is not efficient and will stop at line breaks unless you add (?s). I prefer to find any character except the one I am looking for like this: ”([^“]*?)“

So this is the full code:

\\p\w*\s([^\\]|\\(?!([dlmpqs]\w*|b)\s))*?(?=\\([dlmpqs]\w*|b)\s|\Z):::”([^“]*?)“

The context is somewhat complicated and could be simplified depending on your markup.
It starts with \\p\w*\s , which selects \p \pm \pmo \pi1 \pc etc. It continues until it finds a tag that marks the end of a paragraph or the end of the chapter \\([dlmpqs]\w*|b)\s|\Z , which here includes all the tags that begin with \d \l \m \p \q and \s and the tag \b (but not \bd). The text selector is ([^\\]|\\(?!([dlmpqs]\w*|b)\s))*? which means any character that is not \ or any \ that is not followed by one of the tags that mark the end of a paragraph.

较早的帖子 - 以原始语言显示
(1.8k 分) 发布
已重新显示

相关问题

0
3 个回答 442 次浏览
我试图使用自定义工具 插入交叉引用或脚注 (Insert crossreferences or footnotes)向项目中插入一组图片表达式(\fig \fig*) 据我所见,列表格式是正确的: \ref MAT 2:2 ... (Unsupported)的工具是否已经过时?如果是,是否有更好的方法批量向项目中插入图片? Paulus+Kieviet
Paulus Kieviet 517 发布 提问于 一月 25, 2023
0
3 个回答 282 次浏览
Hello, Anytime I use the \ip Introduction - Paragraph marker in Paratext, the words turns grey. I would be grateful if you can help me correct it. Thank you. anon878803
anon878803 132 发布 提问于 十一月 8, 2019
0
10 个回答 2.1k 次浏览
Is there are way to get the expressions on the User menu in RegEx Pal as a text file? The list of user ... . The latter could help us build a library of useful expressions.
wdavidhj 1.4k 发布 提问于 九月 10, 2015
+1
2 个回答 490 次浏览
我们喜欢使用基本检查(Basic Checks) 请定期使用它们 有一个问题,PT 无法应对真实语言的现实情况:我们收到了太多关于 段落末尾缺少标点符号 的误报 只要涉及引号,就会出现这种情况 请看这个例子: 这个德语句子标点正确,引号也 ... 受着这个问题?我在创建新主题之前总是进行搜索,但找不到这个问题 如果已经有答案了,请不要生气,并请发送链接
Tim 934 发布 提问于 二月 18, 2022
0
2 个回答 282 次浏览
When I run the Unmatched Pairs of Punctuation Check (PT 8 or 9), almost every opening quotation mark that starts a quote ... this case!). Any ideas on how to resolve this problem?
viverechristus 296 发布 提问于 八月 21, 2020
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Finally, all of you, be like-minded, be sympathetic, love one another, be compassionate and humble.
1 Peter 3:8
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户