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'
9
from calibre.customize.conversion import InputFormatPlugin
11
class LITInput(InputFormatPlugin):
14
author = 'Marshall T. Vandegrift'
15
description = 'Convert LIT files to HTML'
16
file_types = set(['lit'])
18
def convert(self, stream, options, file_ext, log,
20
from calibre.ebooks.lit.reader import LitReader
21
from calibre.ebooks.conversion.plumber import create_oebbook
22
return create_oebbook(log, stream, options, self, reader=LitReader)