![]() |
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 :angry:) 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++ |
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. |
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 |
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. |
| All times are GMT -4. The time now is 08:44 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.