I've edited smartypants.php, but it is better to have the option in the module.

Comments

promes’s picture

See http://drupal.org/node/358265. You can add your own style.

migmedia’s picture

@konon: Can you please explain how which quote-character is used in russian in a example?

English: He said, “‘Quoted’ words in a larger quote. Isn’t this funny?”
German: He said, „‚Quoted‘ words in a larger quote. Isn‘t this funny?“
Dutch: He said, „‘Quoted’ words in a larger quote. Isn’t this funny?”
Russian:

@Anyone: How is quotation handled in other languages?

konon’s picture

@migmedia

Russian: He said, «„Quoted“ words in a larger quote. Isn’t this funny?»

I can make a table with other languages for you, tomorrow )

konon’s picture

OK, here's the promised table.

In some languages ​​there is no internal quotation marks. External quotes I called “ext”, internal quotation marks - “int”. Note for others: if you do not have nested quotes, you should use only the “ext” ones.


Language
		ext	int
Albanian 	«…» 	‹…›
Arabic 		«…» 	‹…›
Belarusian 	«…» 	„…“
Bulgarian 	„…“ 	‚…‘
Boer 		„…” 	‚…’
Chinese 	“…” 	‘…’
Croatian 	»…« 	›…‹ 			
Czech 		„…“ 	‚…‘
Danish 		»…« 	›…‹
Dutch 		„…” 	‚…’
English 	“…” 	‘…’
Esperanto 	“…”	--
Estonian 	„…” 	„…”
Finnish 	”…” 	’…’
French 		« … » 	‹ … ›
German 		„…“ 	‚…‘
Greek 		«…» 	‹…›
Hebrew 		“…” 	«…»
Hungarian   „…” or »…«	--	  
Icelandic 	„…“ 	‚…‘	
Irish 		“…” 	‘…’
Italian 	«…»	‘…’
Japanese 	「…」 	『…』
Latvian 	„…“ 	„…“
Lithuanian 	„…“ 	‚…‘
Norwegian   «…» or „…”	--
Polish 		„…” 	«…»
Portuguese 	“…” 	‘…’
Romanian 	„…” 	«…»
Russian 	«…» 	„…“
Serbian 	„…“ 	‚…‘
Slovak 		„…“ 	‚…‘
Slovenian 	„…“ 	‚…‘
Spanish 	«…» 	“…”
Swedish  	”…” 	’…’
Turkish 	«…» 	‹…›
Ukrainian 	«…»	„…“
mikl’s picture

I don't think locking this down on language is a good idea. Officially, guillemets is the right way to quote a text in Danish, but it's very rare to see those outside the newspaper business, and users would certainly be surprised to see their quotes replaced with something completely different…

konon’s picture

mikl you are right. It should be an option for user.

In my case, the alphabet are not latin, it is cyrillic. And we really use « » every day in paper press and documents. Even russian MS Word replace " " to « » by default.

Our quotes are no longer competitive because keyboards and browsers created by english-speaking people))

migmedia’s picture

Status: Active » Closed (fixed)

I don't know konon's source, but I have implemented his table to localize quotes.

Anyways fallback is en: “…” ‘…’

Micha

migmedia’s picture