josSmartyPants mambot

Tags: , , ,

One more mambot for you! The mambot josSmartyPants is based on PHP SmartyPants Typographer. Typographer is an extension to SmartyPants adding support for different quotation marks as well as for converting normal spaces to unbreakable spaces and thus preventing inappropriate line breaks. SmartyPants can perform the following transformations:

  • 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

SmartyPants does not modify characters within <pre>, <code>, <kbd>, or <script> tag blocks. Typically, these tags are used to display text where smart quotes and other “smart punctuation” would not be appropriate, such as source code or example markup.

It is recommended to make a mambot the last in the list of calls of mambots of a content group so that it doesn’t change the information in constructions of a kind {mosimage ...}, etc.

Download josSmartyPants

Related Posts

One Response to “josSmartyPants mambot”

  1. 1
    Lee Says:

    Great mambot this, any plans for releasing a native joomla 1.5 version?

    Thanks

You can follow any responses to this entry through the RSS 2.0 feed.

Leave a Reply