Quote:
Originally Posted by arspr
Be really careful when detecting straight single quotes BEFORE words as in English there are at least two very different uses:
'em >>> Contractions, so you should substitute by a RIGHT/CLOSING curly quote.
|
I use these Regex in Sigil after running any sort of "Smarten Punctuation":
Note: That is a LEFT single quote in the
Search.
Search: ‘([Tt]was\b)
Replace: ’\1
Search: ‘([Tt]is\b)
Replace: ’\1
Search: ‘([Ee]m\b)
Replace: ’\1
This works on your common words: 'twas, 'tis, 'em. (I am not too sure how many others there are, but those three are the only ones I run across in the books I work on).
I also do a Regex for this one and replace on a case-by-case basis for this one:
Search: ‘([0-9])
Replace: ’\1
Which is typically used when shortening decades: ’90s, ’00s, ’60s, ...