WordPress.org

Ready to get started?Download WordPress

Forums

SmartyPants Type Plugin (9 posts)

  1. ChrisG
    Member
    Posted 9 years ago #

    Hello
    I'm currently an MT user, who after the fiasco of MT is interested in converting to WordPress :)
    I've seen most of the hacks I've installed on MT available for WordPress also, however I haven't seen one similar to SmartyPants (http://www.daringfireball.net/projects/smartypants/) what this plugin does is convert all of your characters such as " - -- etc to ampersand/entity so that they're XHTML compatible.
    Does such a thing exist for WordPress?
    Regards,
    Chris

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    Textile does that and more. WP has Textile and Textile2 available for your use.

  3. marky
    Member
    Posted 9 years ago #

    It's the "and more" part that I, personally, don't like about Textile. However, WP has a built-in feature that does everything SmartyPants does, Chris. You don't have to download any extra plugins, either. (The only difference that bothered me is that you need to type "---" to get an em-dash). :-)

  4. Anonymous
    Unregistered
    Posted 9 years ago #

    well there is a difference between a hyphen-minus (what we use on the keyboard) and an actual minus, em and en dash.. so something has to be done ;)

  5. idlyadam
    Member
    Posted 9 years ago #

    If you want to use SmartyPants with WordPress, you can grab this: Textile 2.0.2 and SmartyPants-PHP plugins.
    Basically, the SmartyPants plugin is just a wrapper for the SmartyPants-PHP distro, and if you want to use it without Textile 2 you'll need to add your own add_filter calls to the file. But if you enable Textile 2 -- even if you don't use any of the Textile 2 features -- it will SmartyPants your text. If you don't enable SmartyPants, the Textile 2 plugin uses wptexturize().
    This is actually a different implementation of Textile 2 that more closely mirrors the MT version by Brad Choate, not a hacked-up version of the one that ships with WP.

  6. Leam
    Member
    Posted 9 years ago #

    I'm making a mini-wrapper for SmartyPants-PHP. It may still have a few bugs, but I'm double-checking, and should have something to post, soon.

  7. MichelFortin
    Member
    Posted 9 years ago #

    You may also try my own PHP port of SmartyPants. It already works as a WordPress plugin, just like PHP Markdown.

    http://www.michelf.com/projects/php-smartypants/

  8. sleep
    Member
    Posted 9 years ago #

    well there is a difference between a hyphen-minus (what we use on the keyboard) and an actual minus, em and en dash.. so something has to be done ;)

    WP converts "---" to an em dash because it converts "--" to an en dash. Just need to stutter a little longer to get an em dash...

  9. Leam
    Member
    Posted 9 years ago #

    Less work for me!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.