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 11-22-2014, 12:43 PM   #76
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,686
Karma: 5703586
Join Date: Nov 2009
Device: many
And they can, just by including it. Also there is nothing keeping a plugin from importing code from another co-located plugin.
KevinH is online now   Reply With Quote
Old 11-22-2014, 01:24 PM   #77
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: 28,524
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
And they can, just by including it. Also there is nothing keeping a plugin from importing code from another co-located plugin.
Absolutely.

...although I don't consider it wise to depend on the code (via importing) of co-located plugins that aren't under the direct control of the same developer. The other plugin could change and your plugin then becomes dead in the water.

Quote:
Originally Posted by varlog View Post
I only mean if it were a "proper" library other plugins would be able to use it.
A wonderful idea. Great if it happens. It's just not practical to expect all plugin developers to adhere to the practice. Nor can the plugin infrastructure itself force them to do so.

Why are we having this conversation again? The current plugin infrastructure provides enough flexibility to allow developers to be as generous, conscientious, and efficient as they want to be with their code.
DiapDealer is offline   Reply With Quote
Old 11-22-2014, 01:48 PM   #78
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Quote:
Originally Posted by DiapDealer View Post
Why are we having this conversation again? The current plugin infrastructure provides enough flexibility to allow developers to be as generous, conscientious, and efficient as they want to be with their code.
Ok, let us close this sub-topic.
varlog is offline   Reply With Quote
Old 11-22-2014, 10:40 PM   #79
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Perhaps it would simply be suitable if Sigil provided a plugin updater sorta like calibre does?


In which case I am sure that is the eventual intention, because this really is early days and all.
eschwartz is offline   Reply With Quote
Old 11-23-2014, 02:13 AM   #80
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
I think that is the intention. At the moment the python libraries for the framework gets updated if the need arises. So, they follow a different schedule than the main release of Sigil. I can imagine that it stays like that.
Give it time, lets first see some additional plugins. I know I am working on one.
Toxaris is offline   Reply With Quote
Old 02-01-2015, 02:34 PM   #81
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: 28,524
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Updated the first post with a much-needed update to the plugin. It uses the new preferences functionality that Sigil 0.8.3 provides and so Sigil v0.8.3 is, in fact, the minimum version necessary to use the plugin.

It will work with either Python 3 (3.4 or higher) or Python 2.

Last edited by DiapDealer; 02-02-2015 at 11:55 AM.
DiapDealer is offline   Reply With Quote
Old 02-01-2015, 03:50 PM   #82
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
That is fast. Where did you find documentation about the preferences functionality?
Toxaris is offline   Reply With Quote
Old 02-01-2015, 04:03 PM   #83
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,686
Karma: 5703586
Join Date: Nov 2009
Device: many
Hi Toxaris,

Quote:
Originally Posted by Toxaris View Post
That is fast. Where did you find documentation about the preferences functionality?
He actually designed and implemented it! So he may have had a leg-up on how to use it. I do think when it was first announced a month or more ago, DiapDealer added a couple of sample plugins that illustrated how to use it the preferences.

They should be in this forum someplace.

Kevin
KevinH is online now   Reply With Quote
Old 02-01-2015, 04:05 PM   #84
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: 28,524
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Toxaris View Post
That is fast. Where did you find documentation about the preferences functionality?
I coded the preferences functionality.

KevinH released a launcher only update when the preferences functionality was originally added to the codebase. I created two example plugins at that time that gave a quick rundown on how preferences can be saved/retrieved and uploaded them to the Plugin Development thread in post #2.

The launcher_updater is unnecessary now that v0.8.3 is here, but the two plugins ("PrefsExampleSimple_v0.0.2.zip" and "PrefsExampleGroups_v0.0.2.zip") are still the relevant "Documentation" for now.

I'll see if I can't put them somewhere more prominent.

Last edited by DiapDealer; 02-01-2015 at 04:27 PM.
DiapDealer is offline   Reply With Quote
Old 02-02-2015, 01:50 AM   #85
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Great, I will check them out.
Toxaris is offline   Reply With Quote
Old 02-07-2015, 04:45 PM   #86
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Quote:
Originally Posted by DiapDealer View Post
...
Attached is v0.80.1 of the KindleImport plugin.
...
I take it v0.80.1 means KindleUnpack 0.80, KindleImport 0.1? Where is official site for KindleUnpack releases? At the moment, for my purposes, I used KevinH site - but there are no release numbers as far as I can see? Could you please enlighten me as to the precise correlation??

Quote:
Originally Posted by DiapDealer View Post
...
This plugin will work with either Python 3.4+ or Python 2.7+.
...
Did not work with 2.7. I had to install python3-tk. Just saying...

Now the matter of "dummy.epub".
@ forum Administrators:
I'd like to subtract karma from DiapDealer. I'm dead serious: the amount I would like to subtract is 10 points . Is there a way to do it?
varlog is offline   Reply With Quote
Old 02-07-2015, 05:47 PM   #87
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: 28,524
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by varlog View Post
I take it v0.80.1 means KindleUnpack 0.80, KindleImport 0.1? Where is official site for KindleUnpack releases? At the moment, for my purposes, I used KevinH site - but there are no release numbers as far as I can see? Could you please enlighten me as to the precise correlation??
Correlates to the python2and3 branch of Kevin's KindleUnpack github repository. kindleunpack.py is at 0.80 there. Similar to the KindleUnpack calibre plugin, the first two numbers are the KindleUnpack core version, the third digit is for any revisions/bugfixes I may need for the plugin between KindleUnpack releases.


