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 \fig Caption|alt= ... 」工具是否已過時?如果是,是否有更好的方法可以批量將圖片插入專案中? Paulus+Kieviet
Paulus Kieviet 517 提出 已提問 1月 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 提出 已提問 11月 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 提出 已提問 9月 10, 2015
+1
2 個回答 490 次瀏覽
我們很喜歡基本檢查(Basic Checks)功能 請定期使用它們 有一個問題是 PT 無法應對真實語言的現實情況:我們收到太多關於「段落結尾缺少標點符號」的錯誤誤報 只要涉及引號,就會出現這種情況 請考慮以下情況:「這個德語句子的標點符 ... 自默默忍受?我在建立新主題之前總是會進行搜索,但找不到這個問題 如果已經有答案了,請不要生氣,並請發送連結
Tim 934 提出 已提問 2月 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 提出 已提問 8月 21, 2020
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Make every effort to keep the unity of the Spirit through the bond of peace.
Ephesians 4:3
3,045 個問題
6,005 個回答
5,671 則評論
2,026 位使用者