From dd8a8af383ec1516d330104516ffd8c9d1ba90f7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 7 Mar 2022 07:12:49 +0530 Subject: [PATCH] Edit/Polish book: Fix hardcoded Unicode ligatures not being preserved in AZW3 format books --- src/calibre/ebooks/oeb/polish/container.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index 3bfa866237..e7dd613b32 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -1463,6 +1463,7 @@ def opf_to_azw3(opf, outpath, container): inp = plugin_for_input_format('azw3') outp = plugin_for_output_format('azw3') plumber.opts.mobi_passthrough = True + plumber.opts.keep_ligatures = True oeb = create_oebbook(container.log, opf, plumber.opts, specialize=specialize) set_cover(oeb) outp.convert(oeb, outpath, inp, plumber.opts, container.log)