![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
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> |
![]() |
![]() |
![]() |
#2 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 436
Karma: 145424
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,973
Karma: 27109050
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.
|
![]() |
![]() |
![]() |
#4 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 436
Karma: 145424
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 |
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,763
Karma: 59473090
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 |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
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:
Quote:
Aren’t these dc:contributor standard metadata entries? I remember having seen them also in PDF documents in the past. |
||
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,268
Karma: 203719142
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. |
![]() |
![]() |
![]() |
Tags |
epub, metadata, parsing |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |