mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix call to create_oebbok in oeb.iterator
This commit is contained in:
parent
78f599d599
commit
f56b7453b1
@ -486,7 +486,7 @@ OptionRecommendation(name='timestamp',
|
|||||||
|
|
||||||
OptionRecommendation(name='enable_heuristics',
|
OptionRecommendation(name='enable_heuristics',
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
recommended_value=False, level=OptionRecommendation.LOW,
|
||||||
help=_('Enable heurisic processing. This option must be set for any '
|
help=_('Enable heuristic processing. This option must be set for any '
|
||||||
'heuristic processing to take place.')),
|
'heuristic processing to take place.')),
|
||||||
|
|
||||||
OptionRecommendation(name='markup_chapter_headings',
|
OptionRecommendation(name='markup_chapter_headings',
|
||||||
@ -525,19 +525,19 @@ OptionRecommendation(name='delete_blank_paragraphs',
|
|||||||
|
|
||||||
OptionRecommendation(name='format_scene_breaks',
|
OptionRecommendation(name='format_scene_breaks',
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
recommended_value=False, level=OptionRecommendation.LOW,
|
||||||
help=_('left aligned scene break markers are center aligned. '
|
help=_('Left aligned scene break markers are center aligned. '
|
||||||
'Replace soft scene breaks that use multiple blank lines with'
|
'Replace soft scene breaks that use multiple blank lines with'
|
||||||
'horizontal rules.')),
|
'horizontal rules.')),
|
||||||
|
|
||||||
OptionRecommendation(name='dehyphenate',
|
OptionRecommendation(name='dehyphenate',
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
recommended_value=False, level=OptionRecommendation.LOW,
|
||||||
help=_('Analyses hyphenated words throughout the document. The '
|
help=_('Analyze hyphenated words throughout the document. The '
|
||||||
'document itself is used as a dictionary to determine whether hyphens '
|
'document itself is used as a dictionary to determine whether hyphens '
|
||||||
'should be retained or removed.')),
|
'should be retained or removed.')),
|
||||||
|
|
||||||
OptionRecommendation(name='renumber_headings',
|
OptionRecommendation(name='renumber_headings',
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
recommended_value=False, level=OptionRecommendation.LOW,
|
||||||
help=_('Looks for occurences of sequential <h1> or <h2> tags. '
|
help=_('Looks for occurrences of sequential <h1> or <h2> tags. '
|
||||||
'The tags are renumbered to prevent splitting in the middle '
|
'The tags are renumbered to prevent splitting in the middle '
|
||||||
'of chapter headings.')),
|
'of chapter headings.')),
|
||||||
|
|
||||||
@ -548,7 +548,7 @@ OptionRecommendation(name='sr1_search',
|
|||||||
|
|
||||||
OptionRecommendation(name='sr1_replace',
|
OptionRecommendation(name='sr1_replace',
|
||||||
recommended_value='', level=OptionRecommendation.LOW,
|
recommended_value='', level=OptionRecommendation.LOW,
|
||||||
help=_('Replace characters to replace the text found with sr1-search.')),
|
help=_('Replacement to replace the text found with sr1-search.')),
|
||||||
|
|
||||||
OptionRecommendation(name='sr2_search',
|
OptionRecommendation(name='sr2_search',
|
||||||
recommended_value='', level=OptionRecommendation.LOW,
|
recommended_value='', level=OptionRecommendation.LOW,
|
||||||
@ -557,7 +557,7 @@ OptionRecommendation(name='sr2_search',
|
|||||||
|
|
||||||
OptionRecommendation(name='sr2_replace',
|
OptionRecommendation(name='sr2_replace',
|
||||||
recommended_value='', level=OptionRecommendation.LOW,
|
recommended_value='', level=OptionRecommendation.LOW,
|
||||||
help=_('Replace characters to replace the text found with sr2-search.')),
|
help=_('Replacement to replace the text found with sr2-search.')),
|
||||||
|
|
||||||
OptionRecommendation(name='sr3_search',
|
OptionRecommendation(name='sr3_search',
|
||||||
recommended_value='', level=OptionRecommendation.LOW,
|
recommended_value='', level=OptionRecommendation.LOW,
|
||||||
@ -566,7 +566,7 @@ OptionRecommendation(name='sr3_search',
|
|||||||
|
|
||||||
OptionRecommendation(name='sr3_replace',
|
OptionRecommendation(name='sr3_replace',
|
||||||
recommended_value='', level=OptionRecommendation.LOW,
|
recommended_value='', level=OptionRecommendation.LOW,
|
||||||
help=_('Replace characters to replace the text found with sr3-search.')),
|
help=_('Replacement to replace the text found with sr3-search.')),
|
||||||
]
|
]
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
@ -199,8 +199,8 @@ class EbookIterator(object):
|
|||||||
not hasattr(self.pathtoopf, 'manifest'):
|
not hasattr(self.pathtoopf, 'manifest'):
|
||||||
if hasattr(self.pathtoopf, 'manifest'):
|
if hasattr(self.pathtoopf, 'manifest'):
|
||||||
self.pathtoopf = write_oebbook(self.pathtoopf, self.base)
|
self.pathtoopf = write_oebbook(self.pathtoopf, self.base)
|
||||||
self.pathtoopf = create_oebbook(self.log, self.pathtoopf, plumber.opts,
|
self.pathtoopf = create_oebbook(self.log, self.pathtoopf,
|
||||||
plumber.input_plugin)
|
plumber.opts)
|
||||||
|
|
||||||
if hasattr(self.pathtoopf, 'manifest'):
|
if hasattr(self.pathtoopf, 'manifest'):
|
||||||
self.pathtoopf = write_oebbook(self.pathtoopf, self.base)
|
self.pathtoopf = write_oebbook(self.pathtoopf, self.base)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user