![]() |
#1 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
"SVG hyperlinks should have a human-readable title"
I get this warning from epubcheck:
WARNING(ACC-011): SVG hyperlinks should have a human-readable title (using the 'title' child element or the 'xlink:title' attribute). The line referenced is to paragraphs like this with a footnote link, no SVG: Quote:
There are SVG graphics several paragraphs before this (made by "InsertImageSVG" in Sigil) in the file: Quote:
Any idea what is going on and how to placate epubcheck? Last edited by AlanHK; 01-02-2025 at 07:21 PM. |
||
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
I wasn't able to replicate this particular problem. Try adding a regular title attribute to the <a> tags:
Code:
<a title="[9]" href="../Text/refs.xhtml#fn9" id="n9" class="noteref">[9]</a>, <a title="[10]" href="../Text/refs.xhtml#fn10" id="n10" class="noteref">[10]</a> |
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,619
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
![]() |
![]() |
![]() |
#4 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,291
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I’m not sure if this is the cause of the error code, but was wondering why you are using an svg wrapper to insert an inline image (gif)? I would use Sigil’s built-in "Insert image" rather than the "InsertImageSVG" plugin.
I only use the wrapper if I want an image to take up the whole page/screen and maintain the aspect ratio (xMidYMid meet). If I want to insert the image amidst paragraphs then I would wrap the <img> tag with a <div>: Code:
<p>Some paragraph text.</p> <div class="image"> <img alt="" src="../Images/qfig07.gif" </div> <p>Some paragraph text.</p> And if I want to embed the image within the paragraph (last resort): Code:
<p>some text with one-off symbol <img alt="" src="../Images/weirdsymbol.gif"</p> |
![]() |
![]() |
![]() |
#5 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,291
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
As for the error code itself… do you have an image that didn’t properly close the </svg> tag and it is thinking the <a> link is inside the <svg>??
|
![]() |
![]() |
![]() |
#6 | ||||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Also tried putting a title in the SVG: <div class="breakavoid"> <svg xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 652 1200" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="652" height="1200" xlink:href="../Images/qfig01.gif"/> <title>Figure 1</title></svg> </div> Same warnings, no new ones at least. ================= Quote:
He was a real physicist, some of the references are real, others fictional. ================= Quote:
For landscape images, I just do something like: div.diagram{margin:1em;} img.wid100{width:100%;} <div class="diagram"><img alt="" src="../Images/qfig08.gif" class="wid100"/></div> Of course, this assumes the viewer is set in portrait mode, but that's how I read 99.9% of the time. Quote:
I would expect a more specific error about that, and all the intervening text to disappear as well. If I delete an </svg>, Sigil pops up an error immediately. ================= Note that this is just a "Warning", the epub looks okay in viewers, converts to Kindle without issue. But if this happened in a book I was going to publish any epubcheck error can veto it so I want to work out the issue. Can dumb down the image code and omit SVG if I have to if no other way. Last edited by AlanHK; 01-02-2025 at 08:01 PM. |
||||
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Is it an epub2 or 3 ebook?
Maybe upload the ebook? Scramble it if in copyright. I know from personal experience the <title> tags do not work on a Libra2 |
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Also, check what version of EPUBCheck you are using.
I am using v5.2.0 |
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Instructions here... https://www.mobileread.com/forums/sh...&postcount=166
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
giude item "cover" displayed as "Title page" | quinta@ebf.cz | Viewer | 21 | 03-21-2024 06:52 AM |
Setting "Title" from "Title Sort" in bulk. | alyshadeshae | Library Management | 2 | 09-16-2022 09:43 AM |
Can't add cover in Calibre -- get "svg-error" (the property 'svg' should be declared) | Just some guy | Editor | 7 | 04-11-2017 09:54 PM |
Use "short" instead of "full" title for title sort & renaming? | wolpi | Library Management | 2 | 08-04-2016 05:25 PM |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |