Forum: Redcloth Re: Just Typographer's Quotes?

192afe70f36c6bdbdc88f3bb09fb7028?d=identicon&s=25 Brian Christian (Guest)
on 2013-05-02 23:59
(Received via mailing list)
DaveE, That's a reasonable approach, but I don't want to force users to
have to remember curly quotes when creating content. I'd rather do it at
the moment of display.

Magnus, RubyPants is a great solution, but I can't help noticing that
RedCloth is much smarter than RubyPants about sentences like 'Tis true
that
I met him in '04. RedCloth correctly makes both single quotes into
close-quotes, whereas RubyPants incorrectly makes both of them into
open-quotes.

So I guess I'm still looking for a way to either use just the quotes
functionality of RedCloth (i.e., not parsing asterisks or underscores,
etc.), or a way to tweak RubyPants (or an alternative) to bring it up to
RedCloth's level of correctness for parsing quotes.

Any thoughts?
C94743fafb1114f9742bf7a16a2e11d7?d=identicon&s=25 Dave Everitt (Guest)
on 2013-05-03 11:00
(Received via mailing list)
Hi Brian - I use Kramdown (for its multimarkdown support) - it also
converts single and double "inch" and 'foot' marks into typographic
quotes, but since the source material determines how the parser works
through the text, I can't say if the conversion is any more reliable
than RubyPants, or any easier to extract the snippet that does the
conversion - source: https://github.com/gettalong/kramdown - DaveE
This topic is locked and can not be replied to.