[consulting] Input Filter Module for mdash: Does it Exist?
Sam Cohen
sam at samcohen.com
Wed Sep 30 19:32:45 UTC 2009
I didn't know about typogriphy module, but if that doesn't work for you, you
can always run the content through a str_replace in template php, replacing
all -- or --- with —
Sam
On Wed, Sep 30, 2009 at 2:55 PM, Owen Barton <drupal at owenbarton.com> wrote:
> 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 (—) 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
>>
>>
>
> _______________________________________________
> 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/34c38f5a/attachment.htm>
More information about the consulting
mailing list