Quote:
Originally Posted by JSWolf
But then you still have to do it my way to handle any unmatched sets. So this is just one extra S/R that doesn't need to be done. Yes, you can get unmatched sets when you have a new paragraph in the middle of someone talking.
|

I did not think of that. Not sure how I'd deal with that, your solution certainly works but there should be a more elegant solution. Maybe impossible without a macro.
That is, unless based on the later discussion it doesn't matter for languages that would use a guillemet.
Possibly do as SmartyPants does and use two regexes, testing for the presence of preceding/succeeding text, which then blows up when random spaces are blatantly inserted.
I like using matched pairs to protect against the misuse of the character in question. Probably not important in a case of a character that has
no other use, but still, on general principle...
Quote:
Originally Posted by Arran
Very interesting your discussion here. The only thing what interests me is to change the German way of using »...« to the Swiss way «...». And this is only important in Books written in German, as 98% of books written in English use anyway the typographically wrong "...". See Wikipedia about correct quotation marks..
But that would probably merit another topic.
I have tried it with «eschwarz's» suggestion search after «»([^«»]*)«» and replace with «\1». That did the job with a book of 225 pages perfectly.
So thanks all again for your help.
|
Well, so long as it worked for the case used.