Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 11-06-2011, 03:43 PM   #16
SoulStyle
Enthusiast
SoulStyle began at the beginning.
 
Posts: 26
Karma: 22
Join Date: May 2011
Device: Kindle 3
After using "Update metadata" susequent checks for non dc:metadata and a removal with "Modify ePub" produces here:
Code:
Modify ePubs
Logfile for book ID 1810 (Wie Gewinne Ich Das Herz Eines Mannes?)
1810
  Modifying:  c:\users\monk\appdata\local\temp\calibre_0.8.24_tmp_yujz8v\afi01x_modify_epub\1810.epub
	Looking for non dc: elements in manifest
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
ePub updated in 0.36 seconds
The corresponding content.opf contains following metadata:
Code:
<?xml version="1.0"  encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId" version="2.0">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
    <dc:creator opf:role="aut" opf:file-as="Sander, Christian">Christian Sander</dc:creator>
<dc:identifier id="BookId" opf:scheme="UUID">urn:uuid:0c3b2201-a5ae-4d07-be7f-84a3451f0ed9</dc:identifier>
    <dc:title>Wie Gewinne Ich Das Herz Eines Mannes?</dc:title>
    <dc:publisher>Blue Point Trading</dc:publisher>
<dc:identifier opf:scheme="ISBN">9783037990001</dc:identifier>
<dc:date>2011-10-05T22:00:00+00:00</dc:date>
<meta name="calibre:title_sort" content="Wie Gewinne Ich Das Herz Eines Mannes?"/>
<meta name="calibre:rating" content="8"/>
<meta name="calibre:user_categories" content="{}"/>
<meta name="calibre:author_link_map" content="{&quot;Christian Sander&quot;: &quot;&quot;}"/>
<dc:language>de</dc:language>
</metadata>
Sidenote: This is a book I converted from pdf to epub using Sigil 0.4.2

I can provide a sample when needed. Just PM me.

Kind regards
SoulStyle is offline   Reply With Quote
Old 11-06-2011, 11:12 PM   #17
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by SoulStyle View Post
It seems that the "Update metadata (including covers)" somehow adds the "{http://www.idpf.org/2007/opf}meta" tag, which then is identified by Quality Check.
I was a little slow, you are obviously correct.

After running Modify ePub to remove non dc: metadata from manifest I get a nice clean dc: metadata only section in my book.

