11-19-2014, 11:20 AM | #16 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: all
|
Some minor errors...
Just tried this with interesting results. Very impressive though with some minor errors:
Starting with a completely valid ePUB2, the ePUB3 that was generated from it had the following issues: The original contained two different contributor roles in addition to a creator role in the .opf file. In the ePUB3 these were replicated with the same ID (refines="#contrib0"), so came up as an error in ePUBcheck. Something odd about the generated nav.xhtml document. Unzipping the ePUB3 file there it is called nav.xhtml, however, it doesn't open showing content in an editor (Bluefish). Accessing the file without unzipping shows jumbled errors in the ol tags of the nav.xhtml file and the same is reported by ePUBcheck. Opening in ViewPorter (a Sigil clone?) shows the mark-up, however, says it is called toc.xhtml, although that may be a quirk of that particular software. Anyway, the point here is that the ordered list in the TOC doesn't come out right after the conversion. Also, the toc.ncx was retained in the ePUB3, however, registered an error with ePUBcheck because of the DOCTYPE. Not sure if that is correct or not. Do I understand correctly that Sigil will become ePUB3 compatible in a future release? It would be fantastic if it does. I have been discussing making Bluefish, which toggles well with Sigil, more ePUB3 friendly for detailed editing of component files recently and perhaps it would make sense to coordinate this? Thanks for the work on this so far. |
11-19-2014, 05:32 PM | #17 | ||||
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi Jonathon,
Quote:
Quote:
Quote:
Quote:
Take care, KevinH |
||||
Advert | |
|
11-19-2014, 05:44 PM | #18 |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi Jonathon,
I just posted ePub3-itizer_v017.zip with a bug fix (hopefully!) for using unique ids when multiple creators and/or contributors are used. Please let me know if this doesn't fix your issue. And if you can send me something to recreate your nav issue, that would be grand. Thanks, KevinH |
11-20-2014, 06:01 AM | #19 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: all
|
Sample files
Hi Kevin
I attach a .zip file containing the original toc.ncx and the nav.xhtml generated from it by ePub3-itizer. A text file with the ePUBcheck output from the generated ePUB3 file is also included. The nav file will not open in any external editor that I have tried it with. The contents of the file shows in Notepad and will display in Sigil if the converted ePUB3 is reopened in it. (Re-opening in Sigil is of course confusing and unreliable in this context though, because it reverts the DOCTYPE to its ePUB2 default and introduces other errors that probably really aren't there, such as showing the nav.xhtml file to be in the Text section. These errors are not in the converted ePUB3 file of course.) Yes, I thought the retained toc.ncx was probably valid. I will download ePub3-itizer_v017.zip next and try it. Thanks Jonathan |
11-20-2014, 06:19 AM | #20 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: all
|
Hi Kevin
Yes, ePub3-itizer_v017.zip eliminates the ID error from the contributor entries in the ePUB3 output when tried with the same ePUB2 input file. For some reason this time the generated nav.xhtml file may be successfully opened in an external editor, however, it still records the same 'ol' errors when the ePUB3 file is validated with ePUBcheck. At a quick glance I am guessing that an opening or closing tag is missing in the nested elements. Regards Jonathan |
Advert | |
|
11-20-2014, 03:12 PM | #21 | |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi Jonathan,
Yes, there were a couple of bugs. It worked well for one and two levels of nesting but not when the nesting level changed by more than one at one time. I have now fixed that I hope. I will post a v018 version shortly. I just want to run it through some more tests. Thanks so much for your bug report and test case! KevinH Quote:
|
|
11-20-2014, 03:29 PM | #22 |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi Jonathan,
I have updated the plugin to ePub3-itizer_v018.zip. When you get a free moment, please give it a try and verify that it fixes your nav.xhtml generation bug. Thanks again for the test case! Take care, KevinH |
11-21-2014, 05:03 AM | #23 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: all
|
Version 0.1.8
Hi Kevin
I have tried the same file again with version 0.1.8 of ePub3-itizer, also updating the quickparser.py and have run the output through ePUBcheck once more. This still produces similar errors. However, nav.xhtml now opens cleanly in an external editor and I can see what the issue is, which is that the nested lists should each be contained in their own list item of the parent list (or preceding list in the hierarchy), whereas they appear as ordered lists in between list items instead of inside of one. Interestingly if I open the page as a standalone item in any of the main web browsers all show the nested list as it should appear and do not report any errors. Technically though it is wrong, which must be what ePUBcheck doesn't like about it. I am also getting and error for epub:type="title-page" in the Guide saying it is an undefined property, which when I look is possibly because the same href item has been put for every landmark entry. The last page in the eBook has been repeated for each of them. I have tried it again with a slightly more complex ePUB2 file, which produces similar errors in the nav.xhtml file (and obviously still complains about the DOCTYPE in the toc.ncx). This also gives some errors in the .opf file for the use of dc:type, which is in the original and doesn't raise an error when validated as ePUB2. Without checking the specifications I am not sure if this is actually an error in ePUB3 or not. This is still a brilliant outcome though. Being able to convert Sigil's output to ePUB3 with just a few minor details to resolve that could easily be fixed manually is a great starting point for developing high quality ePUB3. If it might help to have some sample files to test with, either for ePUB3-itizer or for Sigil's further development, contact me directly. They would have to be provided on a non-disclosure basis though. Thanks again for your work on this. Regards Jonathan |
11-21-2014, 04:24 PM | #24 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: all
|
An update: I now wonder if epub:type="title-page" is in fact wrong. There is some ambiguity about whether it should in fact be "titlepage".
The test files I am using are valid ePUB2, though may be a couple of years' old and some aspects of best practice could have formalised since then. Everything I am reporting is otherwise correct, however. Regards Jonathan |
11-21-2014, 06:15 PM | #25 | |||||
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi Jonathan,
Quote:
so I think I have finally figured this one out (but I am not 100% sure). At least this new version should not be any worse than the older one! Quote:
Quote:
I have gone with this list: http://www.idpf.org/accessibility/gu...l/sections.php And it lists titlepage instead of title-page. There is also this much much longer list: http://www.idpf.org/epub/vocab/structure but that list is getting so long it is absurd. It also lists "titlepage" not "title-page" So I have translated the "title-page" which is legal opf2 guide to "titlepage". I used the first link to form the basis for the list I am supporting and have reworkeing the guide types to epub:type mapping. BTW: since the opf2 guide elements allow guide types of "other-*", I have set things up so that "other-*" prefixes will be mapped to the "*" part if it exists in the legal vocabulary of epub:types given by the first list I found. Quote:
See: http://www.idpf.org/epub/vocab/package/types/ So I have changed the code to look for one of the approved types and if not, then simply skipping that dc:type metadata Quote:
Thank you for all of your testcases and bug reports! Please see the first post for the latest ePub3-itizer_v019.zip which will hopefully (finally) get the nav correct. Take care, Kevin |
|||||
11-21-2014, 06:16 PM | #26 |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi All,
ePub3-itizer_v019.zip is now available at the first post with bug fixes. Thanks, KevinH |
11-22-2014, 03:48 AM | #27 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: all
|
Version 0.1.9
Hi Kevin
I have tried version 0.1.9 with the same two ePUB2 files and this time the conversion process failed, producing an error message, which at a glance looks to me to be the same in both cases. I attach a text file with these in. Just to be sure there were no other factors involved I reinstated ePUB3-itizer_0.1.8.zip and that works in Sigil as it did before. Coincidentally I have just been looking at some of the same specifications for a different reason that I may follow up on separately with you sometime. I am guessing that the error messages will mean more to you than they do to me. Let me know if you need anything more on this. Regards Jonathan |
11-22-2014, 09:32 AM | #28 | |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi,
It means I can't type worth a damn. When fixing the dc:type error, I typed "tcontext" instead of "tcontent" and created this error myself. None of the 15 test ebooks I use have dc:type set, so I never caught my typo. If you have a free moment, could you test the v020 version and see if the new nav code actually works? That is my biggest worry and none of my test cases have a multi-level toc.ncx and so none of the nesting issues were ever apparent. Thanks, Kevin ps: There is now an 0.2.0 version with the typo fix Quote:
Last edited by KevinH; 11-22-2014 at 11:19 AM. |
|
11-22-2014, 01:29 PM | #29 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: all
|
Hi Kevin
Brilliant! The same two files now produce ePUB3 versions that go through ePUBcheck cleanly. The only theoretical error reported by it remains the .ncx DOCTYPE. I will probably drop the .ncx file anyway, because the rest of the ePUB3 document would most likely end up too far away from compatibility with an ePUB2 eReader after further development following the conversion, so having one wouldn't be essential. It does make sense to keep it in the conversion process output though because sometimes it will be good to have. However, as a point of interest this documentation suggests that Sigil's original DOCTYPE in the .ncx file isn't absolutely necessary, although obviously it is valid as you said previously: http://www.idpf.org/epub/20/spec/OPF...Section2.4.1.2 This is a big step forward in the practicalities of developing for ePUB3. Thanks Regards Jonathan |
11-22-2014, 01:40 PM | #30 |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi Jonathan,
Here is the official open bug report for epubcheck 3 which is targeted to be closed in epubcheck 4. https://github.com/IDPF/epubcheck/issues/305 There are times the doctype is needed for the ncx to actually work. That is why pre-release versions of epubcheck4 now allow the doctype on the toc.ncx. Take carw, KevinH |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Output] KePub Output Plugin | jgoguen | Plugins | 584 | 01-05-2025 12:12 AM |
Create a javascript quizz for Epub3 in Sigil | BertrandThibaut | Sigil | 3 | 01-26-2014 10:04 AM |
An epub3 version of Sigil ? | apulia03 | Sigil | 9 | 11-28-2012 02:07 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 03:24 AM |
epub3 Sigil Poetry(fixed layout) | Giggleton | Sigil | 7 | 04-04-2011 01:58 PM |