LOI Generator Debug / Proof of Concept ONLY
Okay, attached is a proof of concept LOI generator and the output generated by the Mutiny On the Bounty test epub linked in Doitsu's post in this thread (and attached below for convenience).
This plugin is just a proof of concept and is designed to FAIL so you can see the debug output in the Plugin Runner Window. It builds no loi.xhtml file by design and instead just prints the basic info needed for the loi.xhtml, book path to file, id, and what descriptor it found.
It seems how we identify the descriptor string still needs some work as well as identifying usable ids so new ones do not always need to be inserted.
I post it here as a tool for refining the algorithms used to determine which images to include, where to get good descriptors, and which ids are usable.
This is not ready for use but more to play around with to see if this tool can be useful when in its finished form. Any changes and improvements to the plugin.py welcomed.
Please give it a try on your favourite epubs with lists of illustrations so we can compare what is detected and try to improve on it to make a useful tool.
Thanks in advance
Edit: removed older version of LOI-Generator plugin. See later posts in this thread for newer versions.
Last edited by KevinH; 01-14-2023 at 03:08 PM.
Reason: removed old version of plugin
|