View Single Post
Old 06-30-2025, 09:33 AM   #3
Ryn
Connoisseur
Ryn began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Feb 2012
Device: none
Hi KevinH, yeah I've worked with Access-Aide some, and it has some pretty good features. Thanks for the work you put into it, I can see myself using it a lot more over the coming years.

I suppose I wasn't clear enough on what I needed in this particular case.

When epubs are coming back with a lot of different images, all with non-functioning alt tags, it would take a long time for me to describe them all by hand. So I wrote a custom GPT that looks at the image, describes it and any text that is in the image, forms the new img tag, and outputs a csv with two columns: one with a generic img tag holding the path and filename of the image (basically a <img.*?src="../Images/{{filename.ext}}".*?/> and another column with the new alt-tag enriched <img> expression.

Now, all I need is a batch regex replace plugin. I've been trying to get the LLMs to give me one, but Sigil keeps saying it's not a valid sigil plugin. It has a plugin.xml and a plugin.py file, and should be a valid zip archive. I've included the xml below, perhaps someone could help me troubleshoot this?

Code:
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
    <name>Regex Bulk Search Replace CSV</name>
    <type>edit</type>
    <author>Ryn</author>
    <description>Iterates through a user-provided list of search/replace commands using regex from a CSV file.</description>
    <autostart>true</autostart>
    <autoclose>false</autoclose>
    <engine>python3.4</engine> 
    <version>0.3.1</version>
    <oslist>unx,win,osx</oslist>
    <sigil_version_min>0.9.10</sigil_version_min>
    <menu_entry>
        <label>Regex Bulk Search Replace CSV</label>
        <group>Tools</group>
        <menu_name>Plugins</menu_name>
        <shortcut></shortcut>
    </menu_entry>
</plugin>
Ryn is offline   Reply With Quote