forked from LiveCarta/BookConverter
rewrite imports
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
import codecs
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
from os.path import dirname, normpath, join
|
||||
import json
|
||||
import codecs
|
||||
import logging
|
||||
from itertools import chain
|
||||
from collections import defaultdict
|
||||
from typing import Dict, Union, List
|
||||
from itertools import chain
|
||||
from os.path import dirname, normpath, join
|
||||
|
||||
import ebooklib
|
||||
from bs4 import BeautifulSoup, Tag
|
||||
from ebooklib import epub
|
||||
from bs4 import BeautifulSoup, Tag
|
||||
from ebooklib.epub import Link, Section
|
||||
|
||||
from src.util.helpers import BookLogger
|
||||
from src.livecarta_config import LiveCartaConfig
|
||||
from src.data_objects import ChapterItem, NavPoint
|
||||
from src.epub_converter.css_reader import build_css_content, convert_html_soup_with_css_style
|
||||
from src.epub_converter.html_epub_preprocessor import unwrap_structural_tags, get_tags_between_chapter_marks, prepare_title_and_content, \
|
||||
update_src_links_in_images, preprocess_footnotes
|
||||
from src.epub_converter.css_reader import build_css_content, convert_html_soup_with_css_style
|
||||
from src.livecarta_config import LiveCartaConfig
|
||||
from src.util.helpers import BookLogger
|
||||
|
||||
|
||||
|
||||
class EpubConverter:
|
||||
|
||||
Reference in New Issue
Block a user