home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from __future__ import with_statement
- __license__ = 'GPL v3'
- __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
- __docformat__ = 'restructuredtext en'
- from calibre.customize.conversion import OutputFormatPlugin
-
- class LITOutput(OutputFormatPlugin):
- name = 'LIT Output'
- author = 'Marshall T. Vandegrift'
- file_type = 'lit'
-
- def convert(self, oeb, output_path, input_plugin, opts, log):
- self.log = log
- self.opts = opts
- self.oeb = oeb
- CaseMangler = CaseMangler
- import calibre.ebooks.oeb.transforms.manglecase
- SVGRasterizer = SVGRasterizer
- import calibre.ebooks.oeb.transforms.rasterize
- HTMLTOCAdder = HTMLTOCAdder
- import calibre.ebooks.oeb.transforms.htmltoc
- LitWriter = LitWriter
- import calibre.ebooks.lit.writer
- Split = Split
- import calibre.ebooks.oeb.transforms.split
- split = Split(split_on_page_breaks = True, max_flow_size = 0)
- split(self.oeb, self.opts)
- tocadder = HTMLTOCAdder()
- tocadder(oeb, opts)
- mangler = CaseMangler()
- mangler(oeb, opts)
- rasterizer = SVGRasterizer()
- rasterizer(oeb, opts)
- lit = LitWriter(self.opts)
- lit(oeb, output_path)
-
-
-