Example #1
0
    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)
Example #2
0
 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()
Example #3
0
 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()
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 def init(self):
     EpubBuilder.init(self)
Example #7
0
 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)