Thread: templates
View Single Post
Old 09-03-2021, 01:00 PM   #15
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,873
Karma: 6120478
Join Date: Nov 2009
Device: many
New Plugins for testing

Okay, I have quickly thrown together two plugins:

Template3_v010.zip
It is an input plugin to load an unzipped epub3 from a folder in Sigil Preferences folder called "template3". It will create and use new unique-identifiers using uuids and update both the OPF and any existing NCX


Template2_v010.zip
It is an input plugin to load an unzipped epub2 from a folder in Sigil Preferences folder called "template2". It will create and use new unique-identifiers using uuids and update both the OPF and any existing NCX

I have attached both plugins.

I have also made an additional change to Sigil's source code that will appear in Sigil 1.8, that if you use an input plugin and your currently loaded book in Sigil has NOT been modified, it will go ahead and load the new epub without prompting to proceed since that is the whole point of an input plugin to begin with.

See the attachments for the plugins. They have not undergone much testing so any feedback on them welcome.

Also any contributions of plugin.svg or plugin.icon files for either or both would be welcome!!

Hope this helps.
Attached Files
File Type: zip Template3_v010.zip (13.9 KB, 160 views)
File Type: zip Template2_v010.zip (13.9 KB, 188 views)
KevinH is offline   Reply With Quote