forked from LiveCarta/BookConverter
epub converter: small fix
This commit is contained in:
@@ -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, \
|
from html_epub_preprocessor import unwrap_structural_tags, get_tags_between_ids, prepare_title_and_content, \
|
||||||
update_src_links_in_images, preprocess_footnotes
|
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
|
from css_reader import clean_css, add_inline_style_to_html_soup
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ class LawCartaConfig:
|
|||||||
|
|
||||||
class BookApiWrapper:
|
class BookApiWrapper:
|
||||||
def __init__(self, access, logger_object, book_id=0):
|
def __init__(self, access, logger_object, book_id=0):
|
||||||
self.access: Access = access
|
self.access = access
|
||||||
self.logger_object = logger_object
|
self.logger_object = logger_object
|
||||||
self.book_id = book_id
|
self.book_id = book_id
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user