From 44e4e889f327fc2ab9581ac4defe74c51ede0550 Mon Sep 17 00:00:00 2001 From: shirshasa Date: Mon, 26 Apr 2021 15:26:36 +0300 Subject: [PATCH] epub converter: small fix --- src/epub_postprocessor.py | 14 -------------- src/livecarta_config.py | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/epub_postprocessor.py b/src/epub_postprocessor.py index 0e8ed37..900f22b 100644 --- a/src/epub_postprocessor.py +++ b/src/epub_postprocessor.py @@ -13,20 +13,6 @@ from data_objects import ChapterItem, NavPoint from html_epub_preprocessor import unwrap_structural_tags, get_tags_between_ids, prepare_title_and_content, \ update_src_links_in_images, preprocess_footnotes -# epub3 examples: -# https://github.com/IDPF/epub3-samples -# specification: -# https://idpf.github.io/epub-vocabs/structure/ -# footnotes: -# http://www.theheratik.net/books/tech-epub/chapter-8/ -# http://kb.daisy.org/publishing/docs/html/epub-type.html -# todo: http://kb.daisy.org/publishing/docs/html/notes.html -# todo: https://docs.python.org/3/howto/unicode.html - - -# поиск toc в epublib: -# если в content.opf есть в spine toc атрибут -> можно найти ncx файл -> из него достать navMap -# если его там нет, пробуют искать nav tag в manifest -> EpubNav. from css_reader import clean_css, add_inline_style_to_html_soup diff --git a/src/livecarta_config.py b/src/livecarta_config.py index 87ce55d..d4f9743 100644 --- a/src/livecarta_config.py +++ b/src/livecarta_config.py @@ -111,7 +111,7 @@ class LawCartaConfig: class BookApiWrapper: def __init__(self, access, logger_object, book_id=0): - self.access: Access = access + self.access = access self.logger_object = logger_object self.book_id = book_id