Quote:
Originally Posted by Tex2002ans
Definitely don't ever do a Replace All with something like that though, you won't know what sort of rogue madness might happen.  (And I didn't test on an odd number of en dashes.)
|
Just the thought of the chaos if I did replace all makes my hair stand on end.
Quote:
Originally Posted by Tex2002ans
Find: – (\w*[^\.\?!]+?) –
Replace: – \1 –
Hopefully it works, and it will at least save you a lot of time. The rest can probably then be found with a simple:
Find: – <--- Put a space before or after the en dash
|
[/QUOTE]
Yes that is my method although I am making epub3 so my replace is
– \1 –
Previously I was searching for
– (.*) –
but very often you can have several dashes in the same paragraph but not the same sentence and as I said, I frequently work on books with hundreds of dashes so the more efficient and refined my search is the better.
I search first for a complete set followed by a comma, then complete set no comma, then one dash + comma and then one dash alone. I might be able to combine some of those steps now that I have the more refined search, we'll see.