Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-15-2020, 06:06 AM   #1
PenguinCEO
Member Retired
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
故事主要描述當伐木

故事主要描述當伐木

Last edited by PenguinCEO; 04-17-2020 at 02:53 PM.
PenguinCEO is offline   Reply With Quote
Old 03-15-2020, 06:20 AM   #2
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: 20,770
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Uncheck Preferences->Save to Disk->Update metadata in saved copies

The Modify ePub plugin can remove non-Dublin Core metadata from the library copy ==>> Index of plugins

BR
BetterRed is offline   Reply With Quote
Advert
Old 03-15-2020, 06:39 AM   #3
PenguinCEO
Member Retired
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
故事主要描述當伐木

Last edited by PenguinCEO; 04-17-2020 at 02:54 PM.
PenguinCEO is offline   Reply With Quote
Old 03-15-2020, 07:13 AM   #4
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: 20,770
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Here's how to request an Enhancement (New Feature) ==>> Bugs

Or, write your own plugin, perhaps by hacking Modfy ePub.

Or edit the saved epub. Sigil's metadata edit tool is simple to use, especially to delete metadata elements.

Or, there's Ben Chens Metadata Edit Tool, there's a thread for it somewhere on MR.

BR
BetterRed is offline   Reply With Quote
Old 03-15-2020, 07:31 AM   #5
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: 20,770
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I saved this book from my Test Library, with Save to Disk setting as previously suggested

Click image for larger version

Name:	Annotation 2020-03-15 222107.jpg
Views:	97
Size:	209.3 KB
ID:	177726

It's attached, but here's a preview of the embedded metadata

Click image for larger version

Name:	Annotation 2020-03-15 222709.jpg
Views:	94
Size:	59.5 KB
ID:	177727

BR
Attached Files
File Type: epub DOCX Demo.Kovid Goyal_.epub (61.4 KB, 105 views)
BetterRed is offline   Reply With Quote
Advert
Old 03-15-2020, 07:46 AM   #6
PenguinCEO
Member Retired
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
故事主要描述當伐木

Last edited by PenguinCEO; 04-17-2020 at 02:54 PM.
PenguinCEO is offline   Reply With Quote
Old 03-15-2020, 07:59 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,145
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont see the point. Why would you want custom columns not present in your ebook but non-custom columns present? Either you sanitize the metadata in your book for sale fully or not. Why would removing some arbitrary fraction of the metadata matter?
kovidgoyal is offline   Reply With Quote
Old 03-15-2020, 08:21 AM   #8
PenguinCEO
Member Retired
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
故事主要描述當伐木

Last edited by PenguinCEO; 04-30-2020 at 03:10 PM.
PenguinCEO is offline   Reply With Quote
Old 03-15-2020, 08:36 AM   #9
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: 20,770
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
So, uncheck Save to disk->Update metadata in saved copies option - you only need do this once.

Then, 'clean' the library ePub with Modify ePub by checking the Remove non dc: metadata elements

Now do a save.

If you want to do it in a single click, hack the Modify plugin to do the save after stripping the non-dc metadata - or write an OS level automation script.

FYI: In IDPF speak a 'non-dc (Dublin Core) element' is a 'custom column' in calibre speak.

Last edited by BetterRed; 03-15-2020 at 08:51 AM.
BetterRed is offline   Reply With Quote
Old 03-15-2020, 08:49 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,145
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No such thing. For instance, tags and series and ratings are non-custom metadata, doesn't mean they are always suitable for publication.
kovidgoyal is offline   Reply With Quote
Old 03-15-2020, 09:01 AM   #11
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: 20,770
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
No such thing. For instance, tags and series and ratings are non-custom metadata, doesn't mean they are always suitable for publication.
FWIW If I didn't want one or more of those, I would strip the elements I didn't want from the saved EPUB via the Sigil metadata edit tool - select an item, press Ctrl+Del, repeat, repeat, exit metadata edit tool, save, exit Sigil.

BR
BetterRed is offline   Reply With Quote
Old 03-15-2020, 09:07 AM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,145
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I can certainly see a usecase for a metadata sanitizer tool that strips out metadata except for a configurable set of fields. But given that this is so easy to do manually, and not something that needs to be done in bulk, I am not particularly motivated to implement it.
kovidgoyal is offline   Reply With Quote
Old 03-15-2020, 09:31 AM   #13
PenguinCEO
Member Retired
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
故事主要描述當伐木

Last edited by PenguinCEO; 04-30-2020 at 03:10 PM.
PenguinCEO is offline   Reply With Quote
Old 03-15-2020, 09:43 AM   #14
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: 20,770
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
I can certainly see a usecase for a metadata sanitizer tool that strips out metadata except for a configurable set of fields. But given that this is so easy to do manually, and not something that needs to be done in bulk, I am not particularly motivated to implement it.
Don't do it on my behalf

I do a couple of other tidy ups while I'm in Sigil - renaming the body files, epubcheck, moving the jacket page to the back… and deleting any metadata elements I don't want.

BR
BetterRed is offline   Reply With Quote
Old 03-15-2020, 10:11 AM   #15
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: 20,770
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by PenguinCEO View Post
Everything is easy:
  • Save to disk
  • rename the epub file to ".zip"
  • open the zip file
  • look inside the zip file for the file "content.opf"
  • open "content.opf" in a text editor
  • delete from "content.opf" all lines containing the string "calibre: user_metadata:" (maybe with a regex)
  • take a look to see if there is anything else to take away
  • save the opf file
  • close the .zip file
  • rename the zip file to .epub

Simple but cumbersome and exposed to errors. A program like calibre should serve precisely to avoid and automate these procedures

Obviously your opinion on this topic is conclusive, but I would like to know the opinion on this enhancement of someone who works in a publishing house.
Why do you have library management metadata in the EPUB, it didn't get there unless you put it there wittingly - perhaps with the Polish Tool, or you didn't prevent the editor putting it there. But the tool to remove it is the Modify ePub plugin - I have used it to remove non Dublin Core metadata elements on hundreds of thousands of ePubs.

Why are you so fixated on doing it within calibre, or by unpacking ePub and using a primitive editor and then repacking the ePub. Use the Sigil metadata edit tool, you can see it in the second screen shot in post #5. Select an element, press Ctrl+Del or click the Remove button, Save the ePub

If you want opinion on this issue from people who make ebooks for a living the best place to ask at MR is in the ePub or Workshop forum. Refer them to this thread.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre "save to disk", "last_modified" field format bodiccea Calibre 20 09-01-2018 04:09 AM
"Add a book" template like "Save to disk"? vr8ce Library Management 10 06-09-2017 08:16 AM
Functions of the "save to disk" feature? varaonaid Calibre 8 04-10-2016 05:58 PM
Request: separate "Preferred output format" from "Save to Disk" format Katsunami Calibre 2 08-24-2014 11:23 AM
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" therealjoeblow Calibre 15 07-25-2011 03:14 PM


All times are GMT -4. The time now is 01:14 PM.


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