Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2017, 04:36 AM   #1
AlanHK
Addict
AlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheese
 
AlanHK's Avatar
 
Posts: 340
Karma: 1002
Join Date: Apr 2014
Device: PW-3, 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 11:54 AM.
AlanHK is offline   Reply With Quote
Advert
Old 07-25-2017, 12:17 PM   #2
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 2,593
Karma: 772404
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.
KevinH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting folders without OPF vs recreating OPF files wladdy Library Management 8 03-13-2015 06:50 AM
Change opf filename from content.opf to title.opf northstar7 Sigil 3 09-23-2013 01: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 05:06 AM
Can I cut and paste the Calibre opf into the ePub opf? wannabee ePub 0 07-12-2011 03:09 AM
OPF file OPS/package.opf is missing Run2Eat ePub 2 05-31-2011 07:52 PM


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


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