Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2020, 05:48 AM   #1
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 410
Karma: 145324
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:
Statut : failed
Launcher: missing or incorrect paths passed in
What? I'm not so incompetent as to screw up a copy-paste ??

Sigil 1.1.0, Notepad++

Last edited by KevinH; 03-03-2020 at 09:20 AM. Reason: to remove crap at the beginning
un_pogaz is offline   Reply With Quote
Old 03-03-2020, 09:19 AM   #2
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: 7,644
Karma: 5433388
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.
KevinH is offline   Reply With Quote
Old 03-03-2020, 09:43 AM   #3
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 410
Karma: 145324
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.
un_pogaz is offline   Reply With Quote
Old 03-03-2020, 12:25 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
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.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:21 AM.


MobileRead.com is a privately owned, operated and funded community.