Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-03-2012, 03:38 PM   #1
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
svg error

Ive gone through and through again but for some reason validation says this is wrong:

Code:
<svg xmlns="http://www.w3.org/2000/svg" 
	xmlns:xlink="http://www.w3.org/1999/xlink" 
	version="1.1" 
	width="410"
	height="616" 
	viewBox="0 0 410 616" 
	preserveAspectRatio="none">
        <image width="410" height="616" xlink:href="cover.jpeg"/>
</svg>

it fails for invalid preserveAspectRatio="none">. Ive written several variations and still nothing. Maybe another eye can tell me!

Last edited by curiousgeorge; 12-07-2012 at 12:46 PM.
curiousgeorge is offline   Reply With Quote
Old 12-03-2012, 03:40 PM   #2
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
If I remove preserveAspectRatio="none" it will validate. If I add anything in regards to |xMinYMin|xMidYMin|xMaxYMin|xMinYMid|xMidYMid|xMax YMid|xMinYMax|xMidYMax|xMaxYMax it works.

Last edited by curiousgeorge; 12-07-2012 at 12:48 PM.
curiousgeorge is offline   Reply With Quote
Old 12-07-2012, 12:48 PM   #3
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
ideas?
curiousgeorge is offline   Reply With Quote
Old 12-08-2012, 06:07 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,851
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by curiousgeorge View Post
ideas?
"xMinYMin meet" validates and works

I think all those need a argument 'meet' is mine

meet is the default and supposed to be optional

Last edited by theducks; 12-08-2012 at 09:39 PM. Reason: clarify
theducks is online now   Reply With Quote
Old 12-14-2012, 06:33 AM   #5
rtmyers
Member
rtmyers began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2012
Device: iPad
Which validator is complaining?
rtmyers is offline   Reply With Quote
Old 12-19-2012, 05:10 PM   #6
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
Posts: 305
Karma: 1028382
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
I've filed several bugs about the SVG support in the W3C HTML validator. It's a known weak spot, and you can probably just ignore it. That said, you can also probably do explicit namespace prefixes. Or just include the SVG from a separate file using the <object> tag. That tends to be cleaner.
dgatwood is offline   Reply With Quote
Old 12-21-2012, 01:14 PM   #7
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
After much searching I found the issue was within the google's validation:

Code:
preserveAspectRatio="none"
must be replaced as
Code:
preserveAspectRatio="none "
I have verified this and the validator will validate based on that.

the ebook still works regardless of "none" or "none "
curiousgeorge is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MathML TO SVG saravanan.p ePub 2 08-11-2011 11:38 AM
Validation error: svg cover graycyn Sigil 2 07-24-2011 07:34 PM
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: e-bookuser Devices 1 07-03-2011 04:09 PM
Kindle and SVG? Tom Wood News 1 09-03-2010 08:06 PM
Problems with SVG ninni ePub 11 06-18-2010 11:58 AM


All times are GMT -4. The time now is 05:27 PM.


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