forked from LiveCarta/BookConverter
Little changes working with presets
This commit is contained in:
@@ -172,7 +172,7 @@ class BookSolver:
|
||||
self.status_wrapper.set_processing()
|
||||
content_dict: Dict[str, List[Dict[Union[str, List]]]] = self.get_converted_book()
|
||||
[os.remove(path) for path in [self.book_path,
|
||||
self.preset_path
|
||||
# self.preset_path
|
||||
]]
|
||||
self.book_logger.log("Beginning of processing .json output.")
|
||||
self.status_wrapper.set_generating()
|
||||
|
||||
@@ -52,7 +52,7 @@ class EpubBook(BookSolver):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
epub_file_path = f"../../books/epub/9781260455076.epub"
|
||||
epub_file_path = f"../../books/epub/9781264269044.epub"
|
||||
|
||||
logger_object = BookLogger(name="epub")
|
||||
logger_object.configure_book_logger(book_id=epub_file_path.split("/")[-1])
|
||||
|
||||
@@ -33,9 +33,9 @@ class LiveCartaConfig:
|
||||
"background-color", "background"],
|
||||
r"(^h[1-9]$)": ["list-style-type", "border-bottom", "border-top", "border-left", "border-right",
|
||||
"background-color", "background"],
|
||||
"^li$": ["text-align", "list-style-type"],
|
||||
"^li$": ["text-align", "list-style-type", "value"],
|
||||
"^ul$": ["list-style-type"],
|
||||
"^ol$": ["list-style-type"]
|
||||
"^ol$": ["list-style-type", "reversed", "start"]
|
||||
}
|
||||
|
||||
# Dictionary mapping CSS style attribute names to names that should replace them
|
||||
|
||||
Reference in New Issue
Block a user