View Single Post
Old 12-30-2010, 04:15 PM   #1
Korben Dallas
Junior Member
Korben Dallas began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2010
Device: Sony Reader PRS-350
Question Configuration of "Smarten Punctuation"

Hi everybody.

I am looking for a method to tweak the Smarten Punctuation feature.

While this feature is really great as seen from a typographic point of view it has one major drawback: there is no way to employ typographic conventions of languages other than English.

The Code of SmartyPants.pl seems to be packaged in Lib\site-packages\calibre\utils\smartypants.pyo which is obviously a compiled file.

Is there anybody out there who can tell me how I can modify this piece of code so that, for example,

Code:
"Sample"
gets converted to

Code:
»Sample« (German style in printed novels)
or
Code:
„Sample“ (German style in general)
?

Thx a lot
Korben.
Korben Dallas is offline   Reply With Quote