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 02-03-2018, 03:47 AM   #316
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
@KevinH: I've got a related question. Currently, the only way to position a cursor in an .html file is to use a validation plugin. Would it be possible to add a generic bk.setoffset(manifest_id, offset) function without major code changes?
Doitsu is offline   Reply With Quote
Old 02-03-2018, 08:30 AM   #317
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,793
Karma: 6000000
Join Date: Nov 2009
Device: many
So you are looking for a way for an edit plugin on exit to control and set a single active tab with focus and with a cursor position?

If so what is the use case? Effectively, validators provide a list of files and offsets which the user can easily use to navigate to each after the plugin completes within the validation ui. Why can't you use that as your interface?

So how would setting a cursor position in a specific tab be useful bcause as soon as the user just clicks someplace, the new cursor position is lost.

Why not instead use a simple Py Qt text edit widget and let the user make text changes directly inside the plugin in which you control cursor positioning completely.

As it stands, inside Sigil we would have to clone the validation ui to make something more generic and then extend the plugin result xml and the plugin interface itself. So a pretty major overhaul.

Last edited by KevinH; 02-03-2018 at 08:35 AM.
KevinH is offline   Reply With Quote
Old 02-03-2018, 08:49 AM   #318
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
So a pretty major overhaul.
In that case, forget about it. I'll simply use a custom edit widget.
Doitsu is offline   Reply With Quote
Old 02-07-2018, 12:55 PM   #319
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,793
Karma: 6000000
Join Date: Nov 2009
Device: many
Any Interest in a pseudo-official set of pre-installed Plugins?

We have almost 50 Sigil plugins now. I am really happy with the range of plugins and would like to thank all the plugin authors for their great work!

When we designed the plugin interface, I was hoping it would bring the simplicity and power of python to help spur growth and developer interest in Sigil. I think we have achieved that!

So what are your feelings about pre-packaging/installing a small number of plugins into Sigil itself as sort of "official" plugins? The idea here is that they would still be plugins but whose code (not preferences) would come pre-installed and live inside the Sigil application directory someplace and not have to be downloaded and installed by every user. Plugin preferences would still be specific to the local user.

Ideas for official pre-packaged plugins might include one for docx input, one for kindle input, FolderIn/FolderOut, FlightCrew, epubcheck, font subsetting, css checking, and whatever else most people would find useful.

We would bring these into an official plugins tree on github open to plugin developers or something along those lines, and when the release apps are done these would be included in the main installer package or maybe in a single secondary installer. Making them official would allow us to free up those quicklaunch plugins with official icons while still allowing 5 additional user installed quicklaunch plugins.

Obviously if any plugins include 3rd party code they would have to have compatible licenses if they were to be included in an official tree.

Or is all of this just a waste of time and we simply stick to what we have now?

All comments welcome ....
KevinH is offline   Reply With Quote
Old 02-07-2018, 03:13 PM   #320
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 842
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
Yes, yes, yes! Pre-installed plugins + five selected by user.

The most popular plugins should be added as default, and the user should choose five additional ones as icons on the toolbar.

On the pre-installed list I see EpubCheck, FlightCrew and others as per the discretion. It's a difficult choice, but I was thinking about the same idea all the time.
BeckyEbook is online now   Reply With Quote
Old 02-07-2018, 03:24 PM   #321
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 842
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
BTW:

Quote:
Originally Posted by KevinH View Post
The plugin dynamically generated menus can be assigned key accelerators for all plugins, which can make launching the plugins as easy or even easier than using the quicklaunch icons on the toolbar.
How to do it?

In keyboard shortcuts are only options for five plugins, which also have icons on the toolbar.
Code:
Run Plugin 1 - Run Plugin 2 - Run Plugin 3 - Run Plugin 4 - Run Plugin 5
If I could assign a keyboard shortcut to any plugin, I probably would not mention 10 icons for plugins.
BeckyEbook is online now   Reply With Quote
Old 02-07-2018, 03:40 PM   #322
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,793
Karma: 6000000
Join Date: Nov 2009
Device: many
Whoops, I thought we implemented that but it looks like we haven't yet. All of the main menus (dynamic or not) should allow for shortcut assignments. I will look into that.
KevinH is offline   Reply With Quote
Old 02-07-2018, 04:40 PM   #323
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,589
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Whoops, I thought we implemented that but it looks like we haven't yet. All of the main menus (dynamic or not) should allow for shortcut assignments. I will look into that.
I thought a big part of the reason we created the Quick Launch plugin buttons was because it was the only way we could launch plugins with keyboard shortcuts.
DiapDealer is online now   Reply With Quote
Old 02-07-2018, 04:50 PM   #324
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,589
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I like the idea of including some official plugins, but there's a lot of things I think we'd need to get worked out ahead of time.

Mainly a way for the plugin dev to easily update his integral plugin without needing to wait on a new Sigil release. If their plugin becomes a part of Sigil's codebase, they're almost going to have to use github and utilize pull requests to maintain their plugin.

