![]() |
#151 | ||
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Hi Alpe,
I pushed a "minimal" set of changes on the "momin" branch: https://github.com/pettarin/ePub3-itizer/tree/momin The changes are: 1. tests/mo/ : directory containing the epub trees to test MO support; 2. README.md : changed date 3. src/plugin.xml : bumped to v0.3.3 4. src/plugin.py : added code to detect and patch SMIL files 5. src/opf_converter.py : added code to generate the <meta...> elements and media-overlay="..." attributes required when MO are defined. Other notable changes: A. I believe this was a bug: https://github.com/kevinhendricks/eP...e12a271c48L259 [/QUOTE] Yes, that was a definitely a bug. Thank you! Quote:
Quote:
So it all looks good. Please generate a pull request and I will merge it tonight when I get home from work. Thanks! Kevin |
||
![]() |
![]() |
![]() |
#152 | ||
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Quote:
https://github.com/pettarin/ePub3-it...ontent.opf#L88 references toc.xhtml, which is not in the spine. If you just add it to the "guide" <nav> in the nav.xhtml file, without adding toc.xhtml to the spine, you will trigger the RSC-011. (And yes, toc.xhtml comes from the epub3_base from which epub2_base has been "backported". Nevertheless epub2_base is a valid EPUB2 publication.) The issue stems from the fact that EPUB2 did not mandate that the <guide> reference item points to an item in the spine (?), while EPUB3 requires: Quote:
Note that the same problem should not occur when "translating" the NCX into the corresponding <nav> in the nav document, since the referenced content documents were required to be in the spine by EPUB2 already. (Hence, adding a similar filter block for the TOC <nav> would be redundant.) Done. |
||
![]() |
![]() |
Advert | |
|
![]() |
#153 |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Hi Kevin, I see you merged the code on GitHub, thank you.
Are you going to add other functions before "releasing" v0.3.3 of this plugin? I am working on the "prepare for MO" plugin I mentioned earlier, and I plan to be done with it before the end of the year. Once done it, and with v0.3.3 of ePub3-itizer out, Sigil could output EPUB 3 files with Media Overlays. |
![]() |
![]() |
![]() |
#154 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Hi,
Yes, Doitsu gave me a list of small changes he would like to see: hiding the landmarks, and pagelists of the nav, copying the guide into the new opf just to help for backwards compatibility, and something else we are debating. Once I get those changes merged in, we can make a release. My focus has been on fixing bugs in Sigil and trying to prevent confusion with SanityCheck vs Flightcrew and how the terms PrettyPrint and Clean have changed their meaning. I hope to have a new Sigil-0.9.2 release out there before the holidays and then follow that up with a epub3-itizer release during my holiday break. Is that okay, or do you need an official epub3-itizer out there sooner? KevinH |
![]() |
![]() |
![]() |
#155 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Hi Alpe,
Went ahead and made hopefully all of my additional changes and just pushed them. I have asked Doitsu to test them (he is a much bigger user of this plugin than I am and has better test cases). If all looks good (in other words ... if I haven't broken anything), I will go ahead and get a v033 out there asap in case you need it to move forward with your plugin. Also, when you get a chance, would you create a pull request to add your new contributions to the main README.md and include with it a link to your website and contact information that you prefer people to see. That way all users will be able to easily find you if they run into difficulties with the SMIL part of the code as well as acknowledging your major contribution. Thank you! KevinH |
![]() |
![]() |
Advert | |
|
![]() |
#156 |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Thanks for the explanation.
I was asking just to know your time frame, and allocate my FLOSS time accordingly. I have no deadline, I do not want to "push" you: feel free to release v0.3.3 as you are comfortable. About my contribution: not a big deal at all. Since you are going to touch the repo anyway, I suggest that you can phrase the ack as you prefer, e.g.: "... code for handling Media Overlays metadata by Alberto Pettarin (please contact him for issues related to SMIL files)" or something similar. |
![]() |
![]() |
![]() |
#157 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
FYI:
Just updated the first post for ePub3-itizer_v033.zip. Please give it a try and let me know of any difficulties. |
![]() |
![]() |
![]() |
#158 | |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Seen, thank you. (Also the README.md.)
I have done some quick tests. The only problem I see is the following: the current code in opf_converter.py outputs an empty Code:
<guide> </guide> This produces the following validation error: Quote:
|
|
![]() |
![]() |
![]() |
#159 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Hi Alpe,
So a guide can be optional but not empty. Strange set of specs! The guide was put back in because of a request so that epub3 ebooks can actually be read and function properly on many epub2 based e-readers if they do not use anything special epub3-wise. I will include that fix for the next release. Kevin ps. FWIW, This tool requires a validated (flightcrew or epubcheck) epub2 before conversion (as input) so the guide should always at least exist. |
![]() |
![]() |
![]() |
#160 | ||
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
I stopped trying understanding the rationale behind the EPUB specs choices...
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#161 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Hi Alpe,
If an epub2 has no guide that is legal. But can an epub2 have an empty guide? If not, then this condition means we are okay (not a bug). As the epub3 should only get the guide element start and end tag if they exist in the the epub2. So the only way a bug exists is if a validated epub2 can have an empty guide element so that it passes an empty guide through to the epub3 opf. If the epub2 has no guide element at all, it should not create an empty one in the epub3 opf. Also checking self.guide will not work as we are passing through the guide in the res list and it is built on the fly. So we would have to build up the guide res piece separately in order to prevent an empty guide set from being passed through. KevinH |
![]() |
![]() |
![]() |
#162 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
The spec you quote has one or more reference tags for the guide tag in epub2 but our own FlightCrew will happily accept an epub2 with an empty guide tag. I have no idea if epubcheck will accept an empty guide for epub2.
So it looks like I will have to build up the guide section to pass through separately from res and then add it in only if at least one reference item exists. Last edited by KevinH; 12-15-2015 at 12:49 PM. |
![]() |
![]() |
![]() |
#163 | |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Quote:
I repeated the test with Sigil 0.9.2 (built from GitHub src), same result. If I just open Sigil (hence, I get a blank file), I see the empty <guide> in the OPF. So, I guess the issue is with Sigil, not with the export plugin. You are right on this. Last edited by AlPe; 12-15-2015 at 12:40 PM. |
|
![]() |
![]() |
![]() |
#164 | |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Detaching from the above:
From the previous quote of the specs, I would say that the <guide> is optional, but it cannot be empty. EDIT: the schema ( http://www.idpf.org/epub/20/spec/OPF...m#AppendixTOCA ) seems to confirm: Quote:
Last edited by AlPe; 12-15-2015 at 12:44 PM. |
|
![]() |
![]() |
![]() |
#165 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Hi AlPe,
Figures! I have a fix for this I will test tonight when I get home from work and commit it to the tree. I will also post a ePub3-itizer_v034.zip with the fix here on this site. Thanks for catching that bug and checking with epubcheck. KevinH Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Output] KePub Output Plugin | jgoguen | Plugins | 588 | 03-28-2025 02:26 PM |
Create a javascript quizz for Epub3 in Sigil | BertrandThibaut | Sigil | 3 | 01-26-2014 09:04 AM |
An epub3 version of Sigil ? | apulia03 | Sigil | 9 | 11-28-2012 01:07 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
epub3 Sigil Poetry(fixed layout) | Giggleton | Sigil | 7 | 04-04-2011 12:58 PM |