A Little GREP help
- This topic has 4 replies, 3 voices, and was last updated 9 years, 3 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / A Little GREP help
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / A Little GREP help
Tagged: GREP
I am trying to clean up an ebook I converted from PDF. I have figured out how to corrected most of the mistakes that crept in but I am having a hard time figuring out an easy way to find quoted text that has broken over 2 paragraphs.
EX:
“Why haven’t you told them?” I’d demanded, sitting down but doing nothing about taking wine. “Don’t you think they have a right to know what they’re sharing a camp with?
Will you be happier if one of them finds out the hard way?”
You can try something like this, which will find instances of a closing quotation mark but no opening quotation mark:
^[^\“]+\”
or
^[^~{]+~}
or for just opening quotation mark with no closing quotation mark:
\“[^”]+$
or
~{[^~}]+$
I used unicode opening and closing quotation marks in the first ones, and in the second I used the InDesign Specific double opening (~{) and closing (~}) quotation marks. Anyway, hope that helps.
Thank you! Using this in a style I was able to find the broken quotes easily.
No problem :)
Hi Anne,
I think I answered this on your post:
I quote it again:
Hi Anne, Try this using GREP Find/Change
Find what:
“.+\r.+?”
(i.e. double quotes-dot-plus sign-backslash r-dot-plus sign-question mark-double quotes)
any queries, please revert back…
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!