epub converter: small fix

This commit is contained in:
shirshasa
2021-04-26 15:26:36 +03:00
parent 8a47f74e8b
commit 44e4e889f3
2 changed files with 1 additions and 15 deletions

View File

@@ -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

View File

@@ -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