Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2010, 05:15 PM   #1
Korben Dallas
Junior Member
Korben Dallas began at the beginning.
 
Posts: 3
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
Old 12-30-2010, 06:25 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,438
Karma: 5383257
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
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 12-31-2010, 08:12 AM   #3
Korben Dallas
Junior Member
Korben Dallas began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: Sony Reader PRS-350
Hi Kovid,

Thanks for your quick reply.

Korben.
Korben Dallas is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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 11:27 AM
Yep. It's official. Sony Reader has "ruined" books for me. A final "review." WilliamG Sony Reader 48 01-14-2011 04:49 AM
Woher bekomme ich "Infinite Jest" oder "Unendlicher Spaß" von David Foster Wallace? bitschnau Erste Hilfe 3 11-01-2010 02:22 PM
Simpler Way to Smarten Punctuation Rand Brittain Calibre 3 10-10-2010 09:16 PM
Thanks for new 'Smarten Punctuation' feature jackie_w Calibre 1 09-21-2010 03:53 PM


All times are GMT -4. The time now is 08:39 PM.


MobileRead.com is a privately owned, operated and funded community.