Docx refactoring

This commit is contained in:
Kiryl
2022-07-27 20:20:52 +03:00
parent 617d4fcaef
commit 290ffa346a
4 changed files with 182 additions and 226 deletions

View File

@@ -34,9 +34,9 @@ class DocxBook(BookSolver):
"""
# 1. Converts docx to html with LibreOffice
html_converter = Docx2LibreHTML(self.book_id, self.file_path, self.access,
html_converter = Docx2LibreHTML(self.book_id, self.book_path, self.access,
self.logger_object, self.libre_locker)
# TODO presets
# todo presets
# 2. Parses and cleans html, gets list of tags, gets footnotes
parser = HTMLDocxPreprocessor(
@@ -53,7 +53,7 @@ class DocxBook(BookSolver):
if __name__ == "__main__":
docx_file_path = '../../docx/music_inquiry.docx'
docx_file_path = '../../books/docx/music_inquiry.docx'
logger_object = BookLogger(
name='docx', book_id=docx_file_path.split('/')[-1])
locker = Event()