Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2025, 04:43 AM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
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:
<p class="indent">If you assume that the spinning mass is in the form of an ultra-dense ring as is shown in Figure 11, with mass <i>M</i> and electric or magnetic charge <i>Q,</i> then using the Kerr metric, it can be shown <a href="../Text/refs.xhtml#fn9" id="n9" class="noteref">[9]</a>,<a href="../Text/refs.xhtml#fn10" id="n10" class="noteref">[10]</a> that <i>if</i> the spinning ring is dense enough and spinning rapidly enough, it acts like a space-warp and a time machine combined. When a small object is sent through the center of the ring, it does not come out the other side!</p>

There are SVG graphics several paragraphs before this (made by "InsertImageSVG" in Sigil) in the file:

Quote:
<div class="breakavoid">
<svg xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 844 1200" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="844" height="1200" xlink:href="../Images/qfig07.gif"/></svg>
</div>

Any idea what is going on and how to placate epubcheck?

Last edited by AlanHK; 01-02-2025 at 07:21 PM.
AlanHK is offline   Reply With Quote
Old 01-01-2025, 05:23 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
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>
Doitsu is offline   Reply With Quote
Old 01-01-2025, 05:46 AM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,619
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by AlanHK View Post
I get this warning from epubcheck?
...
A curiosity, the text you transcribed, which book does it belong to?
RbnJrg is offline   Reply With Quote
Old 01-01-2025, 09:21 AM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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>
Of course, there are also the other ePub3-isms, like using <figure> instead of <div> if you are making an ePub3 book…
Turtle91 is offline   Reply With Quote
Old 01-01-2025, 09:26 AM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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>??
Turtle91 is offline   Reply With Quote
Old 01-02-2025, 07:12 PM   #6
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Doitsu View Post
I wasn't able to replicate this particular problem. Try adding a regular title attribute to the <a> tags:
No change, same errors.

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:
Originally Posted by RbnJrg View Post
A curiosity, the text you transcribed, which book does it belong to?
Appendix to Starquake by Robert L. Forward
He was a real physicist, some of the references are real, others fictional.

=================
Quote:
Originally Posted by Turtle91 View Post
I only use the wrapper if I want an image to take up the whole page/screen and maintain the aspect ratio (xMidYMid meet).
Yes, the latter is why I do this. Otherwise, if it's a portrait image, it can get distorted. It's never been a problem before, though probably I never had footnote links in the same chapter.

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:
Originally Posted by Turtle91 View Post
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>??
No, all closed.
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.
AlanHK is offline   Reply With Quote
Old 01-02-2025, 08:59 PM   #7
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
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
Karellen is offline   Reply With Quote
Old 01-02-2025, 09:46 PM   #8
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Karellen View Post
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
It's epub3.

I will send you a link by PM.
AlanHK is offline   Reply With Quote
Old 01-02-2025, 10:24 PM   #9
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
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
Karellen is offline   Reply With Quote
Old 01-03-2025, 06:02 AM   #10
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Karellen View Post
Also, check what version of EPUBCheck you are using.
I am using v5.2.0
Yeah, I'm a few years out of date.
I tested using an online epubcheck and no errors or warnings.
So it's a bug with my version of epubcheck.

Will update as I can.

Apologies for time wasted.
AlanHK is offline   Reply With Quote
Old 01-03-2025, 02:19 PM   #11
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by AlanHK View Post
Will update as I can.
Instructions here... https://www.mobileread.com/forums/sh...&postcount=166
Karellen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:47 AM.


MobileRead.com is a privately owned, operated and funded community.