View Single Post
Old 01-13-2023, 03:06 PM   #25
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,870
Karma: 6120478
Join Date: Nov 2009
Device: many
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.
Attached Files
File Type: epub pg69363-images-3.epub (2.99 MB, 354 views)

Last edited by KevinH; 01-14-2023 at 03:08 PM. Reason: removed old version of plugin
KevinH is offline