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 01-16-2022, 02:44 PM   #1
d3m0sth3n3s
Junior Member
d3m0sth3n3s began at the beginning.
 
d3m0sth3n3s's Avatar
 
Posts: 6
Karma: 10
Join Date: Jun 2012
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Read contributors metadata from ePub file contents

I have defined a couple of custom columns in my library (#translators and #illustrators) to store information about this kind of contributors.

How can I get calibre to parse this information when adding new books to my library? (If it can be done later, it's fine with me too.)

Specifically, I have ePub ebooks with the following metadata entries in their content.opf file:
Code:
<dc:contributor opf:file-as="Villarino, M. I." opf:role="trl">M. I. Villarino</dc:contributor>
Code:
<dc:contributor opf:file-as="Pickard, Charles" opf:role="ill">Charles Pickard</dc:contributor>
The former is translators info and the latter corresponds to illustrators info. Therefore, the information I want is there, in my ebook files. I just don’t know how to get it automatically into calibre.
d3m0sth3n3s is offline   Reply With Quote
Old 01-16-2022, 04:57 PM   #2
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 410
Karma: 145324
Join Date: Dec 2017
Device: Kobo
Holy, I join you, it could be interesting.
First, there is no similar feature in Calibre, but maybe a plugin exists... but I never heard about it.
There is a good chance that you need to create this plugin
(Oh no please, tell me that someone has already done something like that, I already see the new project coming that will kill my nights)

Last edited by un_pogaz; 01-16-2022 at 05:00 PM.
un_pogaz is offline   Reply With Quote
Old 01-16-2022, 10:15 PM   #3
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: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is no facility in calibre for mapping epub metadata fields to custom columns. You would basically need to modify the epub metadata reader and writer plugins to map custom column names to epub metadata.
kovidgoyal is offline   Reply With Quote
Old 01-17-2022, 03:49 AM   #4
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 410
Karma: 145324
Join Date: Dec 2017
Device: Kobo
*contritted laugh*
Yes, precisely, I'm not that naive. Thank you for confirming that I will have to dive deep into the code to find, deconstruct and rebuild the author section of the "reader and writer metadata". That promises a lot of fun.
At least the good news is that everything is a created, so there is little chance that I will reinvent a wheel that already exist.

And that's just the first step. Fortunately there are other plugins to guide me through the rest (link colunml to metadata value), but it's not going to be easy though, Yeah.

I'm walking towards a precipice sincerely happy and with a smile on my face... whoever you are, never learn to code: this is the beginning of the terrible sado-masochistic relationship.

Last edited by DiapDealer; 01-17-2022 at 02:45 PM. Reason: edited to remove profanity
un_pogaz is offline   Reply With Quote
Old 01-17-2022, 05:06 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I simply add these folk to the Authors field with their (not Author) role in paren

Joe Smith (Ilus)&Sally Wright (ed)&Joel Ngu (trans)

Kiss, no extra fields (columns) needed.
FWIW Author_sort ignores the part in paren
theducks is offline   Reply With Quote
Old 01-17-2022, 12:13 PM   #6
d3m0sth3n3s
Junior Member
d3m0sth3n3s began at the beginning.
 
d3m0sth3n3s's Avatar
 
Posts: 6
Karma: 10
Join Date: Jun 2012
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Thank you everyone for your responses.

For now, it’s out of my reach to modify a calibre plugin, but some day I will try to learn how to do it. If un_pogaz wants to take that path first, I won’t complain.

Quote:
Originally Posted by kovidgoyal View Post
There is no facility in calibre for mapping epub metadata fields to custom columns.
Quote:
Originally Posted by theducks View Post
I simply add these folk to the Authors field with their (not Author) role in paren
Joe Smith (Ilus)&Sally Wright (ed)&Joel Ngu (trans)
And what about theducks approach? Could it be possible to map these metadata entries to the built-in Authors field the way he does it when adding books to a library? This way, it would be just a matter of performing a Search & Replace operation in bulk metadata edition later on to get this information copied into custom columns.

Aren’t these dc:contributor standard metadata entries? I remember having seen them also in PDF documents in the past.
d3m0sth3n3s is offline   Reply With Quote
Old 01-17-2022, 02:47 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Moderator Notice
At least one post has been modified to remove profanity. Everyone is reminded to review the guidelines concerning posting, and what is appropriate here at MobileRead.
DiapDealer is offline   Reply With Quote
Reply

Tags
epub, metadata, parsing


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to read extra metadata from ePub? erketre Calibre 1 08-03-2019 10:45 PM
Calibre can't read metadata from epub matonkiki Library Management 2 12-18-2015 07:44 AM
Read metadata from file contents Lorkoff Library Management 1 03-03-2015 11:19 AM
Most efficient way to process file contents of exploded ePub Agama Development 4 09-23-2012 07:49 AM
Read metadata from file contents AND filename, or at least compare the two. iridius Calibre 2 04-08-2011 04:00 AM


All times are GMT -4. The time now is 07:28 AM.


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