Logo Search packages:      
Sourcecode: calibre version File versions  Download package

# -*- coding: utf-8 -*-

__license__ = 'GPL 3'
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'

import os

from calibre.ebooks.rb.reader import Reader
from calibre.customize.conversion import InputFormatPlugin

00012 class RBInput(InputFormatPlugin):

    name        = 'RB Input'
    author      = 'John Schember'
    description = 'Convert RB files to HTML'
    file_types  = set(['rb'])

00019     def convert(self, stream, options, file_ext, log,
        reader = Reader(stream, log, options.input_encoding)
        opf = reader.extract_content(os.getcwd())

        return opf

Generated by  Doxygen 1.6.0   Back to index