From 970b485ba66bc703fa6e1267b6960fa33b24ba11 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 Jul 2018 11:05:26 +0530 Subject: [PATCH] UI for more input formats --- src/pyj/book_list/conversion_widgets.pyj | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/pyj/book_list/conversion_widgets.pyj b/src/pyj/book_list/conversion_widgets.pyj index 612524a60c..2790206596 100644 --- a/src/pyj/book_list/conversion_widgets.pyj +++ b/src/pyj/book_list/conversion_widgets.pyj @@ -440,6 +440,41 @@ def comic_input(container): # }}} +# FB2 Input {{{ +@ep +def fb2_input(container): + g = E.div(class_='simple-group') + container.appendChild(g) + g.appendChild(checkbox('no_inline_fb2_toc', _('Do not insert a Table of Contents at the beginning of the book'))) +# }}} + +# PDF Input {{{ +@ep +def pdf_input(container): + g = E.div(class_='simple-group') + container.appendChild(g) + g.appendChild(float_spin('unwrap_factor', _('Line &un-wrapping factor:'), max=1, step=0.01)) + g.appendChild(checkbox('no_images', _('No &images'))) +# }}} + +# RTF Input {{{ +@ep +def rtf_input(container): + g = E.div(class_='simple-group') + container.appendChild(g) + g.appendChild(checkbox('ignore_wmf', _('Ignore &WMF images in the RTF file'))) +# }}} + +# DOCX Input {{{ +@ep +def docx_input(container): + g = E.div(class_='simple-group') + container.appendChild(g) + g.appendChild(checkbox('docx_no_cover', _('Do not try to autodetect a &cover from images in the document'))) + g.appendChild(checkbox('docx_no_pagebreaks_between_notes', _('Do not add a page after every &endnote'))) + g.appendChild(checkbox('docx_inline_subsup', _('Render &superscripts and subscripts so that they do not affect the line height'))) +# }}} + def restore_defaults(): for setting in registry: set(setting, get_option_default_value(setting))