Spoiler:
Code:
<metadata xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">     <dc:creator opf:file-as="Aames, Avery" opf:role="aut">Avery Aames</dc:creator>
     <dc:publisher>Berkley</dc:publisher>
     <dc:description>&lt;div&gt;&lt;h3&gt;Product Description&lt;/h3&gt;&lt;p&gt;Welcome to the grand opening of Fromagerie Bessette. Or as it's more commonly known by the residents of small-town Providence, Ohio-the Cheese Shop. Proprietor Charlotte Bessette has prepared a delightful sampling of bold Cabot Clothbound Cheddar, delicious tortes of Stilton and Mascarpone, and a taste of Sauvignon Blanc-but someone else has decided to make a little crime of passion the &lt;em&gt;piece de resistance&lt;/em&gt;. Right outside the shop Charlotte finds a body, the victim stabbed to death with one of her prized olive-wood handled knives. &lt;/p&gt; &lt;/div&gt;</dc:description>
     <dc:date>2010-07-06T04:00:00+00:00</dc:date>
     <dc:contributor opf:role="bkp">calibre (0.8.22) [http://calibre-ebook.com]</dc:contributor>
     <dc:title>The Long Quiche Goodbye</dc:title>
     <dc:identifier opf:scheme="ISBN">9781101188644</dc:identifier>
     <dc:identifier opf:scheme="GOODREADS">10191400</dc:identifier>
     <dc:identifier id="uuid_id" opf:scheme="uuid">51555a53-228c-46dc-93d5-1397333abd9c</dc:identifier>
     <dc:subject>Mystery</dc:subject>
     <dc:subject>Cozy Mystery</dc:subject>
     <dc:language>en</dc:language>
     <meta name="cover" content="cover" />
     <meta content="0.4.2" name="Sigil version" />
   </metadata>

After running Modify ePub to update metadata (including cover) I get a metadata section that includes the dc: metadata and the following non dc: metadata: title sort, Series, series index, rating, user_categories, calibre:author_link_map and all of the junk that comprises all of my custom columns metadata. All of which is non dc metadata. The only thing I did not expect was user_categories, calibre:author_link_map and all of the junk that comprised my custom columns.

Spoiler:
Code:
<metadata xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">     <dc:creator opf:file-as="Aames, Avery" opf:role="aut">Avery Aames</dc:creator>
     <dc:publisher>Berkley</dc:publisher>
     <dc:description>&lt;div&gt;&lt;h3&gt;Product Description&lt;/h3&gt;&lt;p&gt;Welcome to the grand opening of Fromagerie Bessette. Or as it's more commonly known by the residents of small-town Providence, Ohio-the Cheese Shop. Proprietor Charlotte Bessette has prepared a delightful sampling of bold Cabot Clothbound Cheddar, delicious tortes of Stilton and Mascarpone, and a taste of Sauvignon Blanc-but someone else has decided to make a little crime of passion the &lt;em&gt;piece de resistance&lt;/em&gt;. Right outside the shop Charlotte finds a body, the victim stabbed to death with one of her prized olive-wood handled knives. &lt;/p&gt; &lt;/div&gt;</dc:description>
     <dc:date>2010-07-06T04:00:00+00:00</dc:date>
     <dc:contributor opf:role="bkp">calibre (0.8.22) [http://calibre-ebook.com]</dc:contributor>
     <dc:title>The Long Quiche Goodbye</dc:title>
     <dc:identifier opf:scheme="ISBN">9781101188644</dc:identifier>
     <dc:identifier opf:scheme="GOODREADS">10191400</dc:identifier>
     <dc:identifier id="uuid_id" opf:scheme="uuid">51555a53-228c-46dc-93d5-1397333abd9c</dc:identifier>
     <meta content="Long Quiche Goodbye, The" name="calibre:title_sort" />
     <meta content="Cheese Shop Mystery" name="calibre:series" />
     <meta content="1.0" name="calibre:series_index" />
     <meta content="8" name="calibre:rating" />
     <dc:subject>Mystery</dc:subject>
     <dc:subject>Cozy Mystery</dc:subject>
     <meta content="{}" name="calibre:user_categories" />
     <meta content="{&quot;Avery Aames&quot;: &quot;&quot;}" name="calibre:author_link_map" />
     <dc:language>en</dc:language>
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 8, &quot;rec_index&quot;: 29, &quot;search_terms&quot;: [&quot;#plainlangrating&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;plainlangrating&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;Passable&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_8&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{rating:switch(10,Best,8,Good,6,OK,4,Passable,2,Terrible,0,Unrated,Unrated)}&quot;, &quot;make_category&quot;: false, &quot;use_decorations&quot;: 0, &quot;composite_sort&quot;: &quot;text&quot;}, &quot;name&quot;: &quot;Text Rating&quot;}" name="calibre:user_metadata:#plainlangrating" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 4, &quot;rec_index&quot;: 26, &quot;search_terms&quot;: [&quot;#initials&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;initials&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;CSM&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_4&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{#stripped_series:re(([^\\s])[^\\s]+(\\s|$),\\1)}&quot;}, &quot;name&quot;: &quot;Initials&quot;}" name="calibre:user_metadata:#initials" />
     <meta content="{&quot;is_category&quot;: true, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 2, &quot;rec_index&quot;: 23, &quot;search_terms&quot;: [&quot;#masterseries&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;masterseries&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;series&quot;, &quot;#value#&quot;: null, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_2&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {}, &quot;name&quot;: &quot;Universe&quot;}" name="calibre:user_metadata:#masterseries" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 9, &quot;rec_index&quot;: 30, &quot;search_terms&quot;: [&quot;#last_modified&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;last_modified&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;23 Oct 11&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_9&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{last_modified:'format_date($, \&quot;dd MMM yy\&quot;)'}&quot;, &quot;make_category&quot;: false, &quot;composite_sort&quot;: &quot;date&quot;, &quot;use_decorations&quot;: 0}, &quot;name&quot;: &quot;Modified Date&quot;}" name="calibre:user_metadata:#last_modified" />
     <meta content="{&quot;is_category&quot;: true, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 1, &quot;rec_index&quot;: 22, &quot;search_terms&quot;: [&quot;#working&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;working&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;text&quot;, &quot;#value#&quot;: &quot;book jacket&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_1&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {}, &quot;name&quot;: &quot;Working&quot;}" name="calibre:user_metadata:#working" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 10, &quot;rec_index&quot;: 31, &quot;search_terms&quot;: [&quot;#read&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;read&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;bool&quot;, &quot;#value#&quot;: true, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_10&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {}, &quot;name&quot;: &quot;Books Read&quot;}" name="calibre:user_metadata:#read" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 3, &quot;rec_index&quot;: 25, &quot;search_terms&quot;: [&quot;#shortened&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;shortened&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;Chee-tery&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_3&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{#stripped_series:shorten(4,-,4)}&quot;}, &quot;name&quot;: &quot;Shortened&quot;}" name="calibre:user_metadata:#shortened" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 6, &quot;rec_index&quot;: 28, &quot;search_terms&quot;: [&quot;#coll505sort&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;coll505sort&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;Aames, Avery - Cheese Shop Mystery 01 - The Long Quiche Goodbye&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_6&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{author_sort:titlecase()} - {series}{series_index:0&gt;2s| | - }{title}&quot;}, &quot;name&quot;: &quot;Collection&quot;}" name="calibre:user_metadata:#coll505sort" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 5, &quot;rec_index&quot;: 27, &quot;search_terms&quot;: [&quot;#stripped_series&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;stripped_series&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;Cheese Shop Mystery&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_5&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{series:re(^(A|The|An)\\s+,)||}&quot;}, &quot;name&quot;: &quot;Stripped&quot;}" name="calibre:user_metadata:#stripped_series" />
   </metadata>

If I do an ePub to ePub conversion along with the dc: metadta calibre adds some non dc: metadata: title sort, series, series index, rating, calibre:timestamp and cover, but not all of the custom column junk. The result after a conversion is what I expected this plugin to insert as metadata.

Spoiler:
Code:
  <metadata xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <dc:publisher>Berkley</dc:publisher>
    <meta content="1" name="calibre:series_index" />
    <meta content="Long Quiche Goodbye, The" name="calibre:title_sort" />
    <meta content="8.00" name="calibre:rating" />
    <dc:description>&lt;div&gt;&lt;h3&gt;Product Description&lt;/h3&gt;&lt;p&gt;Welcome to the grand opening of Fromagerie Bessette. Or as it's more commonly known by the residents of small-town Providence, Ohio-the Cheese Shop. Proprietor Charlotte Bessette has prepared a delightful sampling of bold Cabot Clothbound Cheddar, delicious tortes of Stilton and Mascarpone, and a taste of Sauvignon Blanc-but someone else has decided to make a little crime of passion the &lt;em&gt;piece de resistance&lt;/em&gt;. Right outside the shop Charlotte finds a body, the victim stabbed to death with one of her prized olive-wood handled knives. &lt;/p&gt; &lt;/div&gt;</dc:description>
    <dc:language>en</dc:language>
    <dc:creator opf:file-as="Aames, Avery" opf:role="aut">Avery Aames</dc:creator>
    <meta content="2011-02-16T05:05:03+00:00" name="calibre:timestamp" />
    <dc:title>The Long Quiche Goodbye</dc:title>
    <meta content="cover" name="cover" />
    <dc:date>2010-07-06T04:00:00+00:00</dc:date>
    <meta content="Cheese Shop Mystery" name="calibre:series" />
    <dc:contributor opf:role="bkp">calibre (0.8.25) [http://calibre-ebook.com]</dc:contributor>
    <dc:identifier opf:scheme="ISBN">9781101188644</dc:identifier>
    <dc:identifier opf:scheme="GOODREADS">10191400</dc:identifier>
    <dc:identifier id="uuid_id" opf:scheme="uuid">51555a53-228c-46dc-93d5-1397333abd9c</dc:identifier>
    <dc:subject>Mystery</dc:subject>
    <dc:subject>Cozy Mystery</dc:subject>
  </metadata>

I'm not saying this is wrong, but currently if you want only updated non dc: metadata you have to use two steps.

1. Run Modify ePub to Update metadata (including cover)
2. Run Modify ePub to Remove no dc: metadata from manifest.

Maybe Kiwidude could somehow prioritize the two and ensure if run together that the final result is updated dc: metadata only or add a option to update dc: metadata only.

Edit: Personally I would just like the Update metadata (including cover) option to limit itself to the metadata calibre would insert during a conversion.

Update: When calibre Saves a book to disk it inserts in the ePub all of the same metadata (including the extra custom column junk not included when a book gets converted) that this plugin inserts into book as metadata. Which means, obviously this plugin is using the same code as calibre's Save to disk Feature.

Update 2: When calibre Sends a book to the device it also includes all of the same metadata (including the extra custom column junk not included when a book gets converted) that this plugin inserts into book as metadata. It seems odd to send all of the custom column junk to the device as metadata, but at least now I know how it is currently working and none of it has ever hindered my reading experience in the slightest.

Update 3: Thinking it over the custom column stuff may need to be included for the metadata plugboards. For those folks that just want dc: metadata follow the two steps outlined above and ignore my updates.

Good luck.

Last edited by DoctorOhh; 11-07-2011 at 01:36 AM. Reason: sp
DoctorOhh is offline   Reply With Quote
Advert
Old 11-07-2011, 01:32 AM   #18
SoulStyle
Enthusiast
SoulStyle began at the beginning.
 
Posts: 26
Karma: 22
Join Date: May 2011
Device: Kindle 3
I fully agree with you dwanthny. This metadata things has also not hindered my reading experience in the slightest.
I just mentioned it here because it creates sort of an inconsistency between the two functions in Modify ePub that might confuse the users as mentioned by Magnus in post #7.
Maybe the Remove function could be changed to remove "unknown" metadata, i.e. metadata that is not dc conforming and not created by calibre.

Kind regards
SoulStyle is offline   Reply With Quote
Old 11-07-2011, 07:02 PM   #19
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
There seems to be some confusion from the original poster and some of the subsequent replies about his non dc: metadata issue, so here is the "skinny" from me.

As Dwanthy found, the "Update metadata" option does *exactly* the same as a "Save to disk" does. Which means calibre will insert both dc:xxx elements, but also its own <meta> elements. The latter <meta> elements (along with those created by other ePub editing applications like Sigil) are what are not part of the official ePub specification and hence are not in the dc: namespace.

Do these cause a problem for people? For 99.99% of calibre users, the answer is "not in the slightest". The *only* use case I am aware of that a number of people have asked for is where you are self publishing your own book for uploading via websites. Some of these sites that have rules in place that reject ePubs that have elements in this part of the manifest that are non-compliant with the ePub specification. It's arguably a poor reason to reject ePubs, but nonetheless sometimes there are battles you cannot win.

So using this option in Modify ePub/Quality Check allows that small minority of calibre users to detect and fix such issues prior to publication. For any other user of calibre, you should just ignore the option, it will achieve very little for you.

If you try to tick *both* removing non DC: metadata *and* updating metadata, then you are in some ways shooting yourself in the foot. As I explained above, calibre is one of the "culprits" responsible for inserting non dc elements.

As to why I do not run them in the other order, that is intentional. One of the reasons for using update metadata is to allow people to get their book in the same state as if they did a "Save to disk" without exporting and reimporting it. The only way I can guarantee that this is the case (and that all elements calibre generates for updating metadata are present) is to do this action after any other selection in the Modify ePub dialog. Were I to flip them the other way around, you would be missing for instance the calibre timestamp. Which breaks the "integrity" of "Update metadata". The alternative way around it means it breaks the integrity of "remove all non dc:". Either way something "breaks". As I saw the remove non dc: thing as something few users would bother using, I chose the way I did. If the genuine users of that functionality want it the other way around, then I can look at changing it.

One thing this discussion has highlighted is that the logging could offer a better visual indication as to what it is removing - I will sort that out for the next release.

So - if your intention is to remove all non dc: metadata elements, then don't tick "Update metadata" at the same time - do it in two passes. If you want to remove non dc: elements (such as from other editing applications) except for the calibre generated ones, then you can tick both at the same time.

Last edited by kiwidude; 11-07-2011 at 07:08 PM.
kiwidude is offline   Reply With Quote
Old 11-09-2011, 04:38 PM   #20
CuttingEdge
Member
CuttingEdge doesn't litterCuttingEdge doesn't litterCuttingEdge doesn't litter
 
Posts: 13
Karma: 222
Join Date: Apr 2011
Device: Sony PRS950
Angry Plug-in not working for me

Plug-in isn't working for me. What am I doing wrong?


Modify ePubs
Failed to initialize plugin: u'C:\\Users\\Lam\\AppData\\Roaming\\calibre\\plugi ns\\Goodreads Covers.zip'
Logfile for book ID 2559 (Insomnia)
2559
Failed to initialize plugin: u'C:\\Users\\Lam\\AppData\\Roaming\\calibre\\plugi ns\\Goodreads Covers.zip'
Modifying: c:\users\lam\appdata\local\temp\calibre_0.8.25_tmp _m2mf2k\zcuhif_modify_epub\2559.epub
Updating metadata and cover
ePub updated in 0.54 seconds
CuttingEdge is offline   Reply With Quote
Advert
Old 11-09-2011, 05:21 PM   #21
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
It looks like the Modify ePub plugin is working just fine.

The problem you are seeing in that output is that you have an old and incompatible plugin called "Goodreads Covers" installed (the predecessor to the "Goodreads" plugin which was a consolidation of two Goodreads metadata plugins that occurred when calibre 0.8 was released).

You need to get rid of that old plugin. Run this from a command line prompt:
Code:
calibre-customize -r "Goodreads Covers"
kiwidude is offline   Reply With Quote
Old 11-09-2011, 05:30 PM   #22
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by kiwidude View Post
You need to get rid of that old plugin. Run this from a command line prompt:
Or exit calibre, go to the plugins directory and delete the Goodreads Covers.zip file.
DoctorOhh is offline   Reply With Quote
Old 11-09-2011, 08:27 PM   #23
CuttingEdge
Member
CuttingEdge doesn't litterCuttingEdge doesn't litterCuttingEdge doesn't litter
 
Posts: 13
Karma: 222
Join Date: Apr 2011
Device: Sony PRS950
Cover still not updating

I got rid of the old Goodreads plug-in, but Modify ePubs is not changing old cover to new Calibre cover



Modify ePubs
Logfile for book ID 2559 (Insomnia)
2559
Modifying: c:\users\lam\appdata\local\temp\calibre_0.8.25_tmp _doihzx\xlbp9i_modify_epub\2559.epub
Updating metadata and cover
ePub updated in 0.54 seconds
CuttingEdge is offline   Reply With Quote
Old 11-10-2011, 02:02 AM   #24
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by CuttingEdge View Post
I got rid of the old Goodreads plug-in, but Modify ePubs is not changing old cover to new Calibre cover



Modify ePubs
Logfile for book ID 2559 (Insomnia)
2559
Modifying: c:\users\lam\appdata\local\temp\calibre_0.8.25_tmp _doihzx\xlbp9i_modify_epub\2559.epub
Updating metadata and cover
ePub updated in 0.54 seconds
Modify ePub can't modify covers that aren't properly defined (which unfortunately is true of many ePubs). What you need for this case is a cover insertion feature, which is on the to-do list for the plugin but probably won't be implemented in the near future.
ldolse is offline   Reply With Quote
Old 11-10-2011, 03:43 AM   #25
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by CuttingEdge View Post
I got rid of the old Goodreads plug-in, but Modify ePubs is not changing old cover to new Calibre cover
ldolse is correct. I posted about when metadata and covers will be updated here.
DoctorOhh is offline   Reply With Quote
Old 11-10-2011, 04:18 AM   #26
CuttingEdge
Member
CuttingEdge doesn't litterCuttingEdge doesn't litterCuttingEdge doesn't litter
 
Posts: 13
Karma: 222
Join Date: Apr 2011
Device: Sony PRS950
Okay. Thanks for the help and prompt responses. I guess I just have to wait for update
CuttingEdge is offline   Reply With Quote
Old 11-10-2011, 04:42 AM   #27
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by CuttingEdge View Post
Okay. Thanks for the help and prompt responses. I guess I just have to wait for update
While your waiting the alternative is:

Quote:
Originally Posted by dwanthny View Post
Currently if a cover doesn't already exist in the ePub or if the cover is not properly identified the only way to insert the cover is via a ePub - ePub conversion.
Good Luck.
DoctorOhh is offline   Reply With Quote
Old 11-24-2011, 05:40 PM   #28
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.0.1 Released

Changes in this release:
  • When updating metadata, ensure that if calibre has no tags any dc:subject elements are removed
  • Improve the logging output when removing non dc: metadata elements

Thanks to griker and Kovid for the help in the first change above.
kiwidude is offline   Reply With Quote
Old 01-26-2012, 08:23 PM   #29
Matth79
Zealot
Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.Matth79 ought to be getting tired of karma fortunes by now.
 
Posts: 122
Karma: 502620
Join Date: Jan 2012
Device: Kobo Touch
Baffled, downloaded covers, modified, transferred to Kobo Touch which didn't use them.

On using edit metadata, set cover from selected format, the cover image is incomplete, or comes up as invalid.

Also tested using a Calibre generated cover, only a small part of the top is retrieved.
Matth79 is offline   Reply With Quote
Old 01-27-2012, 06:22 AM   #30
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@Matth79 - this plugin will only replace covers where they are identifiable by calibre (in exactly the same way as using Save to Disk does). If the covers are not getting placed into the ePub correctly, then the problem lies in the ePub. Either use Sigil to mark the appropriate file with the cover semantics, or do an epub->epub conversion using calibre.
kiwidude is offline   Reply With Quote
Reply

Tags
modify epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1214 Today 12:05 PM
[GUI Plugin] Manage Series kiwidude Plugins 167 07-28-2024 04:07 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 AM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 06:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 11:39 PM.


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