SmartyPants is a free web publishing plug-in for Movable Type, Blosxom, and BBEdit that easily translates plain ASCII punctuation characters into “smart” typographic punctuation HTML entities.
The library converts ASCII to HTML using PHP code instead of Perl.
SmartyPants does not modify characters within <pre>, <code>, <kbd>, or <script> tag blocks.
The library comes in an enhanced form, known as PHP SmartyPants Typographer.
This special version of PHP SmartyPants implements some features currently not available with the plain SmartyPants tools.
Typographer adds support for different quotation marks as well as for converting normal spaces to unbreakable spaces and thus preventing inappropriate line breaks.
Here are some key features of "PHP SmartyPants":
· Straight quotes ( " and ' ) into “curly” quote HTML entities
· Backticks-style quotes (``like this'') into “curly” quote HTML entities
· Dashes (“--” and “---” into en- and em-dash entities
· Three consecutive dots (“...” into an ellipsis entity
Requirements:
· PHP 4.0.5 or higher