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 01-08-2016, 02:24 PM   #166
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,796
Karma: 6000000
Join Date: Nov 2009
Device: many
Another head's up

FYI, we have modified Sigil to add 3 user-assigned plugin toolbar icons which means you can now assign Key Shortcuts to up to 3 of your most commonly used plugins.

The user can determine which plugin is assigned to which of the 3 new toolbar buttons using "Manage Plugins".

This along with "autostart" and "autoclose" should make it much easier and more seamless to run plugins in Sigil.

This new feature should appear in the next version of Sigil to be released.

KevinH
KevinH is online now   Reply With Quote
Old 01-08-2016, 02:44 PM   #167
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
Quote:
Originally Posted by KevinH View Post
FYI, we have modified Sigil to add 3 user-assigned plugin toolbar icons which means you can now assign Key Shortcuts to up to 3 of your most commonly used plugins.

The user can determine which plugin is assigned to which of the 3 new toolbar buttons using "Manage Plugins".

This along with "autostart" and "autoclose" should make it much easier and more seamless to run plugins in Sigil.

This new feature should appear in the next version of Sigil to be released.

KevinH
Very cool, thanks! I will incorporate autostart, autoclose and updatecheck in my plugin when I can (and have the time...).

Quick question, how will (or can) the current version of Sigil handle the new tags for autostart and autoclose?

Last edited by Toxaris; 01-08-2016 at 02:49 PM.
Toxaris is offline   Reply With Quote
Advert
Old 01-08-2016, 03:19 PM   #168
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
AddImagesasSVG has already those tags implemented, Sigil ignores them without warning
rubeus is offline   Reply With Quote
Old 01-08-2016, 03:43 PM   #169
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
FYI, we have modified Sigil to add 3 user-assigned plugin toolbar icons which means you can now assign Key Shortcuts to up to 3 of your most commonly used plugins.
Thanks for adding this very useful feature. I've just tested it with the Linux version and both toolbar icons and plugin shortcuts worked fine. For those who can't build Sigil, I've attached two screenshots of the new GUI elements to give you an idea what it looks like.
Attached Thumbnails
Click image for larger version

Name:	Toolbar.png
Views:	506
Size:	6.5 KB
ID:	145385   Click image for larger version

Name:	ManagePlugins.png
Views:	541
Size:	87.1 KB
ID:	145386  
Doitsu is offline   Reply With Quote
Old 01-08-2016, 04:13 PM   #170
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,796
Karma: 6000000
Join Date: Nov 2009
Device: many
Yes,

Absolutely correct. The the Sigil plugin.xml parser is an event parser so it only bothers to record pieces of information it knows about and ignores everything else. So current Sigil and all earlier versions will happily ignore tags it does not know to look for in the plugin.xml code.

KevinH

Quote:
Originally Posted by Doitsu View Post
Thanks for adding this very useful feature. I've just tested it with the Linux version and both toolbar icons and plugin shortcuts worked fine. For those who can't build Sigil, I've attached two screenshots of the new GUI elements to give you an idea what it looks like.
KevinH is online now   Reply With Quote
Advert
Old 01-10-2016, 08:35 AM   #171
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Quote:
Originally Posted by DiapDealer View Post
Keep in mind that the Linux version of Sigil does not have a bundled Python interpreter. Check out the BuildingOnLinux docs at github to see what additional Python modules you'll need to install to meet the minimum requirements for a basic Sigil plugin environment.
This leads me to the question about sigil_bs4. If the linux version does not come with the internal python interpreter, what happens with this library? As far as i understood sigil_bs4 is a derivative of beautifulsoup with some enhancements/modifications.Are plugins using sigil_bs4 limited to win and osx? If yes, should this be marked in the plugin.xml?
rubeus is offline   Reply With Quote
Old 01-10-2016, 08:49 AM   #172
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,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by rubeus View Post
This leads me to the question about sigil_bs4. If the linux version does not come with the internal python interpreter, what happens with this library? As far as i understood sigil_bs4 is a derivative of beautifulsoup with some enhancements/modifications.Are plugins using sigil_bs4 limited to win and osx? If yes, should this be marked in the plugin.xml?
sigil_bs4 is distributed with Sigil. It is available to plugins on all platforms (from Sigil 0.8.9xx on)--whether they use the bundled Python interpreter or not.
DiapDealer is online now   Reply With Quote
Old 01-12-2016, 09:35 PM   #173
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Proposal for a pop-up endnote plugin

Hi

Since touch screens have been introduced some years ago, endnotes display on e-ink readers has been a recurrent hit-and-miss nightmare. From small anchors some years ago, I now use little billboards, hoping that the reader will catch the links accurately... Sometimes I go but do not come back.

This is a proposal for a new plugin: to transform normal endnotes (or footnotes) into pop-up endnotes. This pop-up feature seems to have been first implemented within docx and has been ported to Calibre converted EPUBs and the Calibre viewer some few months ago.

I had first looked for information because I am interested to add this feature to the converter I usually use. I now think it would be maybe easier - and quicker - to add it as a complementary feature, triggered by a plugin.

When you look at the Calibre code, it seems that some fixed tags or attributes have been added to the usual return links. If some expert was so kind as to look at it, he could tell us if this transformation could be made easily -or not.

On this thread you'll find an example of the Calibre code used for a pop-up endnote.

