Пример #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)
Пример #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()
Пример #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()
Пример #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)
Пример #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)
Пример #6
0
 def init(self):
     EpubBuilder.init(self)
Пример #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)