forked from LiveCarta/BookConverter
Docx refactoring
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user