I think we'd also need to eliminate any code from integral plugins that checks with external sites for updates and such. I almost envision a need for some sort of official Sigil plugin update channel. Whatever that might entail.

Nothing insurmountable, but I think it's going to take some mapping out.
DiapDealer is online now   Reply With Quote
Old 02-07-2018, 04:59 PM   #325
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,589
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
The EpubCheck plugin requires Java. As much I use the plugin and think it's worthy of being built-in, I'm not sure having a potentially non-functional plugin distributed with Sigil (and the ensuing support it might take to help a new user get it up and running) is the best idea.

Ideally, I think good built-in plugin candidates should have no external requirements. And they need to be compatible with the three main platforms Sigil supports.
DiapDealer is online now   Reply With Quote
Old 02-07-2018, 05:35 PM   #326
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,741
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I thought the objective of plugins was to keep the underlying program lean and mean and let the user decide which additional features they need. That approach is also more conducive to the creation of alternative plugins with similar functionality. It also means plugin bug fixes and enhancements can be delivered independently of the core - in a matter of hours, rather than waiting for the next release of the core.

How will you decide which will be in the core, if you exclude plugins that reference external resources, that will eliminate one of the docx import plugins (the one that uses Mammoth) - it could be that that's the one most widely used.

Quote:
Originally Posted by KevinH View Post
[ . . . ]

Or is all of this just a waste of time and we simply stick to what we have now?

[ . . . ]
That would be my 'philosophical' view. However I would not suggest you take much notice of that.



What would be useful would be the means to get hold of earlier versions of plugins so that one can easily revert when something goes wrong.

And a notification mechanism when Sigil starts that advises of new plugins and new versions of installed plugins. As I understand it, it's when one uses a plugin that one will be informed of a new version. But that is probably not the best time to be considering updating the plugin you were just about to use.

BR

Last edited by BetterRed; 02-07-2018 at 05:37 PM.
BetterRed is offline   Reply With Quote
Old 02-07-2018, 06:01 PM   #327
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,589
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
How will you decide which will be in the core, if you exclude plugins that reference external resources, that will eliminate one of the docx import plugins (the one that uses Mammoth) - it could be that that's the one most widely used.
You misunderstood me, I think. Mammoth is delivered with that plugin. It's an internal part of the plugin. It's license allows it. By external resources, I meant something that has to be installed separately to make the plugin work (usually because it can't easily be delivered with the plugin). Like Java with the EpubCheck plugin. Java must be installed on the the system and on the PATH for that plugin to function.
DiapDealer is online now   Reply With Quote
Old 02-07-2018, 06:50 PM   #328
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,741
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
You misunderstood me, I think. Mammoth is delivered with that plugin. It's an internal part of the plugin. It's license allows it. By external resources, I meant something that has to be installed separately to make the plugin work (usually because it can't easily be delivered with the plugin). Like Java with the EpubCheck plugin. Java must be installed on the the system and on the PATH for that plugin to function.
I was thinking 'rules' rather than 'maps' so I may have been muddling the DOCXImport and Language Tool plugins. That, and I did download Mammoth, in part to satisfy my curiosity, and to gain more insight into setting up the mapping.

I noticed there's a new version of Mammoth (1.4), although I'm not sure what changed. How is that eventuality currently handled by the DocxImport plugin, do you have to release a new version of the plugin or...; since we outsourced my old job of converting documents into ebook formats I've stopped using it.

BR
BetterRed is offline   Reply With Quote
Old 02-07-2018, 07:14 PM   #329
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,589
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
I noticed there's a new version of Mammoth (1.4), although I'm not sure what changed. How is that eventuality currently handled by the DocxImport plugin, do you have to release a new version of the plugin or...; since we outsourced my old job of converting documents into ebook formats I've stopped using it.
I haven't checked Mammoth in a while. I'll see what the 1.4 brings to the table. I've modified Mammoth slightly for the plugin's needs, but I'll probably incorporate the changes in the new version at some point.

EDIT: the processing of paragraph indents from 1.4.4 looks interesting.

Last edited by DiapDealer; 02-07-2018 at 07:28 PM.
DiapDealer is online now   Reply With Quote
Old 02-07-2018, 07:26 PM   #330
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,589
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It occurs to me that I may be overthinking the potential update process for built-in plugins. Devs could always maintain beta/development versions of their plugins that install via the normal Plugin Manager interface if they want.
DiapDealer is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Plugin in development Sladd Development 6 06-17-2014 06:57 PM
Question for plugin development gurus DiapDealer Plugins 2 02-04-2012 11:33 PM
DR800 Plugin development for DR800/DR1000 yuri_b iRex Developer's Corner 0 09-18-2010 09:46 AM
Device plugin development reader42 Plugins 10 03-29-2010 12:39 PM
Calibre plugin development - Newbie problems minstrel Plugins 5 04-12-2009 12:44 PM


All times are GMT -4. The time now is 01:02 PM.


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