A Little GREP help

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #72361
      Anne Wold
      Participant

      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?”

    • #72415
      Aaron Troia
      Participant

      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.

    • #72426
      Anne Wold
      Participant

      Thank you! Using this in a style I was able to find the broken quotes easily.

    • #72427
      Aaron Troia
      Participant

      No problem :)

    • #72473
      Masood Ahmad
      Participant

      Hi Anne,

      I think I answered this on your post:

      little grep help

      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…

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
>