From 619e855c1bdcab461a3aefd8fe8d70e0756f3c0d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Jul 2018 05:00:49 +0530 Subject: [PATCH] HTMLZ output options UI --- .../ebooks/conversion/plugins/htmlz_output.py | 33 ++++++++++++------- src/pyj/book_list/conversion_widgets.pyj | 10 ++++++ 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/src/calibre/ebooks/conversion/plugins/htmlz_output.py b/src/calibre/ebooks/conversion/plugins/htmlz_output.py index 7a2f1a282f..48ec94ac86 100644 --- a/src/calibre/ebooks/conversion/plugins/htmlz_output.py +++ b/src/calibre/ebooks/conversion/plugins/htmlz_output.py @@ -21,30 +21,41 @@ class HTMLZOutput(OutputFormatPlugin): author = 'John Schember' file_type = 'htmlz' commit_name = 'htmlz_output' + ui_data = { + 'css_choices': { + 'class': _('Use CSS classes'), + 'inline': _('Use the style attribute'), + 'tag': _('Use HTML tags wherever possible') + }, + 'sheet_choices': { + 'external': _('Use an external CSS file'), + 'inline': _('Use a