mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Book polishing: Add an option to upgrade EPUB 2 to EPUB 3
This commit is contained in:
parent
bff950e52d
commit
ff952ad851
@ -69,6 +69,7 @@ class Polish(QDialog): # {{{
|
|||||||
'remove_jacket':_('<h3>Remove book jacket</h3>%s')%HELP['remove_jacket'],
|
'remove_jacket':_('<h3>Remove book jacket</h3>%s')%HELP['remove_jacket'],
|
||||||
'remove_unused_css':_('<h3>Remove unused CSS rules</h3>%s')%HELP['remove_unused_css'],
|
'remove_unused_css':_('<h3>Remove unused CSS rules</h3>%s')%HELP['remove_unused_css'],
|
||||||
'compress_images': _('<h3>Losslessly compress images</h3>%s') % HELP['compress_images'],
|
'compress_images': _('<h3>Losslessly compress images</h3>%s') % HELP['compress_images'],
|
||||||
|
'upgrade_book': _('<h3>Upgrade book internals</h3>%s') % HELP['upgrade_book'],
|
||||||
}
|
}
|
||||||
|
|
||||||
self.l = l = QGridLayout()
|
self.l = l = QGridLayout()
|
||||||
@ -88,6 +89,7 @@ class Polish(QDialog): # {{{
|
|||||||
('remove_jacket', _('&Remove a previously inserted book jacket')),
|
('remove_jacket', _('&Remove a previously inserted book jacket')),
|
||||||
('remove_unused_css', _('Remove &unused CSS rules from the book')),
|
('remove_unused_css', _('Remove &unused CSS rules from the book')),
|
||||||
('compress_images', _('Losslessly &compress images')),
|
('compress_images', _('Losslessly &compress images')),
|
||||||
|
('upgrade_book', _('&Upgrade book internals')),
|
||||||
])
|
])
|
||||||
prefs = gprefs.get('polishing_settings', {})
|
prefs = gprefs.get('polishing_settings', {})
|
||||||
for name, text in self.all_actions.iteritems():
|
for name, text in self.all_actions.iteritems():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user