Of course you’ve heard of SmartyPants, right? It’s that famous Movable Type and Blosxom plugin enabling authors to publish their weblogs with typographically elegant punctuations. That includes the famous Doug Bowman’s Stopdesign.
Unfortunately for WordPress users, those wanting to use it had little chance, with SmartyPants written in Perl, not in PHP. Not until Michel Fortin came out with PHP SmartyPants, a PHP port of the original written by John Gruber. However, his plugin implementation was all–or–nothing—use SmartyPants for all text in entries and comments, replacing Matt’s
texturize(), native in the WP codebase.
This is where SmartyPants On Demand comes in. My latest plugin allows WP publishers to use SmartyPants only when needed. But why not use SmartyPants all the time? My unscientific testing shows that it is slower than
texturize(), by as much as 20% in some situations.
Drop the plugin file in your plugins/ folder and activate. To apply it to an entry, just add a custom field named
smartypants-on-demand with a value of