View Single Post
Old 02-24-2026, 12:47 PM   #158
jd1004
Junior Member
jd1004 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2025
Device: none
Comparison test between v0.3.3 and v0.5.990

I ran a comparison test of the PunctuationSmarten plugin between versions 0.3.3 and 0.5.990.

I used seven ebooks in English with smart quotes and with lots of 'cause and 'em and 'til and the originally posted apos_exceptions file plus the additional entries Cause, course, Course, kay, nough, Nough, til, tween.

For each epub:

- export the epub to text using Epub2Text v0.1.4
- change all quotes [“”] to " and all quotes [‘’`´] to ' and save the epub
- run v0.3.3 and export the epub to text
- close the epub without saving, thereby keeping the straight quotes
- run v0.5.990 and export the epub to text

Result:

- Versions 0.3.3 and 0.5.990 produce the same output for all seven ebooks.

- (I need to add Gainst/gainst, Twere/twere, Twill/twill, Twixt/twixt, and Twould/twould to my apos_exceptions file.)

- V0.5.990 starts the log output with "Close event accepted". Is that relevant? What does it mean?

- All in all, the plugin works pretty well. Both versions fail for the HTML below, though. Don't know if anything can be done about that.

Incorrect smart quotes:

Code:
- The HTML
      <div>
         '<i>Father!</i>'
      </div>
  produces
         ‘Father!‘
- The HTML
      <div>
         But she had already begun to read. '"—And when ... and—"'
      </div>
  produces
         But she had already begun to read. ’”—And when ... and—”’
- The HTML
      <p>'Bla bla in '37.'</p>
  produces
         ‘Bla bla in ‘37.’
- The HTML
      <p>'They're speaking "twin" ', she explained.</p>
  produces
         ‘They’re speaking “twin” ‘, she explained.
  Likewise, the HTML
      <p>' "Met"? How do you ...?'</p>
  produces
         ’ “Met”? How do you ...?’
Could you update your original post with the new version and an updated history of changes?

Thanks for all your good work! It is very much appreciated.
jd1004 is offline   Reply With Quote