07-20-2014, 11:57 PM | #1 |
Banned
Posts: 397
Karma: 85500
Join Date: Feb 2011
Location: Sydney
Device: Sony PRS350, Onyx M92, Onyx T68 (defective!)
|
What is metadata.opf for?
The books usually comes in a folder that contain three files.
The .epub, a cover .jpg and a metadata.opf. The .epud by itself seem to work just fine in my readers without metadata.opf and I don't use cover image. WHat is the purpose of metadata.opf? Can I just delete them and store all my books in just epud, so that each book do not need to have it's own folder. |
07-21-2014, 12:26 AM | #2 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
No. calibre's library structure should not be messed with, or you may break the library.
metadata.opf contains the mtetadata backup for each book in your library. calibre will backup all metadata there every time a change is made. |
07-21-2014, 12:37 AM | #3 |
Banned
Posts: 397
Karma: 85500
Join Date: Feb 2011
Location: Sydney
Device: Sony PRS350, Onyx M92, Onyx T68 (defective!)
|
But what does metadata do exactly?
Remembers your font size and where you read up to in the book etc? |
07-21-2014, 12:44 AM | #4 |
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
It contains a number of things:
ePub version page-progression direction (right to left flip or left to right) metadata about author, book name, description, isbn etc... font or fixed layout information a manifest with all the files includded in the ePub package the order of which the distinct html files should be read So basically it has to be a part of the ePub of you want readers to be able to read your file properly. |
07-21-2014, 12:56 AM | #5 |
Banned
Posts: 397
Karma: 85500
Join Date: Feb 2011
Location: Sydney
Device: Sony PRS350, Onyx M92, Onyx T68 (defective!)
|
Thanks.
|
07-21-2014, 02:07 AM | #6 |
Wizard
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
Just open the file with the text editor and have a look.
It contains metadata for the book - title, author, series, description, ... in case the main database gets corrupted, or in case you want to copy part of your library to another computer manually. Calibre can import this metadata when adding a book to the library. I think it is an excellent example of how well thought out and designed the Calibre is. |
07-21-2014, 02:15 AM | #7 |
Banned
Posts: 397
Karma: 85500
Join Date: Feb 2011
Location: Sydney
Device: Sony PRS350, Onyx M92, Onyx T68 (defective!)
|
so metadata for epub is like CSS for HTML?
|
07-21-2014, 02:20 AM | #8 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
No. It is more like the contents of
<head></head> |
07-21-2014, 02:37 AM | #9 |
Wizard
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
As the poster above me answered.
BUT! epub file itself contains metadata, including author name, title, series, description. You might have disagreed with the metadata included in the book and corrected the metadata in your Calibre database. Calibre doesn't update the epub file when you change the metadata (like renaming S. King" to "Stephen King" or changing title from "Stand, The" to "The Stand"). It would eat up too many resources, especially for large changes (such as bulk change from "surname, name" to "name surname" naming convention). Calibre only updates the metadata included in the epub when you export the book (save to directory) or upload it to your device. So the *.opf contains the backup of the current metadata info in your library. You are not supposed to access the contents of your Library folder [directly using file managers and suchlike] anyway ;-). The best way to work with the library is to use only Calibre interface to access the books and consider the directory structure and contents as a "black box" the way you would treat an Oracle Database file with all your data. When you need to copy some books out of your Calibre library, use "Save to disk" function. It has lots of nice "side effects" - you can configure just about anything. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
metadata.opf question | robin58 | Calibre | 20 | 02-16-2014 04:50 PM |
[Old Thread] metadata.opf ? | cybmole | Calibre | 12 | 02-01-2012 02:00 AM |
OPF metadata for dc:author | miwie | Recipes | 3 | 11-24-2010 02:06 AM |
What is metadata.opf | jla888 | Calibre | 5 | 10-14-2010 05:46 PM |
Mobigen opf metadata | tibiafry | Kindle Formats | 2 | 04-15-2009 04:07 AM |