From 94ce09c7532ad03473e87bd8ed47d13f64506847 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 22 Apr 2014 11:21:41 +0530 Subject: [PATCH] Conversion: Preserve all guide entries that are of a type present in the EPUB 2.0 specification. These entries are used by newer Kindle readers. --- src/calibre/ebooks/oeb/transforms/guide.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/transforms/guide.py b/src/calibre/ebooks/oeb/transforms/guide.py index e4fc2cb9ed..20269531f8 100644 --- a/src/calibre/ebooks/oeb/transforms/guide.py +++ b/src/calibre/ebooks/oeb/transforms/guide.py @@ -43,8 +43,12 @@ class Clean(object): self.oeb.guide.remove('start') for x in list(self.oeb.guide): - if x.lower() not in {'cover', 'titlepage', 'masthead', 'toc', - 'title-page', 'copyright-page', 'text'}: + if x.lower() not in { + 'cover', 'titlepage', 'masthead', 'toc', 'title-page', + 'copyright-page', 'text', 'index', 'glossary', + 'acknowledgements', 'bibliography', 'colophon', + 'copyright-page', 'dedication', 'epigraph', 'foreword', + 'loi', 'lot', 'notes', 'preface'}: item = self.oeb.guide[x] if item.title and item.title.lower() == 'start': continue