View Single Post
Old 09-29-2024, 04:16 PM   #1767
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,239
Karma: 171291590
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by kiwidude View Post
@DNSB - I'm not seeing any failures personally trying the Smarten Punctuation feature this just now, but not surprised there may be edge cases where this happens.

Can you please give this version a whirl - I have completely deferred to a calibre implementation:
https://github.com/kiwidude68/calibr...fy_epub-v1.8.5

If people can let me know this is working ok for them I will make it the main release.
Kovid Goyal fixed the error by adding both substitute_entities & substitute_entites back into calibre's code in chardet.py after I mentioned the issue in the calibre friday preview thread message #87. A bit funny in that the first fix was for the correct spelling of substitute_entities and then he added substitute_entites.

Edit: I removed line 22 in chardet.py:
Code:
substitute_entities = substitute_entites = xml_replace_entities  # for plugins that might use this
I then installed 1.8.5 and no issues with Smarten Punctuation.

Last edited by DNSB; 09-29-2024 at 04:22 PM.
DNSB is offline   Reply With Quote