Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2014, 12:09 AM   #1
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
Validation Error on SVG image No RDF allowed

I created some svg images with Inkscape via bitmap trace, and made sure to save to "plain svg". I added them to my epub, they display fine in Sigil, Calibre, ADE.

Pagina Epubchecker [http://www.pagina-online.de/produkte...checker/#c773] Gives error message for each one.


ERROR: filename.epub/OEBPS/Images/h06.svg(16,14): element "rdf:RDF" not allowed anywhere; expected the element end-tag or text

The SVG looks like this:
Spoiler:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="511"
height="245"
id="svg3021">
<metadata
id="metadata3027">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>

</metadata>
<defs
id="defs3025" />
<path
d="m 168.3347,240.80845 c 0.13854,-2.77292 0.56997,-3.33297 2.6653,-3.45991 1.375,-0.0833 3.24427,-0.1958 4.15393,-0.25 1.50798,-0.0898 1.48592,-0.5407 -0.25,-5.10927 -1.04716,-2.7559 -1.90393,-5.8808 -1.90393ETC, ETC, ETC.


Should I be concerned, and if so, what might be the fix?

Thanks for any advice.
gG

Last edited by GrannyGrump; 03-21-2014 at 12:11 AM.
GrannyGrump is offline   Reply With Quote
Old 03-21-2014, 01:10 AM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Generally speaking SVG files are not support in ePub 2. SVG is supported inside a HTML document in ePub 2. The entire metadata should be removed and an html wrapper should be added. SVG by itself is supported in epub 3.

Dale
DaleDe is offline   Reply With Quote
Advert
Old 03-21-2014, 01:26 AM   #3
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
I am using the svg referenced in an xhtml file, called the same way as I would call a jpeg or png. The code looks like this:

Code:
<blockquote class="epigram">
<p class="ethiopic"><span class="noade">
መፍትው፡​ሕዝበ፡​ክርስቲያን፡​እለ፡​አልቦሙ፡​ውሉደ፡​ይሕፅንዎሙ፡​ለእጓለ፡​ማውታ፡​ወራዙት፡​ወደናግል፡​ወይረስይዎሙ፡​ከመ፡​ውሉዶሙ፡​ወፈድፋደ፡​ያፍቅርዎሙ።
</span>
<span class="ade">
<img alt="" class="svg6" src="../Images/h02.svg"/></span>
</p>
<div>
<a href="../Text/appendixB.xhtml#epgtr02" id="epg02">[&nbsp;2&nbsp;]</a>
</div>
</blockquote>

EDIT TO ADD-- DaleDe, it took a few minutes for the penny to drop. I see what you are saying -- the metadata is superfluous for the usage in xhtml. Thank you for your help.

Last edited by GrannyGrump; 03-21-2014 at 02:42 AM. Reason: duh! moment
GrannyGrump is offline   Reply With Quote
Old 03-21-2014, 02:58 AM   #4
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,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Apparently, ePubcheck accepts only SVG 1.1 images without RDF metadata, even though ADE/RMSDK displays these files just fine.

However, you can easily fix this by implementing the following changes:

1. Delete xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2. Change version="1.2" to version="1.1"
3. Delete the <rdf:RDF> ... </rdf:RDF> section

The header should look like this:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.1"
   width="511"
   height="245"
   id="svg3021">
  <defs
     id="defs3025" />
  <metadata
     id="metadata7">
  </metadata>
If you implement these changes, you shouldn't get any SVG-related validation errors.

Last edited by Doitsu; 03-21-2014 at 04:48 AM.
Doitsu is offline   Reply With Quote
Old 03-21-2014, 04:02 AM   #5
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
Doitsu, thank you so much for the explanation and the detailed instruction.

I despair of ever coming to grips with svg in all its wondrous and wandering ways...
GrannyGrump is offline   Reply With Quote
Advert
Old 06-23-2014, 06:28 PM   #6
MikeWV
Connoisseur
MikeWV began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Nov 2013
Device: Kobo Touch
A tip of the hat to Duitso!

Thanks, Doitsu. #2 wasn't an issue for me and I had surmised that I needed to do #3 but it would have been a while before before I figured out the need to do #1.
MikeWV is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inkscape SVG Validation Problems doubleshuffle ePub 2 12-20-2013 12:37 AM
epub validation error -- image not reachable vootie ePub 14 03-08-2012 10:34 AM
ePub validation error: 'element "span" not allowed here' nannygoats ePub 5 11-30-2011 08:47 AM
Image Validation Error tracyy Sigil 2 10-23-2011 03:42 AM
Validation error: svg cover graycyn Sigil 2 07-24-2011 07:34 PM


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


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