From 8a275f7defa57be6d7318608d8b4508d0950cc6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Mar 2014 21:49:17 +0530 Subject: [PATCH] Temporarily disable index generation pending refactoring --- src/calibre/ebooks/conversion/plugins/docx_input.py | 1 + src/calibre/ebooks/docx/to_html.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/conversion/plugins/docx_input.py b/src/calibre/ebooks/conversion/plugins/docx_input.py index a998fd4678..30a4bb3868 100644 --- a/src/calibre/ebooks/conversion/plugins/docx_input.py +++ b/src/calibre/ebooks/conversion/plugins/docx_input.py @@ -19,6 +19,7 @@ class DOCXInput(InputFormatPlugin): help=_('Normally, if a large image is present at the start of the document that looks like a cover, ' 'it will be removed from the document and used as the cover for created ebook. This option ' 'turns off that behavior.')), + } recommendations = set([('page_breaks_before', '/', OptionRecommendation.MED)]) diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index 5a17d25eab..9d09e423f2 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -28,7 +28,7 @@ from calibre.ebooks.docx.theme import Theme from calibre.ebooks.docx.toc import create_toc from calibre.ebooks.docx.fields import Fields from calibre.ebooks.docx.settings import Settings -from calibre.ebooks.docx.index import Index +# from calibre.ebooks.docx.index import Index from calibre.ebooks.metadata.opf2 import OPFCreator from calibre.utils.localization import canonicalize_lang, lang_as_iso639_1 @@ -102,7 +102,7 @@ class Convert(object): # If we are doing an index, do the body part of the processing here. # We need to insert bookmarks at the indexed locations before the # main conversion work. - index = Index(self) + # index = Index(self) self.read_page_properties(doc) self.current_rels = relationships_by_id @@ -170,7 +170,7 @@ class Convert(object): self.resolve_links() # For an index, we now want to append the index object - index.generate() + # index.generate() self.styles.cascade(self.layers)