__copyright__ = '2009, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import os
from calibre.customize.conversion import OutputFormatPlugin, OptionRecommendation
from calibre.ebooks.pdb import PDBError, get_writer, FORMAT_WRITERS
class PDBOutput(OutputFormatPlugin):
name = 'PDB Output'
author = 'John Schember'
file_type = 'pdb'
options = set([
OptionRecommendation(name = 'format', recommended_value = 'doc', level = OptionRecommendation.LOW, short_switch = 'f', choices = FORMAT_WRITERS.keys(), help = _('Format to use inside the pdb container. Choices are:') + ' %s' % FORMAT_WRITERS.keys()),
OptionRecommendation(name = 'output_encoding', recommended_value = 'cp1252', level = OptionRecommendation.LOW, help = _('Specify the character encoding of the output document. The default is cp1252. Note: This option is not honored by all formats.')),
OptionRecommendation(name = 'inline_toc', recommended_value = False, level = OptionRecommendation.LOW, help = _('Add Table of Contents to beginning of the book.'))])