Hi Shai,<br><br>I believe <a href="http://drupal.org/project/typogrify">http://drupal.org/project/typogrify</a> 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.<br>
<br>Thanks!<br>- Owen<br><br><div class="gmail_quote">On Wed, Sep 30, 2009 at 10:53 AM, Shai Gluskin <span dir="ltr"><<a href="mailto:shai@content2zero.com">shai@content2zero.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey folks,<br><br>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.<br>
<br>Does something like that exist?<br><br>FYI to clean up old content I'm going to use the <a href="http://drupal.org/project/scanner" target="_blank">scanner module</a> 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.<br>
<br>Shai<br><a href="http://content2zero.com" target="_blank">Content2zero</a><br>
<br>_______________________________________________<br>
consulting mailing list<br>
<a href="mailto:consulting@drupal.org">consulting@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/consulting" target="_blank">http://lists.drupal.org/mailman/listinfo/consulting</a><br>
<br></blockquote></div><br>