mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change name a documentation for DOCX sup/sub option
This commit is contained in:
parent
0e57cb6a90
commit
7c0a12659d
@ -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)()
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -29,9 +29,9 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="opt_docx_no_supsub_in_css">
|
||||
<widget class="QCheckBox" name="opt_docx_inline_subsup">
|
||||
<property name="text">
|
||||
<string>Use top and bottom as vertical-align values in stylesheet, instead of superscript and subscript</string>
|
||||
<string>Render superscripts and subscripts so that they do not affect the line height.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user