On thinking about it, there could be two steps:
- cleaning all the cruft around the return endnotes (mostly within the a tag), leaving only the href and id attributes
- rebuilding them and adding a new css class that could be used as a default and further customized

Last edited by roger64; 01-12-2016 at 11:24 PM.
roger64 is offline   Reply With Quote
Old 01-13-2016, 02:03 AM   #174
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
That sounds very reader specific. I dont know any reader interpreting a definition list as a popup. Besides that, wothout the CSS the example is worthless.
rubeus is offline   Reply With Quote
Old 01-13-2016, 02:25 AM   #175
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)
Quote:
Originally Posted by roger64 View Post
This is a proposal for a new plugin: to transform normal endnotes (or footnotes) into pop-up endnotes. This pop-up feature seems to have been first implemented within docx and has been ported to Calibre converted EPUBs and the Calibre viewer some few months ago.

I had first looked for information because I am interested to add this feature to the converter I usually use. I now think it would be maybe easier - and quicker - to add it as a complementary feature, triggered by a plugin.

When you look at the Calibre code, it seems that some fixed tags or attributes have been added to the usual return links. If some expert was so kind as to look at it, he could tell us if this transformation could be made easily -or not.

On this thread you'll find an example of the Calibre code used for a pop-up endnote.
Huh????


Popup footnotes/endnotes are pretty simple.
There is an EPUB3 standardized form.
Otherwise you don't get them, at all.

Some ereader applications perform heuristic checks to try to find footnotes and make them pop up.
calibre does, and so do the most recent Kindles.

It is pretty simple to get the Kindle to recognize footnotes -- as long as there are matching backlinks to/from the footnote to the main text.
IIRC, calibre uses the same general heuristics.
eschwartz is offline   Reply With Quote
Old 01-13-2016, 02:36 AM   #176
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
Even though several apps offer popup footnote support, neither the epub2 nor the epub3 standards require footnotes to be displayed as popups.

Quote:
Originally Posted by roger64 View Post
When you look at the Calibre code, it seems that some fixed tags or attributes have been added to the usual return links.
AFAIK, Kovid uses a heuristic algorithm that considers all links to targets with backlinks as popups in Calibre. I.e., no special HTML code other than <sup>1</sup> for the footnote text is required.

If I understand your other post correctly, your problem is that your favorite OpenOffice/LibreOffice epub plugin doesn't generate backlinks for footnotes/endnotes.

The obvious solution would be to save your .odt files as .docx files and to convert them with Calibre.
If your OpenOffice/LibreOffice generated .docx files don't contain footnotes/endnotes with backlinks, it's a OpenOffice/LibreOffice .docx filter issue and should be reported to the OpenOffice/LibreOffice developers.

In the meantime, you could use regular expressions to add the required footnote backlinks to the footnote definitions.

IMHO, writing a plugin for this would be overkill.
Doitsu is offline   Reply With Quote
Old 01-13-2016, 03:15 AM   #177
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thanks for your informed replies.

If the Calibre "heuristics" solution cannot be adapted, well, what can we do?

As the EPUB3 support is just around the corner, maybe an EPUB3 compliant solution will be available at that time. For me, svg extended support, mathml and endnotes pop-ups are the main reasons for using EPUB3. I have no idea how widely they are supported now by e-ink readers.

In fact, my endnotes work most of the time with Kobo and Koreader but I had to increase a lot the size of the anchors (margin-left 0.4em + brackets or accolades). I still find many books -mostly EPUB2 - where it's a pita to try to use them.

I do not seem to understand what's the definition of a "useful" plugin. But this would be another topic...

Last edited by roger64; 01-13-2016 at 04:59 AM. Reason: english language
roger64 is offline   Reply With Quote
Old 01-13-2016, 03:46 AM   #178
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
The size of the anchor should be declared in the CSS. If you have a well maintained snippet library thats no problem.
rubeus is offline   Reply With Quote
Old 01-13-2016, 03:55 AM   #179
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
@rubeus
indeed

@Doitsu

Quote:
In the meantime, you could use regular expressions to add the required footnote backlinks to the footnote definitions.
This is interesting. I will submit one example to you on the relevant forum.
roger64 is offline   Reply With Quote
Old 01-13-2016, 04:31 AM   #180
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 roger64 View Post
If the Calibre "heuristics" solution cannot be adapted, well, what can we do?
Simple, make sure that you format the footnote links in your epubs in a way that Calibre can recognize as footnotes.

Quote:
Originally Posted by roger64 View Post
As the EPUB3 support is just around the corner, maybe an EPUB3 compliant solution will be available at that time.
Most dedicated ePub3 apps (except for ADE 4.5/RMSDK 12.5/Readium) already support popup footnotes, even though the ePub3 standard doesn't require this. You can test epub3 popup footnote/endnote support with this simple epub3 test file and Azardi (OSX, Windows, Linux), Gitden Reader (iOS, Android) and ADE 4.5 (iOS, Android, PC, OSX).

Quote:
Originally Posted by roger64 View Post
In fact, my endnotes work most of the time with Kobo and Koreader but I had to increase a lot the size of the anchors (margin-left 0.4em + brackets or accolades).
AFAIK, Kobos have two rendering engines; to select the ePub3 compatible NetFront ACCESS engine, you'll have to rename epub3 books to kepub.epub.
Doitsu is offline   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 03:07 PM.


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