mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Catalogs: Allow geenration of catalogs in AZW3 format
This commit is contained in:
commit
59ef9593e6
@ -85,7 +85,7 @@ class GenerateCatalogAction(InterfaceAction):
|
|||||||
dynamic.set('catalogs_to_be_synced', sync)
|
dynamic.set('catalogs_to_be_synced', sync)
|
||||||
self.gui.status_bar.show_message(_('Catalog generated.'), 3000)
|
self.gui.status_bar.show_message(_('Catalog generated.'), 3000)
|
||||||
self.gui.sync_catalogs()
|
self.gui.sync_catalogs()
|
||||||
if job.fmt not in ['EPUB','MOBI']:
|
if job.fmt not in {'EPUB','MOBI', 'AZW3'}:
|
||||||
export_dir = choose_dir(self.gui, _('Export Catalog Directory'),
|
export_dir = choose_dir(self.gui, _('Export Catalog Directory'),
|
||||||
_('Select destination for %(title)s.%(fmt)s') % dict(
|
_('Select destination for %(title)s.%(fmt)s') % dict(
|
||||||
title=job.catalog_title, fmt=job.fmt.lower()))
|
title=job.catalog_title, fmt=job.fmt.lower()))
|
||||||
|
@ -31,7 +31,7 @@ class PluginWidget(QWidget,Ui_Form):
|
|||||||
sync_enabled = True
|
sync_enabled = True
|
||||||
|
|
||||||
# Formats supported by this plugin
|
# Formats supported by this plugin
|
||||||
formats = set(['epub','mobi'])
|
formats = set(['azw3','epub','mobi'])
|
||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
QWidget.__init__(self, parent)
|
QWidget.__init__(self, parent)
|
||||||
@ -872,7 +872,6 @@ class PrefixRules(GenericRulesTable):
|
|||||||
('Math plus circled',u'\u2295'),
|
('Math plus circled',u'\u2295'),
|
||||||
('Math times circled',u'\u2297'),
|
('Math times circled',u'\u2297'),
|
||||||
('Math times',u'\u00d7'),
|
('Math times',u'\u00d7'),
|
||||||
('O slash',u'\u00d8'),
|
|
||||||
('Paragraph',u'\u00b6'),
|
('Paragraph',u'\u00b6'),
|
||||||
('Percent',u'%'),
|
('Percent',u'%'),
|
||||||
('Plus-or-minus',u'\u00b1'),
|
('Plus-or-minus',u'\u00b1'),
|
||||||
|
@ -25,7 +25,7 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
minimum_calibre_version = (0, 7, 40)
|
minimum_calibre_version = (0, 7, 40)
|
||||||
author = 'Greg Riker'
|
author = 'Greg Riker'
|
||||||
version = (1, 0, 0)
|
version = (1, 0, 0)
|
||||||
file_types = set(['epub','mobi'])
|
file_types = set(['azw3','epub','mobi'])
|
||||||
|
|
||||||
THUMB_SMALLEST = "1.0"
|
THUMB_SMALLEST = "1.0"
|
||||||
THUMB_LARGEST = "2.0"
|
THUMB_LARGEST = "2.0"
|
||||||
|
@ -1337,7 +1337,7 @@ Author '{0}':
|
|||||||
pBookTag['class'] = "line_item"
|
pBookTag['class'] = "line_item"
|
||||||
ptc = 0
|
ptc = 0
|
||||||
|
|
||||||
pBookTag.insert(ptc, self.formatPrefix(book['prefix'],soup))
|
pBookTag.insert(ptc, self.formatPrefix(new_entry['prefix'],soup))
|
||||||
ptc += 1
|
ptc += 1
|
||||||
|
|
||||||
spanTag = Tag(soup, "span")
|
spanTag = Tag(soup, "span")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user