How to do paragraph start (>>) in square brackets ([])?

General comments and questions. Technical support.
Post Reply
Alan
Posts: 247
Joined: Wed Jul 24, 2002 11:57 am
Location: TN USA

How to do paragraph start (>>) in square brackets ([])?

Post by Alan »

I have come across a book where all the speech is occurring between left & right single quotes. I want to replace this with the standard Quote Mark ("). In the OCR text I use Find what: (')([^32^p]) and Replace with: "\2 to get what I want for ending quotes. I want to replace the apostrophe (single left quote in book) from the OCR text at the beginning of sentences with a Quote Mark. I tried ([>>^32])(') but the beginning of paragraph symbol (>>) is taken as 2 separate Greater-Than Signs (>). Is there a way to do this other than ([^p^32])(') as it selects 2 paragraphs and then I cannot also change only the quote Paragraph Style for the paragraph style I want?
Atlantis 4.3
Windows 10 Pro 64-bit
User avatar
admin
Site Admin
Posts: 2720
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Re: How to do paragraph start (>>) in square brackets ([])?

Post by admin »

What about the following "Find what" pattern:

[^p^w]|'|

^w stands for "white space" (a sequence of any space characters).
Any text outside the pair of vertical bars does not get selected in the document.

The "Replace with" pattern could be just a single character (a double quote):

"

And you can also apply a paragraph style to the replacement.
Alan
Posts: 247
Joined: Wed Jul 24, 2002 11:57 am
Location: TN USA

Re: How to do paragraph start (>>) in square brackets ([])?

Post by Alan »

Thanks Admin,
That works perfectly.

Alan
Atlantis 4.3
Windows 10 Pro 64-bit
Post Reply