03-05-2016, 07:02 PM | #16 |
Sigil Developer
Posts: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi Psymon,
Yes, I edited my response as I did not see you had already posted. You want to add the audio file and make any changes you want on the epub2 side of things and *THEN* run epub3-itizer. On the good news front, this bug does not exist in Sigil master (Sigil-0.9.4) as we have already reworked the complete Metadata gui editor and in doing that prevent the bug. I did try your test case on it and it passes with flying colours even if I add the audio file later. So all should work much better in Sigil-0.9.4 which should be out in under two weeks (barring bugs). Thanks so much for the bug report! KevinH |
03-05-2016, 07:13 PM | #17 | ||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Quote:
|
||
Advert | |
|
03-06-2016, 12:32 AM | #18 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Yaaaay! Success! I got it working, with 289 warnings (still), but NO errors!
Re all those SVG link errors, earlier you'd written this... Quote:
In any case, I'll take your word for it that I can ignore all those warnings -- I guess it's just always nice when you run it through epubcheck and get that lovely (and brief) "No errors or warnings detected" report back. But I guess I can live with all those warnings -- I'm certainly far from perfect, too, and I've lived with myself for all these years just fine. Thanks so much once again, Kevin -- you rock! |
|
03-06-2016, 11:30 AM | #19 |
Sigil Developer
Posts: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The more I read up on that warning, the more I think it is a bug in epubcheck. AFAICT, the xlink:title attribute only is needed for svg anchor "a" tags. Svg has its own "a" tag. So your image tags should not need it. Could it be your code is simply missing the svg close tag in places that results in anchor tags being subsumed into the svg namespace?
Does your code ever use an svg anchor "a" tag? KevinH |
03-06-2016, 02:01 PM | #20 |
Zealot
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
I have the same error message in one of my epub.
I have two inline svg, no links inside, no links in the whole xhtml file. I've tried every possible variations, with "title", "xlink:title", tried to put them inside/outside/between the svg tag, the path tag, etc., no luck... Always the same warning. It's just a warning but still... It's irritating :-) |
Advert | |
|
03-06-2016, 02:59 PM | #21 | ||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Quote:
Also... Yeah, totally. |
||
03-06-2016, 05:44 PM | #22 |
Sigil Developer
Posts: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I am almost certain this is an epubcheck bug. What exact version of epubcheck are you using? The code that sets that warning should only trigger in anchor tags in svg and not in svg image tags. So something funny is going on. I looked at epubcheck-4.0.1 and they have moved where and how they produce this warning, so perhaps the error has already been fixed.
KevinH |
03-06-2016, 06:15 PM | #23 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
In any case, it does tell me that I have the latest version -- supposedly. EDIT/CORRECTION: Oh! Ha ha, now I do see "epubcheck 4.0.1", right under the "validate" button. |
|
03-07-2016, 10:20 AM | #24 |
Sigil Developer
Posts: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
|
This inability to prevent the warning with the latest epubcheck 4.0.1 version really bothers me. So I have created an epubcheck issue on github asking if the epubcheck validator was even correct in this case and if so, how should the warning be prevented. My personal opinion is that it is a bug. Somehow the warning gets triggered by an xlink:href in an svg "image" element but epubcheck does not actually look at that same "image" element to determine if a xlink:title attribute actually exists. Epubcheck should simply not generate a warning if there is no way to prevent it! The idea behind the warning is to convince users to add accessibility information (such as a title that explains what is going on) but adding the title doesn't seem to prevent the warning which defeats the whole purpose.
I will let you know if and when I receive a response on how best to "fix" this. KevinH |
03-07-2016, 10:26 AM | #25 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Except those 200+ warnings that I got seem to all point to places where I don't even have an SVG image! I didn't go through them all, but I think that the warnings occur where I have a link in my text which points to an SVG image. I think you said you downloaded my book, eh? If you run it through epubcheck then no doubt you'll see what I mean (if you can be bothered).
|
03-07-2016, 10:46 AM | #26 |
Sigil Developer
Posts: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi Psymon,
That is not consistent with what Bertrand reported. I assumed you were both talking about the same warning. If you remember, I did ask you earlier if you had anchors in your file to try and rule that out. So these are caused by normal html anchors pointing to an svg external image file? Or is it an anchor pointing toward an html location just before or after the svg embedded in html? Or is it an img tag pointing to an external svg image file? The problem is in none of these cases would an xlink:title attribute be appropriate. It is really only appropriate in standalone svg file, and svg embedded inside xhtml or svg image tag. I will look again at your code when I get back from work to see if I can figure out what is really going on. The warning you are getting just makes no sense if adding xlink:title to the svg image tag does not prevent the warning. KevinH |
03-07-2016, 10:50 AM | #27 | |
Sigil Developer
Posts: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Psymon,
Then where exactly do they point in your code? Can you point me at one specific place in your code and the exact line number and warning message generated? Quote:
|
|
03-07-2016, 11:15 AM | #28 | ||||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Quote:
Quote:
Quote:
I have 292 of these warnings -- and I certainly don't have that many SVG images! It's hard to believe that I have that many HTML links within the book that point "to" SVG images, too, but it's a pretty huge book, so maybe I do. I don't know -- what the heck to I know? |
||||
03-07-2016, 01:47 PM | #29 |
Sigil Developer
Posts: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Psymon,
You seem to be linking directly inside of an svg element. Code:
as shown on the <a href="#maxham">preceding page</a>. Code:
<div class="svg_outer"> <div class="svg_inner"> <svg xmlns="http://www.w3.org/2000/svg" height="94%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1200 1800" width="94%" xmlns:xlink="http://www.w3.org/1999/xlink"><image height="1800" id="maxham" width="1200" xlink:href="../Images/penman-maxham.jpg" /> </svg> </div> </div> So will you please try changing this one piece of code to the following to see if it prevents this particular warning: Code:
<div id="maxham" class="svg_outer"> <div class="svg_inner"> <svg xmlns="http://www.w3.org/2000/svg" height="94%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1200 1800" width="94%" xmlns:xlink="http://www.w3.org/1999/xlink"><image height="1800" width="1200" xlink:href="../Images/penman-maxham.jpg" /> </svg> </div> </div> Please give that a try and let me know if it removes that warning. KevinH Last edited by KevinH; 03-07-2016 at 02:01 PM. |
03-07-2016, 04:13 PM | #30 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
...and I still have 292 warnings (same as before). |
|
|
Similar Threads | ||||
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 |