View Single Post
Old 08-05-2014, 03:58 PM   #23
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,697
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by arspr View Post
Well, I've just run Calibre's Smarten punctuaction (the curly double quotation mark button in the Editor toolbar) on that same text and I've gotten:

Code:
  <p>”Tis is a dialogue’ John said.</p>

  <p>”Whatever” is not a dialogue.</p>
which is quite odd in any case... It seems that a pair of ' is always converted into a curly right double quotation mark.

Is everything fine? Or is there some kind of bug here?
I don't understand what characters you're using for single-quotes (pre-smartening). When I try your examples, and I start with single, straight quotes ('):
Code:
<p>''Tis is a dialogue' John said.

<p>''Whatever'' is not a dialogue.</p>
my smarten tool produces exactly what I expect it to. None of my consecutive straight, single quotes are being converted into curly right double quotes.

Let's try this: I'm attaching a sample epub that contains your examples (and some of my own). I'm also attaching the same epub AFTER my smartening routine has processed it (using my original apostrophe exception file, all boxes checked, and the dashes combobox set to the middle of the three options). Please make sure you're getting the same results.

EDIT: ooh ... I see now what you mean about calibre's regular smartening routine. It DOES turn those consecutive straight single quotes into right curlies. I don't think it always did that.

EDIT 2: After studying SmartyPants again, the attempt to smarten backticks is exactly why all consecutive single quotes get converted to a right (closing) curly double quote -- and exactly why I chose to turn that feature off.
Attached Files
File Type: epub punctuation_test_before.epub (2.1 KB, 640 views)
File Type: epub punctuation_test_after.epub (2.1 KB, 644 views)

Last edited by DiapDealer; 08-05-2014 at 04:45 PM.
DiapDealer is offline