Switch to change the starting quote into a lower quote („) and ending quote accordingly

promes - January 13, 2009 - 17:52
Project:Typogrify
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:mikl
Status:active
Description

I like your module very much and use it in all of my websites. But I made a modification in smartypants.php because in The Netherlands the official start of a word included into quotes is not like "a word" but like „a word”. I changed the closing quote into ” because the only correct starting quote „ has the same appearance.
Is it possible to make a setting to switch from upper starting quote to a lower starting quote. Or better to make it per node language dependent (some of my nodes are in English).
I can send my modifications if you wish.

#1

mikl - January 13, 2009 - 18:41
Assigned to:Anonymous» mikl

Hi Promes,

Thank you for your suggestion. I only just took over maintainership of this module, but I think it's a good idea, and I'll try and implement it in a future release :)

#2

keinstein - August 9, 2009 - 19:08
Title:Switch to change the starting quote into a lower quote („)» Switch to change the starting quote into a lower quote („) and ending quote accordingly

Hi,

I independently hacked smartypants to support German (and eastern European) quotes as default.

The default was used as I was too lazy to do the Drupal part too.

The patch uses „ as opening and “ as closing quote and for single quotes 8218 and 8216, as this seems to be the common use.

It would be nice to see this patch equipped with some user interface in the next revision of the module.

Maybe its worth to send it upstream?

A first step would be to make it filter dependent configurable. That can be used easy on single language pages and even on multilanguage pages it is possible to duplicate the filters for both types of quotes. It's ugly, but it works.

AttachmentSize
smartypants.diff 7.23 KB

#3

aexl_konzepto.net - September 29, 2009 - 01:51

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.