03-03-2020, 05:48 AM | #1 | |
Chalut o/
Posts: 420
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Plugin code example don't work
I don't know much about Python, but my little personal plugin should be a good start.
Nothing transcendental, just a lot of Regex to insert Unbreakable Spaces where needed and I just want to learn. (I'm French, the Unbreakable Spaces is not for pigs and use them ) I found this code example given by de Doitsu for start my learning: https://www.mobileread.com/forums/sh...&postcount=415 COPY PASTE No edit, juste running the plugin for test and : Quote:
Sigil 1.1.0, Notepad++ Last edited by KevinH; 03-03-2020 at 09:20 AM. Reason: to remove crap at the beginning |
|
03-03-2020, 09:19 AM | #2 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Have you tried looking at the Sigil Plugin Framework guide? It explains the anatomy of plugin folder, naming, and etc rules, what structure the plugin must have, what support files etc.
That might actually help. |
03-03-2020, 09:43 AM | #3 |
Chalut o/
Posts: 420
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
I just realized my mistake:
I had named my plugin folder "EspaceInsecable" and the XML tag <name> was "Espace Insécable". Inconsistent name/path, Sigil couldn't find the plugin. My mistake came from the fact that I thought that the tag <name> was the "Displayed name" in the plugin manager. I didn't think that it was also linked to the plugin's folder name, and that this last point was managed discreetly by Sigil. Well, I still have to make a plugin that works (I'm looking at the FrameWork doc), but that's another subject. Topic closed Last edited by un_pogaz; 03-03-2020 at 10:24 AM. |
03-03-2020, 12:25 PM | #4 |
Grand Sorcerer
Posts: 27,938
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yep. That's caught me out several times in the past! Though usually it's only when I manually create a quick, new plugin folder in my Sigil preferences /plugins folder to save some time.
"Launcher: missing or incorrect paths passed in" is now a red flag for me. Nine times out of ten, it's because the plugin folder name doesn't match the plugin.xml name attribute. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Post your Useful Plugin Code Fragments Here | KevinH | Plugins | 18 | 01-27-2020 03:50 PM |
How to get the selected category in the code of the gui plugin? | esvorontsov | Development | 1 | 10-03-2015 12:52 AM |
Using image in plugin code | Jellby | Development | 7 | 03-11-2014 10:56 PM |
input code does not seem to work | Greywizard | Conversion | 3 | 01-29-2011 08:51 PM |
Accessories SD Cards that work or don't work with the eDGe | devseev | enTourage Archive | 31 | 01-11-2011 04:30 PM |