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 10-15-2025, 02:41 PM   #1
shikamer
Junior Member
shikamer began at the beginning.
 
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.
shikamer is offline   Reply With Quote
Old 10-15-2025, 03:01 PM   #2
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: 31,251
Karma: 61360164
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by shikamer View Post
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.
Did you set that column to be shown? Preferences: add your own columns: <tick the boxes for those you want to see>
theducks is offline   Reply With Quote
Advert
Old 10-15-2025, 03:16 PM   #3
shikamer
Junior Member
shikamer began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Kobo
Quote:
Originally Posted by theducks View Post
Did you set that column to be shown? Preferences: add your own columns: <tick the boxes for those you want to see>
Yes, I can see the translators I have added myself but not the ones in the standard ebooks ones.
shikamer is offline   Reply With Quote
Old 10-15-2025, 06:08 PM   #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: 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
BetterRed is online now   Reply With Quote
Old 10-15-2025, 10:33 PM   #5
shikamer
Junior Member
shikamer began at the beginning.
 
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?
shikamer is offline   Reply With Quote
Advert
Old 10-16-2025, 09:02 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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:
Originally Posted by shikamer View Post
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.
Do you realize how bad the code is that StandardEBooks use is? I would stay away from them. Use the library here at MR.
JSWolf is offline   Reply With Quote
Old 10-16-2025, 02:03 PM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,693
Karma: 79983758
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by JSWolf View Post
Do you realize how bad the code is that StandardEBooks use is? I would stay away from them. Use the library here at MR.
This is the same as arguing that because program XYZ is written poorly (meaning in a manner YOU wouldn't), one shouldn't use it.

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.
PeterT is offline   Reply With Quote
Old 10-16-2025, 02:12 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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:
Originally Posted by PeterT View Post
This is the same as arguing that because program XYZ is written poorly (meaning in a manner YOU wouldn't), one shouldn't use it.

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.
Most of these eBooks do not need a complex layout. They should work with RMSDK on a Kobo. But they don't because the code is that bad. They don't work on some ePub3 compatible programs because they use code that is not really supported.
JSWolf is offline   Reply With Quote
Old 10-16-2025, 02:53 PM   #9
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: 31,251
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.
theducks is offline   Reply With Quote
Old 10-17-2025, 12:49 PM   #10
shikamer
Junior Member
shikamer began at the beginning.
 
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
shikamer is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:36 PM.


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