View Single Post
Old 01-17-2023, 03:36 PM   #41
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,893
Karma: 6120478
Join Date: Nov 2009
Device: many
New version of LOI-Generator_v030.zip now available

Hi All,

Thanks to Doitsu and Tenome, and others, a few more bugs were squashed related to properly injecting ids when no id is found on the parent or the image/img tag.

In addition Plugin Preferences for mode of operation for the plugin are now used:

LOI-Generator.json

Code:
{
  "mode": "comment"
  "tabwidth": 4
}
The possible mode values are:[LIST][*]"keep" - use url as desc and treat it as a valid entry even if no caption or title or alt found
[*]"drop" - remove entries where no desc can be found in captions, titles, or alt
[*]"comment" - wrap any entries where no desc can be found in comments


In addition, proper indentation for injected code is now handled and if "drop" is selected as the mode, no ids are added for items when no desc (caption or title or alt) can be found.

After the first run of the plugin, it will default to "comment" mode but the user can edit the LOI-Generator.json to suit their taste.

This plugin should now be usable/

Download LOI-Generator_v030.zip from the attachments of this is post:

https://www.mobileread.com/forums/sh...7&postcount=33

Last edited by KevinH; 01-18-2023 at 11:05 AM.
KevinH is offline