mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 10:44:36 +01:00
...
This commit is contained in:
commit
bfa0df2e0b
3 changed files with 9 additions and 10 deletions
|
|
@ -52,8 +52,7 @@ def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
|||
else:
|
||||
from calibre.ebooks.htmlz.oeb2html import OEB2HTMLClassCSSizer as OEB2HTMLizer
|
||||
|
||||
|
||||
with TemporaryDirectory('_txtz_output') as tdir:
|
||||
with TemporaryDirectory('_htmlz_output') as tdir:
|
||||
htmlizer = OEB2HTMLizer(log)
|
||||
html = htmlizer.oeb2html(oeb_book, opts)
|
||||
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@ class PluginWidget(Widget, Ui_Form):
|
|||
ICON = I('mimetypes/html.png')
|
||||
|
||||
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
||||
Widget.__init__(self, parent, ['css_type', 'class_style'])
|
||||
Widget.__init__(self, parent, ['htmlz_css_type', 'htmlz_class_style'])
|
||||
self.db, self.book_id = db, book_id
|
||||
for x in get_option('css_type').option.choices:
|
||||
self.opt_css_type.addItem(x)
|
||||
for x in get_option('class_style').option.choices:
|
||||
self.opt_class_style.addItem(x)
|
||||
for x in get_option('htmlz_css_type').option.choices:
|
||||
self.opt_htmlz_css_type.addItem(x)
|
||||
for x in get_option('htmlz_class_style').option.choices:
|
||||
self.opt_htmlz_class_style.addItem(x)
|
||||
self.initialize_options(get_option, get_help, db, book_id)
|
||||
|
|
|
|||
|
|
@ -33,12 +33,12 @@
|
|||
<string>How to handle CSS</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>opt_css_type</cstring>
|
||||
<cstring>opt_htmlz_css_type</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="opt_css_type">
|
||||
<widget class="QComboBox" name="opt_htmlz_css_type">
|
||||
<property name="minimumContentsLength">
|
||||
<number>20</number>
|
||||
</property>
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="opt_class_style"/>
|
||||
<widget class="QComboBox" name="opt_htmlz_class_style"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
|
|
|
|||
Loading…
Reference in a new issue