|
|
Thread Tools | Search this Thread |
04-11-2017, 04:45 PM | #1 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
Can't add cover in Calibre -- get "svg-error" (the property 'svg' should be declared)
When I add a cover to my ePub file, I get this Validator error:
"ERROR: OEBPS/titlepage.xhtml -- The property 'svg' should be declared in the OPF file." Could anyone please tell me how I fix this? EDIT: I've tried adding the cover in the two ways: 1) Using Calibre's "Add cover" option. 2) Adding the image as a New File, and then adding that file as a cover. But both ways result in the same error. Am I missing a third way? Last edited by Just some guy; 04-11-2017 at 05:12 PM. |
04-11-2017, 05:35 PM | #2 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
OK, inspired by an old post by theducks, I tried "Add cover" in Sigil instead, and now it works!
|
04-11-2017, 05:58 PM | #3 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Would I be right in thinking this was an EPUB3 rather than an EPUB2? The cover page you added via calibre probably contained an image wrapped in an <svg> tag.
For EPUB3s, EpubCheck will show an error if the OPF manifest item for an XHTML file containing an <svg> tag doesn't have a properties="svg" attribute e.g. Code:
<item href="text/titlepage.xhtml" id="titlepage" media-type="application/xhtml+xml" properties="svg"/> |
04-11-2017, 06:09 PM | #4 |
Well trained by Cats
Posts: 29,812
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
04-11-2017, 07:07 PM | #5 | |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
Quote:
But I assume I would have to open the file as an OPF (whatever that means ) in order to edit it, and I've no idea how to do that. Anyway, the problem is solved, and my ebook finally looks exactly like it should. So I'll say everybody for now! |
|
04-11-2017, 08:33 PM | #6 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
The OPF file is the master control file for your EPUB. You edit it like any other file when you have the EPUB open in the calibre Editor (or the Sigil editor).
|
04-11-2017, 09:27 PM | #7 |
Bibliophagist
Posts: 35,498
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
04-11-2017, 09:54 PM | #8 |
Well trained by Cats
Posts: 29,812
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There are tools in Calibre and Sigil that do most of the normal entry tasks. On occasion, you might have to resort to direct edit to cleanup things left behind
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of SVG wrapper in Add Cover module | eggheadbooks1 | Sigil | 9 | 11-19-2016 03:43 PM |
SVG images marked as "unused media" | AlanHK | Sigil | 5 | 09-02-2016 12:36 PM |
using "Add Blank SVG Image" | dhdurgee | Sigil | 3 | 11-07-2015 01:47 PM |
What does properties="svg" on an <item> element in the manifest mean? | rtmyers | ePub | 0 | 12-14-2012 06:37 AM |
Validation error: svg cover | graycyn | Sigil | 2 | 07-24-2011 07:34 PM |