mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Oops
This commit is contained in:
parent
a0d6df759d
commit
78601341a3
@ -175,8 +175,8 @@ def add_pipeline_options(parser, plumber):
|
|||||||
if rec.level < rec.HIGH:
|
if rec.level < rec.HIGH:
|
||||||
option_recommendation_to_cli_option(add_option, rec)
|
option_recommendation_to_cli_option(add_option, rec)
|
||||||
|
|
||||||
option_recommendation_to_cli_option(parser.add_option,
|
parser.add_option('--list-recipes', default=False, action='store_true',
|
||||||
plumber.get_option_by_name('list_recipes'))
|
help=_('List builtin recipes'))
|
||||||
|
|
||||||
def option_parser():
|
def option_parser():
|
||||||
return OptionParser(usage=USAGE)
|
return OptionParser(usage=USAGE)
|
||||||
|
@ -107,10 +107,10 @@ class MOBIOutput(OutputFormatPlugin):
|
|||||||
sections = list(toc)
|
sections = list(toc)
|
||||||
for i,x in enumerate(sections):
|
for i,x in enumerate(sections):
|
||||||
x.klass = 'section'
|
x.klass = 'section'
|
||||||
articles = list(x)
|
articles_ = list(x)
|
||||||
if articles:
|
if articles_:
|
||||||
self.oeb.manifest.remove(self.oeb.manifest.hrefs[x.href])
|
self.oeb.manifest.remove(self.oeb.manifest.hrefs[x.href])
|
||||||
x.href = articles[0].href
|
x.href = articles_[0].href
|
||||||
|
|
||||||
|
|
||||||
for sec in sections:
|
for sec in sections:
|
||||||
|
@ -1315,15 +1315,6 @@ class MobiWriter(object):
|
|||||||
else :
|
else :
|
||||||
raise NotImplementedError('Indexing for mobitype 0x%X not implemented' % booktype)
|
raise NotImplementedError('Indexing for mobitype 0x%X not implemented' % booktype)
|
||||||
|
|
||||||
# Dump the current HTML Record Data / TBS
|
|
||||||
# GR diagnostics
|
|
||||||
if False :
|
|
||||||
self._HTMLRecords[nrecords].dumpData(nrecords, self._oeb)
|
|
||||||
outstr = ''
|
|
||||||
for eachbyte in self._tbSequence:
|
|
||||||
outstr += '0x%02X ' % ord(eachbyte)
|
|
||||||
self._oeb.logger.info(' Trailing Byte Sequence: %s\n' % outstr)
|
|
||||||
|
|
||||||
# Write the sequence
|
# Write the sequence
|
||||||
record.write(self._tbSequence)
|
record.write(self._tbSequence)
|
||||||
|
|
||||||
@ -1522,12 +1513,6 @@ class MobiWriter(object):
|
|||||||
# - 0x4: <uncrossable breaks><size>
|
# - 0x4: <uncrossable breaks><size>
|
||||||
# GR: Use 7 for indexed files, 5 for unindexed
|
# GR: Use 7 for indexed files, 5 for unindexed
|
||||||
# Setting bit 2 (0x4) disables <guide><reference type="start"> functionality
|
# Setting bit 2 (0x4) disables <guide><reference type="start"> functionality
|
||||||
'''
|
|
||||||
if INDEXING and self._indexable :
|
|
||||||
record0.write(pack('>I', 7))
|
|
||||||
else:
|
|
||||||
record0.write(pack('>I', 5))
|
|
||||||
'''
|
|
||||||
|
|
||||||
trailingDataFlags = 1
|
trailingDataFlags = 1
|
||||||
if self._indexable :
|
if self._indexable :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user