12-14-2015, 08:04 AM | #1 |
Resident Curmudgeon
Posts: 76,435
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What plugin(s) would you like to see?
I would love a plugin that converts ePub 3 to ePub 2.
|
12-14-2015, 11:17 AM | #2 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Hi JSWolf,
How would you want it to handle the following: nav document - keep it or discard it? html5 specific tags - these don't exist in xhtml1.1 - keep or strip out, or comment out? epub3 specific attributes such as data-* and epub-type and ... smil, pls accessibility features - how would you deal with those? javascripts - how should those be dealt with? etc. As you can see it is much easier to go from valid epub2 to epub3 since 3 is generally a superset of 2, but going the opposite way will be quite hard and could easily end up losing lots of pieces and functionality. I am not sure it can be done in any rational way unless the epub3 book used no new features over the epub3 set. KevinH |
Advert | |
|
12-14-2015, 12:28 PM | #3 | |
Resident Curmudgeon
Posts: 76,435
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
12-14-2015, 01:26 PM | #4 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Hi JSWolf,
This would most likely have to be an input plugin if someone wanted to do it. - dumping the nav means the user would have to regenerate a new toc.ncx as one might not already exist. - is it just section tags you want removed? Wouldn't it be better to simply comment them out or make them a div tag with a class name that indicates it was originally a section tag? - if javascript, smil, pls or any xml islands are present, just import nothing? - editing the metadata, and the opf is not hard, neither is converting the doctypes KevinH |
12-14-2015, 01:52 PM | #5 | |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Writing a plugin that could just "say so" (when encountering something other than one of your "untrue" EPUB3s) would be a feat in and of itself. Having said that, I'm sure a plugin could be written that could assist with such a conversion, but a one-click output plugin that could handle ALL situations (or gracefully fail in situations when it couldn't) without breaking anything probably isn't in the cards. In the amount of time it would take someone to supply such a plugin with all the necessary parameters to successfully convert each unique EPUB3 it encountered, the manual changes to the code probably could have been made already. |
|
Advert | |
|
12-14-2015, 02:02 PM | #6 | |
Resident Curmudgeon
Posts: 76,435
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
For the javascript, smil, pls, and XML islands, yes, import nothing or a requester to ask to import or import nothing. Jon |
|
12-14-2015, 02:04 PM | #7 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
IMHO, this is mostly a cosmetic problem for users with slight OCD tendencies, because a properly designed ePub3 book with an .ncx file, can be opened even by the oldest ADE version, because the reading system is supposed to ignore unknown tags.
If a book only has a navigation document all you have to do is generate a TOC with Sigil and export it with the ePub3 output plugin. If the book didn't have any validation issues other than the issues caused by down-converting it from epub3 to epub2, you'll end up with a valid ePub3 book that can be read with either ePub2 or ePub3 apps. As for JavaScript, SMIL etc., you can ignore them, because they won't be supported by ePub2 apps anyway. Last edited by Doitsu; 12-14-2015 at 02:08 PM. |
04-10-2016, 05:24 AM | #8 |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2016
Location: Netherlands
Device: Kobo Aura H2O
|
Change metadata in batch
Hi,
I like a plugin with which I can change metadata (title, autor) in batch. Like with MP3's in software like MP3 Tag or Tagscanner. |
04-10-2016, 06:25 AM | #9 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
04-10-2016, 09:34 AM | #10 | |
null operator (he/him)
Posts: 21,000
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
04-10-2016, 10:30 AM | #11 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil's probably not ever going to be very "batch" friendly. It's just not geared that way. I'm not saying such a plugin couldn't be written, but that such a plugin wouldn't really benefit from being launched from Sigil in the first place. It would basically need to be a stand-alone application anyway, so why attach it to Sigil at all?
Last edited by DiapDealer; 04-10-2016 at 10:41 AM. |
04-10-2016, 04:39 PM | #12 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
I'd like a plugin, or something built into Sigil itself, that enabled you to choose whether you wanted to use <em> and <strong> for italic and bold or <i> and <b>. That would probably be best as a Sigil preference I guess.
The ability to add CSS classes easily, as with the Dreamweaver properties panel, would be good too. It would also be useful to be able to add special characters that aren't currently there to the 'Insert Special Character' menu. |
04-10-2016, 06:14 PM | #13 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
1. Open the clip editor (CTRL+ALT+C) 2. Create two new clips: a) Clip 1: name: em; text: <em>/1</em> b) Clip 2: name: strong; text: <strong>/1</strong> (Both clips need be the first two clips; use the arrow keys to move them to the top if necessary.) This will allow you to do the following: a) Highlight text, right-click and select Clips > em/strong. b) Right-click somewhere in the main toolbar; unhide the Clip Bar, select text and click the em or strong Clip Bar buttons. c) Select Edit > Preferences > Keyboard Shortcuts. Delete the shortcuts after Italic and Bold (CTRL+I and CTRL+B) and assign them to Clip 1 and Clip 2. |
|
04-10-2016, 06:20 PM | #14 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Those are really not plugin ideas, unless you want a plugin to change *all* occurrences of i and b to em and strong. If so DiapDealer's TagMechanic plugin can handle that easily right now.
As for choosing a tag for a specific piece of text to use or specifying a css class for it, simply use CodeView or Doitsu's clip idea approach. Bookview is really not the place for fine tuning specific tags and css. The current i and b icons when used in BookView actually use internal QWebPage editing commands that are hard coded to use i and b internally as they existed long before em and strong were added to html. KevinH |
04-10-2016, 06:46 PM | #15 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 495 | 10-19-2024 07:06 AM |
[FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 02:25 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 03:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 01:11 PM |