|
|
#1 |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Kobo
|
Standard ebooks translator field in calibre
Hi guys,
Can someone please guide me on how to display the standard ebooks metadata on calibre, especially the translator names. I have set up a custom column (translators) and also tried the extended metadata plugin, but I'm unable to see them. |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,254
Karma: 61360164
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Did you set that column to be shown? Preferences: add your own columns: <tick the boxes for those you want to see>
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Kobo
|
|
|
|
|
|
|
#4 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,012
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Moderator Notice Moved to it's own thread - the thread where you posted is a weed bed, where things are apt to get lost or become entangled. Baseline calibre will not populate custom columns when books are added, nor will a metadata source plugin, has to be done with a user interface plugin. BR |
|
|
|
|
|
#5 |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Kobo
|
Hi, thanks for the tip.
So I asked chatgpt to write one for me and it wrote this script: from calibre.customize import MetadataReaderPlugin from lxml import etree import re class TranslatorsPlugin(MetadataReaderPlugin): name = 'Translators Metadata Plugin' description = 'Extracts translator names from OPF and stores them in #translators' supported_platforms = ['windows', 'osx', 'linux'] author = 'ChatGPT' version = (1, 2, 0) file_types = {'opf'} def read_metadata(self, stream, metadata): tree = etree.parse(stream) translators = [] # Match all meta tags refining any #translator reference (#translator, #translator-1, etc.) for meta in tree.xpath('//meta[@property="se:name.person.full-name" and starts-with(@refines, "#translator")]'): if meta.text: translators.append(meta.text.strip()) # Fallback to generic <meta name="translator"> for meta in tree.xpath('//meta[@name="translator"]'): if meta.get('content'): translators.append(meta.get('content').strip()) # Fallback to <dc:contributor opf:role="trl"> for node in tree.xpath('//dc:contributor[@opf:role="trl"]', namespaces={'dc': 'http://purl.org/dc/elements/1.1/', 'opf': 'http://www.idpf.org/2007/opf'}): if node.text: translators.append(node.text.strip()) if translators: metadata.set('#translators', ', '.join(sorted(set(translators)))) return metadata In the opf file, the translators are like this: <dc:contributor id="translator">Gilbert Murray</dc:contributor> <meta property="file-as" refines="#translator">Murray, Gilbert</meta> <meta property="se:name.person.full-name" refines="#translator">George Gilbert Aimé Murray</meta> <meta property="se:url.encyclopedia.wikipedia" refines="#translator">https://en.wikipedia.org/wiki/Gilbert_Murray</meta> <meta property="se:url.authority.nacoaf" refines="#translator">http://id.loc.gov/authorities/names/n79043229</meta> <meta property="role" refines="#translator" scheme="marc:relators">ann</meta> <meta property="role" refines="#translator" scheme="marc:relators">trl</meta> <meta property="role" refines="#translator" scheme="marc:relators">wpr</meta> But it's still not working. Can you point me in the right direction? |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,746
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Do you realize how bad the code is that StandardEBooks use is? I would stay away from them. Use the library here at MR.
|
|
|
|
|
|
#7 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,693
Karma: 79983758
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
Seeing all that the majority of people CARE about is reading the WORDS in a book, how they are coded to present that is totally irrelevant. |
|
|
|
|
|
|
#8 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,746
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#9 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,254
Karma: 61360164
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Peters argument still holds.
If it WORKS, most don't care if it is ugly or inefficient code. For what I read, I do not need: EPUB3 HiRes covers A High retail price (fiction bits weigh the same as non-fiction bits) Shipping cost should have reduced the production cost while the authors and editor still got paid well. $10 for what was a $5 paperback that had to be shipped and shelved at my local store. |
|
|
|
|
|
#10 |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Kobo
|
For those who face the same problem, the author of extended metadata plugin has released a fix here:
https://www.mobileread.com/forums/sh...61#post4543561 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Translator in Calibre became Author in Kobo | w00dent0p | Library Management | 34 | 01-05-2024 07:33 AM |
| Adding "translator" field | loviedovie | Calibre | 19 | 12-07-2022 07:23 PM |
| Translator & Book Lover - Noob to Ebooks | VeganGamer | Introduce Yourself | 1 | 10-11-2022 06:32 AM |
| Standard eBooks: Classic eBooks Remasters | Tomifonication | Deals and Resources (No Self-Promotion or Affiliate Links) | 21 | 04-28-2019 11:58 PM |
| Calibre won't Launch and I need a translator. | SamanthaMG | Calibre | 0 | 01-03-2011 10:29 AM |