View Single Post
Old 05-12-2020, 09:56 AM   #106
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,768
Karma: 206758686
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Your suggestion of '\d\d[^0-9'] is not a bad one. There might be some things that fall through the cracks when the British style of single-quotes is employed, but they were going to be wrongly interpreted under the old rule too.

Give this beta version a workout. There's only three lines changed from version 0.3.3 of the plugin (lines 631-633 of newsmartypants.py), and two of those are comments.
Attached Files
File Type: zip PunctuationSmarten_v0.3.4b.zip (18.4 KB, 411 views)

Last edited by DiapDealer; 05-12-2020 at 10:27 AM.
DiapDealer is offline   Reply With Quote