diff --git a/src/calibre/ebooks/conversion/config.py b/src/calibre/ebooks/conversion/config.py index a0394b9bc0..9fa74d3b45 100644 --- a/src/calibre/ebooks/conversion/config.py +++ b/src/calibre/ebooks/conversion/config.py @@ -305,7 +305,7 @@ OPTIONS = { 'pdf_page_margin_right', 'pdf_page_margin_bottom', 'pdf_use_document_margins',), - 'pmlz': ('inline_toc', 'full_image_depth', 'pml_output_encoding'), + 'pml': ('inline_toc', 'full_image_depth', 'pml_output_encoding'), 'rb': ('inline_toc',), diff --git a/src/calibre/gui2/convert/pml_output.py b/src/calibre/gui2/convert/pml_output.py index 269b1e57a7..99648add98 100644 --- a/src/calibre/gui2/convert/pml_output.py +++ b/src/calibre/gui2/convert/pml_output.py @@ -19,6 +19,6 @@ class PluginWidget(Widget, Ui_Form): ICON = I('mimetypes/unknown.png') def __init__(self, parent, get_option, get_help, db=None, book_id=None): - Widget.__init__(self, parent, OPTIONS['output']['pmlz']) + Widget.__init__(self, parent, OPTIONS['output']['pml']) self.db, self.book_id = db, book_id self.initialize_options(get_option, get_help, db, book_id) diff --git a/src/pyj/book_list/conversion_widgets.pyj b/src/pyj/book_list/conversion_widgets.pyj index 8bc18625cf..9b7876e074 100644 --- a/src/pyj/book_list/conversion_widgets.pyj +++ b/src/pyj/book_list/conversion_widgets.pyj @@ -667,6 +667,16 @@ def pdf_output(container): g.appendChild(lineedit('pdf_footer_template', _('&Footer template:'))) # }}} +# PMLZ Output {{{ +@ep +def pml_output(container): + g = E.div(class_='simple-group') + container.appendChild(g) + g.appendChild(lineedit('pml_output_encoding', _('O&utput encoding:'))) + g.appendChild(checkbox('inline_toc', _('&Inline TOC'))) + g.appendChild(checkbox('full_image_depth', _('Do not &reduce image size and depth'))) +# }}} + def restore_defaults(): for setting in registry: set(setting, get_option_default_value(setting))