Problem with smarten punctuation when using ebook-convert

Bug #1598465 reported by leastcommonancestor on 2016-07-02
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

The command line tool ebook-convert with option --smarten-punctuation applies the transform to the value of href-attributes, i.e.

<p><a href="test....html">foobar</a></p>

gets changed to

<p class="calibre1"><a href="test….html">foobar</a></p>

The smarten punctuation is done in the ebook editor, the result is ok and the href value is not changed.

Command was: ebook-convert test0.html test0.epub --smarten-punctuation

Tested with Calibre 2.61 and Ubuntu 15.10.

I canont replicate this -- I get the same results from both the command
line and the editor (in both places values of attributes are smartened).
Indeed, they use the exact same code so that is to be expected.

As for smartening inside attributes -- that is a smartypants (the
library calibre uses for this) behavior/bug. If I have some time, I will
look into it, but since that is not code I maintain...

 status invalid

Changed in calibre:
status: New → Invalid
Kovid Goyal (kovid) wrote :

On second thoughts, I will fix it, as the fix is easy.

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments