Cocoa Smart Quotes

David Dunham’s NSTextView smart quotes implementation, based on an algorithm he developed almost 20 years ago and which was used in both PageMaker and WriteNow. His algorithm looks good to me, and I very like his distinction regarding the term “smart quotes”: that it refers to the automatic replacement of straight quotes with correct quotes, not to the curly quote characters themselves. A subject near and dear to my heart. (Via Rentzsch.)

Wednesday, 12 April 2006