![]() |
#1 | ||
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
EPUB2 to EPUB 3 errors
I recently reinstalled Sigil, and discovered in the process that there's now that EPUB2 to EPUB3 converter plugin -- woohoo! I had so much trouble before trying to convert one of my ebooks to EPUB3 (simply so that I could add in one little audio file) that I finally gave up on it. :/
That plugin is great, though! I still ended up with a ton of errors, but I just finished going through them all one-by-one and correcting them all. Now I've finally got my ebook validating with NO errors -- although this is before I add in that little audio file, mind you -- but I still have a 289 "warnings," virtually all of which seem to be this one: Quote:
Or should I just simply ignore these "warnings"? So that's my first question. My second question arises from when I add in the audio file, which is basically just this line of code... Code:
<audio controls="controls" src="../Audio/tombowling.mp3" style="text-align:center; width:100%;"><i>[Sorry, your device doesn’t support audio]</i></audio> Quote:
Thanks so much in advance (and as always -- I'm so grateful for these forums!). It would be so cool if I can finally get this converted! ![]() Last edited by Psymon; 03-05-2016 at 08:29 AM. |
||
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Did the ePUB2 validates correctly with Flightcrew and ePUBCheck before converting to ePUB3? If so, please report these errors also in the ePUB3 plugin thread. I am wondering this, since adding an audio file should not give those errors in the opf at all.
An image must have the property for an alternative title in it. So, for example, <img alt="description of image" src="<image>" />. To be honest, most people use alt=""... I do think we need to see the OPF to give a better answer. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It sounds to me as if the opf metadata section has somehow "reverted" to epub2. Did you edit the epub3 with any other programs after using the Epub3itizer plugin?
|
![]() |
![]() |
![]() |
#4 |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
My original EPUB2 version validated perfectly -- it's already up on the iBooks store, in fact. I just opened that, ran the EPUB3 converter plugin, ran it through Pagina where I got a ZILLION errors (give or take a few million)
![]() Oh, and I've been doing all this EPUB3 editing in Sigil, too -- would that be the issue here? I realize that that is (or at least was) meant for EPUB2 editing. |
![]() |
![]() |
![]() |
#5 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Oops, sorry, I neglected to respond better to this...
Quote:
And re my OPF file (I presume you mean the content.opf file), here it is, attached... |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
So yes, some of the work done by the Epub3-itizer plugin could conceivably be undone (and those exact errors you're getting introduced as a result) if you're not using the latest version of Sigil when editing the subsequent Epub3-itizer plugin's EPUB3 output. Easy way to tell if that's what's going on is to run the Epub3-itizer created EPUB3 through EpubCheck immediately after it's produced (before ever opening the new EPUB3 in Sigil). It should pass validation (or very, very close to it depending on the plugin version). That way you'll know if editing the EPUB3 with Sigil is introducing the errors or not. Either way, I recommend making sure you're using the very latest version of Sigil (v.0.9.3) and the Epub3-itizer plugin. |
|
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,462
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Your content.opf file is mixing epub2 style dc metadata with epub3 style dc metadata with refines. So unless there is a bug in epub3-itizer that no one else has hit (always a possibility) something has converted the epub3 dc creator, dc title and dc identifier schemes back to epub2. Sigil version 0.9.3 will not do this since it literally prevents the metadata editor from being invoked under epub3. But earlier versions of Sigil will if you invoke the Metadata Editor gui. What else touched the file after epub3-itizer output it? Was it a Sigil version earlier than Sigil-0.9.3?
If need be I can walk you through fixing the metadata for epub3 by hand, removing all of the calibre introduced pieces and properly creating epub3 metadata. Just let me know. KevinH Last edited by KevinH; 03-05-2016 at 02:47 PM. |
![]() |
![]() |
![]() |
#8 |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Hey, thanks guys. I'm using Sigl v. 0.9.3, and epub3-itizer v. 0.3.5 -- and yes, I got all those errors right after simply running the filter on my valid EPUB2 file and then running that through epubcheck. A lot of the errors (as opposed to warnings) had to do with width tags in images and tables, and valign tags in tables, which I switched out to the CSS equivalents -- I'm still stuck with all those warnings, though (289 of them), which I still don't understand the meaning of, and then I got more errors once again when I added in the audio file/code (as I mentioned earlier).
So I guess there is a bug, if it's supposed to come out "perfect." Either that or there's something wrong with my book that's crashing the script when it runs -- but it validates just fine (in EPUB2) so I have no idea what/where there that might be. So yeah, I guess any help in getting things right would be much appreciated! ![]() |
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,462
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi,
I will edit your content.opf and post it for you to use as a model. Will you try rerunning epub3-tizer on your valid epub2 version and saving it under a new name. Then rename the new epub output from epub3-itizer to end with .zip and unzip it and post just the unzipped content.opf file here. That way we can see if the problem is with Epub3-itizer or Sigil. Thanks, KevinH Update: see below for a content_fixed.opf you can use to hand correct your version. As for your warnings, I see under the manifest properties that svg is being used heavily in this epub. If you use svg and there are links in it you should add the xlink:title property as mentioned in the warning. Also, how are you checking the epub2 version before running epub3-itizer? Are you using the FlightCrew plugin or the epubcheck plugin? Given the preponderance of svg in this file you should probably use the epubcheck plugin to do your epub 2 checking as well. Also remember that epubcheck warnings are NOT the same as errors in any way. KevinH Last edited by KevinH; 03-05-2016 at 05:50 PM. Reason: adding fixed opf with correct epub3 metadata |
![]() |
![]() |
![]() |
#10 | ||
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
![]() Quote:
http://www.psymon.com/walden/ebooks/ The book in question (of the four there) is the main anthology, Walden and Beyond -- and if only for reference, it's the very last chapter (the "Postscript," an article which I wrote myself) where I wanted to add in the audio file to play Henry's favourite song. ![]() [Hope it's okay for me to post the link to my website like that -- I recall running into a problem here before that "advertising isn't allowed" in these threads, but that's not my intention here, I'm just sharing the link so you can get the book!] ![]() [EDIT: Oops, I mis-read what you wanted -- sure, I can send along just the content.opf file, but having just sent you the link for the book itself, is that better, so you can run it on that EPUB2 version and actually see yourself all the errors I ran into?] Last edited by Psymon; 03-05-2016 at 05:53 PM. |
||
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,462
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi Psymon,
You misunderstand. I don't want the epub, just the content.opf file that is zipped up inside the output of the epub3 epub3-itizer generates. Epubs are simply special types of zip archives after running epub3-itizer. Thanks, KevinH |
![]() |
![]() |
![]() |
#12 |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Oh, as I said in my "edit" to my last post, I thought that the actual book itself would be better for you -- but here, attached, is the content.opf file, immediately after I ran my EPUB2 version through it (and before I fixed all those "width" and "align," etc. issues).
|
![]() |
![]() |
![]() |
#13 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,462
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi Psymon,
Okay it is correct as it is written, which means that ePub3-itizer is not at fault here. So something in Sigil-0.9.3 is messing up your epub3 when reloaded. I will try to figure out what that is. I just grabbed your book to see what the svg warnings were about. Quote:
Code:
<div class="svg_outer"> <div class="svg_inner"> <svg height="94%" version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1800" preserveAspectRatio="xMidYMid meet" width="94%" xmlns:xlink="http://www.w3.org/1999/xlink"><image height="1800" id="title-original" width="1200" xlink:href="../Images/walden-titlepage.jpg"/></svg> </div> </div> This has nothing to do with epub3-itizer operation. And they are just warnings and can be ignored. Hope this helps, KevinH |
|
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,462
Karma: 5703586
Join Date: Nov 2009
Device: many
|
The bug is in Sigil-0.9.3 when you add any existing file (such as an audio file) somethign causes the metadata to be rewritten. I will track down what and get it fixed for the next release.
The best workaround is to add the audio file to the epub2 version BEFORE running ePub3-Itizer. Thanks, KevinH Last edited by KevinH; 03-05-2016 at 06:54 PM. |
![]() |
![]() |
![]() |
#15 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Actually, if only out of curiosity, I'll try that -- certainly it would be nice if that does then "instantly" convert my book flawlessly. ![]() [EDIT: What the heck is wrong with me today??? That IS what you said to do -- d'oh. That's the second time today. ![]() Oh, and before doing that, I'll first fix all those other things that were giving me errors (re width, align, etc.), plus all those SVG warnings I got, of course. That's interesting, too, re your explanation of the latter -- I couldn't understand the reference to the "SVG link," since what they were pointing to were just plain HTML links, but I guess all those warning messages relate to links that point to an SVG image. That's where epubcheck should tell me the error is -- not in any/all links pointing to that. Did I inadvertently find a bug in epubcheck, too? ![]() Last edited by Psymon; 03-05-2016 at 06:59 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub 3 -Epub 2 Apple Errors | holdit | ePub | 3 | 12-20-2012 08:05 AM |
epub errors | Harden Taylor | Introduce Yourself | 2 | 07-17-2012 02:22 AM |
Epub errors | John123 | ePub | 2 | 06-07-2012 03:13 PM |
Help with EPUB errors | overholt001 | Workshop | 4 | 04-09-2011 10:43 PM |
ePub Errors | mrbillb | ePub | 1 | 08-11-2010 08:24 PM |