![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2010
Device: Sony Reader PRS-350
|
![]()
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" Code:
»Sample« (German style in printed novels) Code:
„Sample“ (German style in general) Thx a lot Korben. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
run calibre from source and modify away to your hearts content. Instructions for running from source are in the user manual
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2010
Device: Sony Reader PRS-350
|
Hi Kovid,
Thanks for your quick reply. Korben. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Settings," then "311" - Int'l Kindle searches for wireless providers in the area | Dr. Drib | Amazon Kindle | 2 | 08-28-2011 10:27 AM |
Yep. It's official. Sony Reader has "ruined" books for me. A final "review." | WilliamG | Sony Reader | 48 | 01-14-2011 03:49 AM |
Woher bekomme ich "Infinite Jest" oder "Unendlicher Spaß" von David Foster Wallace? | bitschnau | Erste Hilfe | 3 | 11-01-2010 01:22 PM |
Simpler Way to Smarten Punctuation | Rand Brittain | Calibre | 3 | 10-10-2010 08:16 PM |
Thanks for new 'Smarten Punctuation' feature | jackie_w | Calibre | 1 | 09-21-2010 02:53 PM |