#24 ✓invalid
Paweł Gościcki

Double low-9 quotation mark for use with languages other than English

Reported by Paweł Gościcki | July 25th, 2008 @ 06:30 PM

In English, when using double quotes, both left and right are “top” ones:

RedCloth.new('He really is "the greatest".').to_html
=> "<p>He really is &#8220;the greatest&#8221;.</p>"

Which is correct. In Polish and probably some other languages, however, instead of the left double quotation mark the double low-9 quotation mark should be used (the normal “top” double quote is incorrect). It could be done with a switch:

RedCloth.new('On naprawdę jest "najlepszy".', [:low_double_quotes]).to_html
=> "<p>On naprawdę jest &#8222;najlepszy&#8221;.</p>"

The switch could also be called :low_left_double_quote or similarly.

While it might seem insignificant it certainly is important for editors, people in dtp/typography and folks like me, the pedant ones.

Comments and changes to this ticket

  • Paweł Gościcki

    Paweł Gościcki July 25th, 2008 @ 06:31 PM

    • Title changed from “Double low-9 quotation mark use with languages other than English” to “Double low-9 quotation mark for use with languages other than English”
  • Jason Garber

    Jason Garber July 29th, 2008 @ 10:46 AM

    • State changed from “new” to “invalid”

    I'm afraid I can't implement that. I don't want to clutter the API with myriad options for a small minorities. You add a double low-9 quotation option for Polish and double high-6 for Lithuanian and double high-9s for Swedish and angle quotes for Italian and guillemets with spaces for the French—where does it end? Besides, that argument is for specifying restrictions—what the user is not allowed to do.

    The formatters are Ruby modules so you can override their methods. Just make yourself a module that uses quotes the way you want and then include it in the formatter or extend the RedCloth object with it. Or, make yourself a new formatter like RedCloth::Formatters::HTML::Polish and include the HTML module. Then you can use the #to method to employ your formatter.

  • Paweł Gościcki

    Paweł Gościcki July 30th, 2008 @ 04:00 AM

    Fair enough. I'll have to take a look at that...

  • Paweł Gościcki

    Paweł Gościcki October 8th, 2008 @ 04:56 PM

    To anyone interested, I've created a Rails plugin with a simple extension allowing to use double low-9 quotation mark by passing a lang option.

    Here's the project page: http://github.com/pjg/redcloth_e...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket