![]() |
#166 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#167 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#168 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
AddImagesasSVG has already those tags implemented, Sigil ignores them without warning
|
![]() |
![]() |
![]() |
#169 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
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.
|
![]() |
![]() |
![]() |
#170 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#171 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
Quote:
|
|
![]() |
![]() |
![]() |
#172 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#173 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#174 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#175 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
![]() |
#176 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
![]() |
#177 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#178 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#179 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@rubeus
indeed @Doitsu Quote:
|
|
![]() |
![]() |
![]() |
#180 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
![]() Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
|
![]() |
||||
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 |