![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
OPF missing opf metadata tag
I have epubs from various sources and clean them up and convert to azw to load on my Kindle.
I also set some metadata, but in a few files found these were not working correctly. Every time I saved it in Sigil it would change them: e.g.: <dc:identifier opf:scheme="AMAZON"> became <dc:identifier scheme="AMAZON"> and did not work properly (was ignored by kindlegen). Also a swarm of errors turned up in epubcheck. Eventually I found that the culprit was a metadata tag. These files had: <metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> The well-behaved epubs had : <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf"> So I assume the latter part was needed to define the tags properly. Adding that fixed the problem; metadata now works. I don't know the cause of the omission; but perhaps this will be useful to others. Last edited by AlanHK; 07-25-2017 at 10:54 AM. |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,450
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Yes including the opf namespace is required if you use the opf: prefix. Some software omits this namespace declaration or includes it on the package tag itself.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Deleting folders without OPF vs recreating OPF files | wladdy | Library Management | 8 | 03-13-2015 05:50 AM |
Change opf filename from content.opf to title.opf | northstar7 | Sigil | 3 | 09-23-2013 12:44 PM |
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? | DHahn | Kindle Formats | 3 | 04-17-2012 04:06 AM |
Can I cut and paste the Calibre opf into the ePub opf? | wannabee | ePub | 0 | 07-12-2011 02:09 AM |
OPF file OPS/package.opf is missing | Run2Eat | ePub | 2 | 05-31-2011 06:52 PM |