Edit Book: Add a tool to upgrade EPUB 2 books to EPUB 3. Accessed via Tools->Upgrade book internals

This commit is contained in:
Kovid Goyal 2018-04-15 19:47:18 +05:30
parent 7167103401
commit 4a9f5d2a18
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 11 additions and 0 deletions

View File

@ -482,6 +482,14 @@ attributes. After removing the style information, a summary of all the changes
made is displayed so you can see exactly what was changed. The tool can be made is displayed so you can see exactly what was changed. The tool can be
accessed via :guilabel:`Tools->Filter style information`. accessed via :guilabel:`Tools->Filter style information`.
Upgrading the book's internals
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This tool can be used to upgrade the book's internals, if possible. For
instance it will upgrade EPUB 2 books to EPUB 3 books. The tool can be
accessed via :guilabel:`Upgrade book internals`.
.. _checkpoints: .. _checkpoints:
Checkpoints Checkpoints

View File

@ -424,6 +424,9 @@ class Main(MainWindow):
self.action_remove_unused_css = treg( self.action_remove_unused_css = treg(
'edit-clear.png', _('Remove &unused CSS rules'), partial( 'edit-clear.png', _('Remove &unused CSS rules'), partial(
self.boss.polish, 'remove_unused_css', _('Remove unused CSS rules')), 'remove-unused-css', (), _('Remove unused CSS rules')) self.boss.polish, 'remove_unused_css', _('Remove unused CSS rules')), 'remove-unused-css', (), _('Remove unused CSS rules'))
self.action_remove_unused_css = treg(
'arrow-up.png', _('&Upgrade book internals'), partial(
self.boss.polish, 'upgrade_book', _('Upgrade book internals')), 'upgrade-book', (), _('Upgrade book internals'))
# Preview actions # Preview actions
group = _('Preview') group = _('Preview')