def build_content(self, outdir, outname): """Write the metainfo file content.opf It contains bibliographic data, a file list, the spine (the reading order) and the guide (first page and html version of the toc). """ EpubBuilder.build_content(self, outdir, outname, content_template=_content_template)
def build_epub(self, outdir, outname): EpubBuilder.build_epub(self, outdir, outname) container = get_container(os.path.join(outdir, outname)) self.fix_epub(container) container.commit()
def build_epub(self, outdir, *args, **kwargs): if self.config.kovid_epub_cover: self.add_cover(outdir, self.config.kovid_epub_cover) self.fix_duplication_bugs(outdir) EpubBuilder.build_epub(self, outdir, *args, **kwargs)
def handle_finish(self): """Create the metainfo files and finally the mobi.""" EpubBuilder.handle_finish(self) _epub_file = os.path.join(self.outdir, self.config.epub_basename + '.epub') os.system("kindlegen -c1 -rebuild -verbose %s" % _epub_file)
def init(self): EpubBuilder.init(self)