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-10-2021, 07:00 PM   #1
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
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.
SigilBear is offline   Reply With Quote
Old 03-11-2021, 12:09 PM   #2
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,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 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.
Turtle91 is offline   Reply With Quote
Old 03-11-2021, 12:31 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
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?
JSWolf is offline   Reply With Quote
Old 03-11-2021, 05:37 PM   #4
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Quote:
Originally Posted by JSWolf View Post
Of course, it could be a problem with Pagina. What are they using as a checker?
Pagina E-pub Checker. Is there are better epub checker I should be using?
SigilBear is offline   Reply With Quote
Old 03-11-2021, 05:42 PM   #5
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
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.
SigilBear is offline   Reply With Quote
Old 03-12-2021, 12:38 AM   #6
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by SigilBear View Post
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
Attributes that start with data- are custom attributes. Since they're usually app-specific, you can simply delete them. I.e., search for data-name=".*?" and delete the attribute.

Quote:
Originally Posted by SigilBear View Post
Pagina E-pub Checker. Is there are better epub checker I should be using?
pagina EPUB-Checker is a GUI for EPUBCheck. There is no better checker.
Doitsu is offline   Reply With Quote
Old 03-14-2021, 06:10 AM   #7
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Quote:
Originally Posted by Doitsu View Post
Attributes that start with data- are custom attributes. Since they're usually app-specific, you can simply delete them. I.e., search for data-name=".*?" and delete the attribute.



pagina EPUB-Checker is a GUI for EPUBCheck. There is no better checker.
Wow, I wasn't even aware you could do wild card searches in Sigil. That'll save me a lot of time. Thanks.
SigilBear is offline   Reply With Quote
Old 03-16-2021, 06:48 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
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.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:14 PM.


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