1
# -*- coding: utf-8 -*-
4
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
5
__docformat__ = 'restructuredtext en'
9
from calibre.ebooks.rb.reader import Reader
10
from calibre.customize.conversion import InputFormatPlugin
12
class RBInput(InputFormatPlugin):
15
author = 'John Schember'
16
description = 'Convert RB files to HTML'
17
file_types = set(['rb'])
19
def convert(self, stream, options, file_ext, log,
21
reader = Reader(stream, log, options.input_encoding)
22
opf = reader.extract_content(os.getcwd())