mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
FB2 Output: Remove FB2 options that are no longer implemented.
This commit is contained in:
parent
d4f76eba5b
commit
692b6bcf02
@ -16,20 +16,6 @@ class FB2Output(OutputFormatPlugin):
|
|||||||
file_type = 'fb2'
|
file_type = 'fb2'
|
||||||
|
|
||||||
options = set([
|
options = set([
|
||||||
OptionRecommendation(name='inline_toc',
|
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
|
||||||
help=_('Add Table of Contents to beginning of the book.')),
|
|
||||||
OptionRecommendation(name='sectionize_chapters',
|
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
|
||||||
help=_('Try to turn chapters into individual sections. ' \
|
|
||||||
'WARNING: ' \
|
|
||||||
'This option is experimental. It can cause conversion ' \
|
|
||||||
'to fail. It can also produce unexpected output.')),
|
|
||||||
OptionRecommendation(name='sectionize_chapters_using_file_structure',
|
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
|
||||||
help=_('Try to turn chapters into individual sections using the ' \
|
|
||||||
'internal structure of the ebook. This works well for EPUB ' \
|
|
||||||
'books that have been internally split by chapter.')),
|
|
||||||
OptionRecommendation(name='h1_to_title',
|
OptionRecommendation(name='h1_to_title',
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
recommended_value=False, level=OptionRecommendation.LOW,
|
||||||
help=_('Wrap all h1 tags with fb2 title elements.')),
|
help=_('Wrap all h1 tags with fb2 title elements.')),
|
||||||
|
@ -17,8 +17,6 @@ class PluginWidget(Widget, Ui_Form):
|
|||||||
ICON = I('mimetypes/fb2.png')
|
ICON = I('mimetypes/fb2.png')
|
||||||
|
|
||||||
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
||||||
Widget.__init__(self, parent, ['inline_toc', 'sectionize_chapters',
|
Widget.__init__(self, parent, ['h1_to_title', 'h2_to_title', 'h3_to_title'])
|
||||||
'sectionize_chapters_using_file_structure', 'h1_to_title',
|
|
||||||
'h2_to_title', 'h3_to_title'])
|
|
||||||
self.db, self.book_id = db, book_id
|
self.db, self.book_id = db, book_id
|
||||||
self.initialize_options(get_option, get_help, db, book_id)
|
self.initialize_options(get_option, get_help, db, book_id)
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="6" column="0">
|
<item row="3" column="0">
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@ -28,41 +28,20 @@
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QCheckBox" name="opt_inline_toc">
|
|
||||||
<property name="text">
|
|
||||||
<string>&Inline TOC</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QCheckBox" name="opt_sectionize_chapters">
|
|
||||||
<property name="text">
|
|
||||||
<string>Sectionize Chapters (Use with care!)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QCheckBox" name="opt_sectionize_chapters_using_file_structure">
|
|
||||||
<property name="text">
|
|
||||||
<string>Sectionize Chapters using file structure</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QCheckBox" name="opt_h1_to_title">
|
<widget class="QCheckBox" name="opt_h1_to_title">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Wrap h1 tags with <title> elements</string>
|
<string>Wrap h1 tags with <title> elements</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QCheckBox" name="opt_h2_to_title">
|
<widget class="QCheckBox" name="opt_h2_to_title">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Wrap h2 tags with <title> elements</string>
|
<string>Wrap h2 tags with <title> elements</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QCheckBox" name="opt_h3_to_title">
|
<widget class="QCheckBox" name="opt_h3_to_title">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Wrap h3 tags with <title> elements</string>
|
<string>Wrap h3 tags with <title> elements</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user