Another problem/edge case, whatever: abbreviated years.
In the summer of '42.
converts to
In the summer of ‘42.
Algorithmically, I think you could do these correctly by making apostrophe for
'\d\d[^0-9']
and open quote otherwise (as it does now). This would allow for a quoted number: He hit a '21' in baccarat.
I work around this now by searching for ‘\d in a book after converting and change as appropriate.
If there aren't too many left quotes in a book I check them all and usually find a few odd ones that should be apostrophes. Cockney is a nightmare.
Incidentally, I notice many commercial ebooks get both these wrong.
|