Merge processing tags[Docx, Epub]

This commit is contained in:
Kiryl
2022-09-06 16:26:08 +03:00
parent ea37b19c36
commit ddc45e2d04
6 changed files with 226 additions and 277 deletions

View File

@@ -30,13 +30,16 @@ class EpubBook(BookSolver):
json for LiveCarta platform
"""
style_processor = StylePreprocessor()
html_processor = HtmlEpubProcessor(
logger=self.logger_object)
html_preprocessor = HtmlPreprocessor(
logger=self.logger_object, preset_path="presets/epub_presets.json")
style_preprocessor = StylePreprocessor()
html_processor = HTMLEpubProcessor(logger=self.logger_object,
html_preprocessor=html_preprocessor)
json_converter = EpubConverter(
self.book_path, access=self.access, logger=self.logger_object,
style_processor=style_processor, html_processor=html_processor)
style_processor=style_preprocessor, html_processor=html_processor)
content_dict = json_converter.convert_to_dict()
return content_dict