Hi All,
Attached is an beta version of the LOI-Generator plugin.
This version will actually make changes and insert the generated loi file if needed or will overwrite only the contents of the ol tag in any file with "loi' listed in the guide or the nav landmarks.
It looks for img or svg image tags wrapped in:
- figure tags with child figcaption (epub3)
- div with child p caption/title
- div with child div caption/title
- svg tag with title or desc child
The generated loi file includes all images considered to be possible targets but xml comments out the ones without any descriptive information available so you can look at the source to see why it has not been added. It uses the first opf dc:language metadata to determine language and translate the "List of Illustrations" string.
This should be good enough to use for testing and feedback.
The user should drag and drop any newly generated loi files to where desired in BookBrowser and when satisfied regenerate any and all TOCs.
Notes:
If the epub has an existing loi, please check it is properly listed in the guide or nav landmarks with the type "loi". If not, use BookBrowser Add Semantics on that file to set it.
In addition, if a loi already exists but does *not* use "ol" tags to hold the list, add an empty ol tag (open and close pair) where you want the list of illustrations to be injected.
All comments welcome.
Update: This plugin now now has been released and has its own thread here:
https://www.mobileread.com/forums/sh...d.php?t=351658