View Single Post
Old 04-06-2020, 05:27 AM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,832
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by carmenchu View Post
Comment + suggestion:
1. The .opf file of a book should not/could not be changed: it contains the data to restore the calibre database in case of accident (or so I understand)
2. How those data are copied to an .epub by convert/polish->update metada is another question.
There, I would like as well to delete the user information, AFTER having employed some of my <meta name="calibre:user_metadata:#customized"... . For instance:
<meta name="calibre:user_metadata:#ordate"...content... &quot;__value__&quot;: &quot{date}&quot; -> <dc:date opf:event="creation">{date}</dc:date>
I suspect this would require a plug-in, but I don't know where to begin--a template to get started?
1. no, you can do what you like to the content.opf file in the book within the bounds of the ePub specs; the calibre library manager won't know or care. It is the metadata.opf files in the book folders that are used to restore the database (if/when it gets broken - which has never happened to me in about 9 years).

2. The .opf files in the book are built from the content of the database, as are the metadata.opf files. But, don't equate the .opf file in the book and the metadata.opf file in the book folders. Whilst they have similarities they serve different purposes. And what's in the book will not reflect what's in the database if you don't Polish, Modify or Convert (ePub to ePub), but the metadata.opf file in the book folder will** always reflect what's in the database.

**if you do a bulk edit to many books, the updating of the metadata.opf files in the book folders happens in a low priority background task that may take a while to catch up.

BR
BetterRed is offline   Reply With Quote