View Single Post
Old 05-12-2020, 02:07 AM   #101
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
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.
AlanHK is offline   Reply With Quote