Mobileread
[GUI Plugin] Modify ePub
#11  kiwidude 11-05-2011, 02:31 PM
Ummm... whats wrong with the add/replace metadata jacket option that is already in there?
Reply 

#12  DoctorOhh 11-05-2011, 04:17 PM
Quote kiwidude
Quote paulfiera
It'd be really great to have the possibility of updating the jacket with all the metadata, including tags.

Sometimes I change the tags and I would like to update the whole epub jacket without doing a conversion.
Ummm... whats wrong with the add/replace metadata jacket option that is already in there?
Nothing, last time I used this feature it worked great.
Reply 

#13  paulfiera 11-06-2011, 07:29 AM
Quote kiwidude
Ummm... whats wrong with the add/replace metadata jacket option that is already in there?
Sorry, Kiwidude. You are absolutely right. It works perfectly. I had somehow overlooked this option.
Reply 

#14  SoulStyle 11-06-2011, 08:47 AM
Quote Magnus
I'm quite naive here... but I noticed that when I run the plugin I get:

Looking for non dc: elements in manifest
Removing child: {http://www.idpf.org/2007/opf}meta


After I've modified the ePub, the result persists when I again run the plugin. Why is that? What have I overlooked?
Happens here too. Seems to be related to the "Update metadata (including covers)" function of the Modify ePub Plug-In.

Steps to reproduce:
  1. Pick a book that surely has no "Non dc: Metadata"
  2. Do an "Update metadata (including covers)" from the Modify ePub Plug-In
  3. Scan again with "Quality Check" --> "Non dc: Metadata"
  4. Result: Book is shown as having non dc: metadata
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.

Hope this helps
Reply 

#15  DoctorOhh 11-06-2011, 09:27 AM
Quote SoulStyle
Steps to reproduce:
  1. Pick a book that surely has no "Non dc: Metadata"
  2. Do an "Update metadata (including covers)" from the Modify ePub Plug-In
  3. Scan again with "Quality Check" --> "Non dc: Metadata"
  4. Result: Book is shown as having non dc: metadata
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.
What is Non dc:metadata?

After I follow your steps on a book the first three lines of the content.opf file are as follows. But I get no error no matter how many times I try the above steps nor does it matter on what books I may try it on. I guess I have no books that meet the criteria needed to reproduce this error.

Code
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id"> <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/"
Reply 

#16  SoulStyle 11-06-2011, 03:43 PM
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
Reply 

#17  DoctorOhh 11-06-2011, 11:12 PM
Quote SoulStyle
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 Warning below






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 Warning below






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 Warning below






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.
Reply 

#18  SoulStyle 11-07-2011, 01:32 AM
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
Reply 

#19  kiwidude 11-07-2011, 07:02 PM
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.
Reply 

#20  CuttingEdge 11-09-2011, 04:38 PM
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
Reply 

 « First  « Prev Next »  Last »  (2/135)
Today's Posts | Search this Thread | Login | Register