Quote:
Did not work with 2.7. I had to install python3-tk. Just saying...
How odd. Not certain why you had to install python3-tk to get the plugin to work with 2.7 on Linux. I would have thought python-tk would have done the trick.

Yes, many Linux distros come without tk installed nowadays. I will note in the first post that it may be necessary to install the python(3)-tk package on Linux. Easiest way to tell if you need it, is if the plugin fails and the error message suggests the python-tk package might need to be installed.

Quote:
Now the matter of "dummy.epub".
@ forum Administrators:
I'd like to subtract karma from DiapDealer. I'm dead serious: the amount I would like to subtract is 10 points . Is there a way to do it?
Figured you'd like that.
Sorry man, I'm not spending a lot of time worrying about a file name that's only going to be relevant to a particular forked version of Sigil. You're free to fork the plugin for your own needs, though!

Last edited by DiapDealer; 02-07-2015 at 06:16 PM.
DiapDealer is offline   Reply With Quote
Old 02-07-2015, 07:37 PM   #88
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Quote:
Originally Posted by DiapDealer View Post
Correlates to the python2and3 branch of Kevin's KindleUnpack github repository. kindleunpack.py is at 0.80 there. Similar to the KindleUnpack calibre plugin, the first two numbers are the KindleUnpack core version, the third digit is for any revisions/bugfixes I may need for the plugin between KindleUnpack releases.
not sure.. will investigate... no official site with tagged releases?
Quote:
Originally Posted by DiapDealer View Post
How odd. Not certain why you had to install python3-tk to get the plugin to work with 2.7 on Linux. I would have thought python-tk would have done the trick.
it didn't... by 2.7 (Ubuntu14.04) tk was included, but your plugin invokes unconditionally python 3 apparently.
Quote:
Originally Posted by DiapDealer View Post
Figured you'd like that.
Sorry man, I'm not spending a lot of time worrying about a file name that's only going to be relevant to a particular forked version of Sigil. You're free to fork the plugin for your own needs, though!
On my schedule tomorrow (f..k you python, here I come again!). My patch for Sigil works for 0.8.4 with no conflicts at the moment. The other one too . Thank you user_none/kevinH!
Will post varlogsKindleImport here when I'm through, though.
And still I want 10 points of your karma! The software should make all those dumb necessary activities more unnecessary... "dummy.epub", indeed!

Last edited by varlog; 02-07-2015 at 07:48 PM.
varlog is offline   Reply With Quote
Old 02-07-2015, 08:03 PM   #89
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: 28,524
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by varlog View Post
not sure.. will investigate... no official site with tagged releases?
Not sure what you mean. The official site for KindleUnpack IS KevinH's github repository. My KindleImport plugin uses the python2and3 branch there. Which hasn't had any official tagged releases yet. I like head starts.


Quote:
it didn't... by 2.7 (Ubuntu14.04) tk was included, but your plugin invokes unconditionally python 3 apparently.
Yeah, no. My plugin does no such thing. I've tested both its python2 and python3 functionality extensively on Windows and Linux. It will work with either. I think you'll find that in Sigil's Plugin Manager, you have both the python2 and python3 interpreters configured. In the case where both interpreters are configured and available, KindleImport (not being able read human minds yet) will default to using the python3 interpreter (because it has to choose one of them after all). If you remove the path to the python3 interpreter, it will happily use the python2 interpreter. If you'd like it to default to using python2 while leaving both interpreters configured, crack the zip open and reverse the order of the two <engine> entries in the plugin.xml file.

Quote:
On my schedule tomorrow (f..k you python, here I come again!). My patch for Sigil works for 0.8.4 with no conflicts at the moment. The other one too . Thank you user_none/kevinH!
Will post varlogsKindleImport here when I'm through, though.
And still I want 10 points of your karma! The software should make all those dumb necessary activities more unnecessary... "dummy.epub", indeed!
Best of luck with all that. I'd rather you changed the plugin name a little more than that, but whatever... do what you think best.

Last edited by DiapDealer; 02-07-2015 at 08:22 PM.
DiapDealer is offline   Reply With Quote
Old 02-07-2015, 08:11 PM   #90
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Ok, was not precise enough, official kevinH realeases is at v077 at the moment. The branch python2and3 (see only master) is not visible to me?
varlog is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] ePub3-itizer - epub3 output plugin for Sigil KevinH Plugins 457 05-28-2025 06:14 PM
epubcheck plugin for Sigil Doitsu Plugins 539 04-19-2025 08:45 AM
kindlegen plugin for Sigil Doitsu Plugins 173 10-15-2024 02:51 AM
[Plugin] PunctuationSmarten Sigil plugin DiapDealer Plugins 138 07-11-2023 11:22 AM
smoothRemove_v010 plugin for Sigil kbanelas Plugins 15 01-27-2017 05:51 PM


All times are GMT -4. The time now is 12:31 PM.


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