![]() |
#1 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
SVG images trigger data-name error
I just recently learned how to make SVG images. They were working great in my pub until I discovered they're registering errors in Pagina: Attribute data-name not allowed here
I'll probably have to pursue this on a SVG forum, but I wanted to first find out if SVG images should be used in epubs to begin with. Alternatively, is this an error message I can simply ignore? Thanks. |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,346
Karma: 20171571
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
|
Yes, SVG images can be used - I use them all the time. Having said that, some older devices may not play nicely with them, so check your target device for compatibility.
As for the errors, some software might be adding metadata attributes that are not in the "standard" or that the checker software doesn't recognize. Either update your checking sofware, or just remove the metadata attribute manually. One way you can do that is by clicking on the svg file within Sigil, then finding/deleting the offensive info. edit: I also make sure I remove any extra metadata when I save an SVG using inkscape...just select/deselect the appropriate boxes in the save dialog. ( I use Optimized SVG) I'm sure there are equivalent options in other software. Last edited by Turtle91; 03-11-2021 at 12:12 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,680
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Of course, it could be a problem with Pagina. What are they using as a checker?
|
![]() |
![]() |
![]() |
#4 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
|
![]() |
![]() |
![]() |
#5 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Wow, good tip about clicking on the SVG file in Sigil. I didn't realize you could view the source code like that.
I just recently learned how to work with SVG using Illustrator. I just save them with the default settings: Styling: Internal CSS Images: Preserve Object IDs: Layer Names Decimal: 2 (I sometimes have to change it to 3 in order to make text display correctly.) Minify and Responsive are checked by default, also. As for target devices, I've only viewed my epub with Apple Books so far, and they look fine. That's why I wondered if the error might be some kind of bug I can just ignore. Thanks for the tips. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#7 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,680
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've found that the combination of the Calibre ePub checker and epubcheck is a good combination. Calibre's ePub checkers handles checks the CSS better then epubcheck.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
web page having svg data | njpig | Recipes | 2 | 10-27-2020 05:45 AM |
SVG images | AlanHK | Kindle Formats | 0 | 08-24-2018 07:58 AM |
SVG images - why? | odamizu | ePub | 24 | 03-02-2018 06:15 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 |
SVG images not going into the e-book | bkleine | Conversion | 1 | 11-23-2014 09:01 PM |