[consulting] Input Filter Module for mdash: Does it Exist?

Owen Barton drupal at owenbarton.com
Wed Sep 30 18:55:45 UTC 2009


Hi Shai,

I believe http://drupal.org/project/typogrify does exactly what you are
looking for - it uses smartypants, and can create either en or em dashes
depending on the number of hyphens and configuration.

Thanks!
- Owen

On Wed, Sep 30, 2009 at 10:53 AM, Shai Gluskin <shai at content2zero.com>wrote:

> Hey folks,
>
> On one of my sites there is an editor who loves putting in parenthetical
> phrases in his sentences using what should be an mdash. But instead he uses
> a single, double or even a triple hyphen, sometimes surrounded by spaces,
> sometimes not. I want to train him to use a double hyphen that I want to
> replace with an mdash (&mdash;) via an input filter.
>
> Does something like that exist?
>
> FYI to clean up old content I'm going to use the scanner module<http://drupal.org/project/scanner>which looks great. If I find or write an input filter for the mdash, it's
> likely that when I clean up the old content, I'll just make the double
> hyphen presentation consistent and not actually put the character entity
> code in the database.
>
> Shai
> Content2zero <http://content2zero.com>
>
> _______________________________________________
> consulting mailing list
> consulting at drupal.org
> http://lists.drupal.org/mailman/listinfo/consulting
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/consulting/attachments/20090930/4ed6a570/attachment.htm>


More information about the consulting mailing list