From 7f66c5317d9073a456573ed007e19c1450d71209 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 May 2012 09:56:52 +0530 Subject: [PATCH] remove useless options from azw3 output plugin --- .../ebooks/conversion/plugins/mobi_output.py | 3 - src/calibre/gui2/convert/azw3_output.py | 4 +- src/calibre/gui2/convert/azw3_output.ui | 89 +++++-------------- 3 files changed, 25 insertions(+), 71 deletions(-) diff --git a/src/calibre/ebooks/conversion/plugins/mobi_output.py b/src/calibre/ebooks/conversion/plugins/mobi_output.py index f13ee0312f..a32a4444f8 100644 --- a/src/calibre/ebooks/conversion/plugins/mobi_output.py +++ b/src/calibre/ebooks/conversion/plugins/mobi_output.py @@ -258,9 +258,6 @@ class AZW3Output(OutputFormatPlugin): recommended_value=False, level=OptionRecommendation.LOW, help=_('Disable compression of the file contents.') ), - OptionRecommendation(name='personal_doc', recommended_value='[PDOC]', - help=_('Tag marking book to be filed with Personal Docs') - ), OptionRecommendation(name='mobi_toc_at_start', recommended_value=False, help=_('When adding the Table of Contents to the book, add it at the start of the ' diff --git a/src/calibre/gui2/convert/azw3_output.py b/src/calibre/gui2/convert/azw3_output.py index 8b1ef25aac..0acb436d2c 100644 --- a/src/calibre/gui2/convert/azw3_output.py +++ b/src/calibre/gui2/convert/azw3_output.py @@ -22,9 +22,9 @@ class PluginWidget(Widget, Ui_Form): def __init__(self, parent, get_option, get_help, db=None, book_id=None): Widget.__init__(self, parent, ['prefer_author_sort', 'toc_title', - 'mobi_ignore_margins', 'mobi_toc_at_start', + 'mobi_toc_at_start', 'dont_compress', 'no_inline_toc', 'share_not_sync', - 'personal_doc']#, 'mobi_navpoints_only_deepest'] + ] ) self.db, self.book_id = db, book_id diff --git a/src/calibre/gui2/convert/azw3_output.ui b/src/calibre/gui2/convert/azw3_output.ui index 657a38861d..b85c6155e9 100644 --- a/src/calibre/gui2/convert/azw3_output.ui +++ b/src/calibre/gui2/convert/azw3_output.ui @@ -6,7 +6,7 @@ 0 0 - 588 + 724 342 @@ -14,7 +14,20 @@ Form - + + + + Qt::Vertical + + + + 20 + 40 + + + + + Use author &sort for author @@ -31,13 +44,10 @@ - - - - + - Disable compression of the file contents + Enable sharing of book content via Facebook, etc. WARNING: Disables last read syncing @@ -55,69 +65,16 @@ - - + + + + + - Ignore &margins + Disable compression of the file contents - - - - Kindle options - - - - - - - - Personal Doc tag: - - - - - - - - - - - - Enable sharing of book content via Facebook, etc. WARNING: Disables last read syncing - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - -