mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-23 22:51:30 +02:00
0f9792df36
Here is the first batch of modules, which are needed for converting several formats to LRF. Some of the logic has been change, more cleanups will follow.
26 lines
724 B
Python
26 lines
724 B
Python
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
|
__docformat__ = 'restructuredtext en'
|
|
|
|
'''
|
|
Convert an ODT file into a Open Ebook
|
|
'''
|
|
|
|
from ebook_converter.customize.conversion import InputFormatPlugin
|
|
|
|
|
|
class ODTInput(InputFormatPlugin):
|
|
|
|
name = 'ODT Input'
|
|
author = 'Kovid Goyal'
|
|
description = 'Convert ODT (OpenOffice) files to HTML'
|
|
file_types = {'odt'}
|
|
commit_name = 'odt_input'
|
|
|
|
def convert(self, stream, options, file_ext, log,
|
|
accelerators):
|
|
from ebook_converter.ebooks.odt.input import Extract
|
|
return Extract()(stream, '.', log)
|