2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
3
from __future__ import with_statement
6
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
7
__docformat__ = 'restructuredtext en'
10
from calibre.customize.conversion import OutputFormatPlugin
12
class LITOutput(OutputFormatPlugin):
15
author = 'Marshall T. Vandegrift'
18
def convert(self, oeb, output_path, input_plugin, opts, log):
19
self.log, self.opts, self.oeb = log, opts, oeb
20
from calibre.ebooks.oeb.transforms.manglecase import CaseMangler
21
from calibre.ebooks.oeb.transforms.rasterize import SVGRasterizer
22
from calibre.ebooks.oeb.transforms.htmltoc import HTMLTOCAdder
23
from calibre.ebooks.lit.writer import LitWriter
24
from calibre.ebooks.oeb.transforms.split import Split
25
split = Split(split_on_page_breaks=True, max_flow_size=0)
26
split(self.oeb, self.opts)
29
tocadder = HTMLTOCAdder()
31
mangler = CaseMangler()
33
rasterizer = SVGRasterizer()