View Single Post
Old 09-10-2014, 01:55 PM   #22
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by JSWolf View Post
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 View Post
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.

Last edited by eschwartz; 09-10-2014 at 01:57 PM.
eschwartz is offline   Reply With Quote