diff --git a/src/calibre/ebooks/conversion/plugins/docx_input.py b/src/calibre/ebooks/conversion/plugins/docx_input.py index dc40dd526c..f1c7b6a578 100644 --- a/src/calibre/ebooks/conversion/plugins/docx_input.py +++ b/src/calibre/ebooks/conversion/plugins/docx_input.py @@ -21,13 +21,14 @@ class DOCXInput(InputFormatPlugin): 'turns off that behavior.')), OptionRecommendation(name='docx_no_pagebreaks_between_notes', recommended_value=False, help=_('Do not insert a page break after every endnote.')), - OptionRecommendation(name='docx_no_supsub_in_css', recommended_value=False, - help=_('Use top and bottom vertical-align values in stylesheet, instead of superscript and subscript.')), + OptionRecommendation(name='docx_inline_subsup', recommended_value=False, + help=_('Render superscripts and subscripts so that they do not affect the line height.')), } recommendations = set([('page_breaks_before', '/', OptionRecommendation.MED)]) def convert(self, stream, options, file_ext, log, accelerators): from calibre.ebooks.docx.to_html import Convert - return Convert(stream, detect_cover=not options.docx_no_cover, log=log, notes_nopb=options.docx_no_pagebreaks_between_notes, nosupsub=options.docx_no_supsub_in_css)() + return Convert(stream, detect_cover=not options.docx_no_cover, log=log, notes_nopb=options.docx_no_pagebreaks_between_notes, + nosupsub=options.docx_inline_subsup)() diff --git a/src/calibre/gui2/convert/docx_input.py b/src/calibre/gui2/convert/docx_input.py index c9d97090f5..63b302138f 100644 --- a/src/calibre/gui2/convert/docx_input.py +++ b/src/calibre/gui2/convert/docx_input.py @@ -18,6 +18,6 @@ class PluginWidget(Widget, Ui_Form): def __init__(self, parent, get_option, get_help, db=None, book_id=None): Widget.__init__(self, parent, - ['docx_no_cover', 'docx_no_pagebreaks_between_notes', 'docx_no_supsub_in_css']) + ['docx_no_cover', 'docx_no_pagebreaks_between_notes', 'docx_inline_subsup']) self.initialize_options(get_option, get_help, db, book_id) diff --git a/src/calibre/gui2/convert/docx_input.ui b/src/calibre/gui2/convert/docx_input.ui index 182a8acd8c..86df1ff0f6 100644 --- a/src/calibre/gui2/convert/docx_input.ui +++ b/src/calibre/gui2/convert/docx_input.ui @@ -29,9 +29,9 @@ - + - Use top and bottom as vertical-align values in stylesheet, instead of superscript and subscript + Render superscripts and subscripts so that they do not affect the line height.