# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals __license__ = 'GPL 3' __copyright__ = '2011, John Schember ' __docformat__ = 'restructuredtext en' import io import os from calibre.customize.conversion import OutputFormatPlugin, \ OptionRecommendation from calibre.ptempfile import TemporaryDirectory from polyglot.builtins import unicode_type class HTMLZOutput(OutputFormatPlugin): name = 'HTMLZ Output' author = 'John Schember' file_type = 'htmlz' commit_name = 'htmlz_output' ui_data = { 'css_choices': { 'class': _('Use CSS classes'), 'inline': _('Use the style attribute'), 'tag': _('Use HTML tags wherever possible') }, 'sheet_choices': { 'external': _('Use an external CSS file'), 'inline': _('Use a