Skip to main content
Inspiring
December 17, 2022
Answered

Apple Books EPUB check complains about property 'svg' not being declared in OPF file

  • December 17, 2022
  • 1 reply
  • 1476 views

Hello,

while uploading a Fixed Layout EPUB to Apple Books (here we go again...), I got the usual error of a PNG being oversized, which I learned to fix easy enough, plus another error which I had never seen before:

 

ERROR ITMS-9000: Apple-Kummer44-Score-Parts.epub: OEBPS/Apple-Kummer44-Score-Parts-80.xhtml(-1): [OPF-014] The property 'svg' should be declared in the OPF file. (For more information refer to https://help.apple.com/itc/booksassetguide)

 

Of course, at the link provided, there is only the full length guide, not anything actually useful in the short term. I opened the file mentioned in the error and the OPF file. Now: what should I do with it? How could I edit it so that Apple Books doesn't complain? 

It seems it is complaining about the barcode I have added to the edition, which is basically the only truly different thing compared to previous editions. Barcode has been generated as SVG from this website: https://barcode.tec-it.com/en

Files available here: https://www.icloud.com/iclouddrive/0fcfDJ_44pyCfTlCtPPxgpNoA#AppleBooks-issue

Any help appreciated!

Thanks

This topic has been closed for replies.
Correct answer Inélsòre

I ass/u/med it was yet another requirement of Apple's.

 


With the very little, or nothing, that I know about HTML, I added this 

properties="svg"

at the end of the line described in the error and ... the upload succeeded.

What I find fascinating is that eveyr time I upload to Apple something different happens!

I will consider that ... training! 

1 reply

James Gifford—NitroPress
Legend
December 17, 2022

To start with, you should update to v18.1 as soon as it's available to you. It has a number of changes to EPUB export, some long-standing requests, a reversion of the added elements that came with 18.0, and I suspect more "cleanup and fixing" that's not specfically noted.

 

That alone may solve some of the issues you (and all of us) have been encountering. Your issue may be in that middle category of the EPUB code padding that (probably according to standards, but) has been confusing various validation processes.

 

That said, out there at the intersection of Apple's reader + SVG + your many special needs with music scores... one thing at a time. 🙂

 

But 18.1 may well be a boon for all of us who use EPUB exports.

 

Inspiring
December 17, 2022

Updated, tried export again, uploaded to Apple Books, same error again ... 

Any new idea?

James Gifford—NitroPress
Legend
December 17, 2022

Okay, well, it's useful to know it wasn't another of the (unnecessary) additions to EPUB code that 18.0 was doing.

 

I'd place the barcode as another format., or find another generator that creates a more compliant SVG. Seems simple enough, at least from over here. 🙂