1__license__ = 'GPL v3' 2__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' 3__docformat__ = 'restructuredtext en' 4 5''' 6Convert an ODT file into a Open Ebook 7''' 8 9from calibre.customize.conversion import InputFormatPlugin 10 11 12class ODTInput(InputFormatPlugin): 13 14 name = 'ODT Input' 15 author = 'Kovid Goyal' 16 description = _('Convert ODT (OpenOffice) files to HTML') 17 file_types = {'odt'} 18 commit_name = 'odt_input' 19 20 def convert(self, stream, options, file_ext, log, 21 accelerators): 22 from calibre.ebooks.odt.input import Extract 23 return Extract()(stream, '.', log) 24