View Single Post
Old 08-07-2020, 03:33 PM   #8
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,589
Karma: 14328510
Join Date: Nov 2019
Device: none
I was curious to see what happens when you work this from the bottom up; with an epub you can add a translator to the metadata using Sigil's metadata editor specifying them as another author (dc:creator). The metadata for author has a modifying property named role which I changed from Sigil's default aut to trl. Sigil seems to be unconcerned/unaware of multiple authors and gives them both the same id, cre, which causes validation with EpubCheck to fail:

Click image for larger version

Name:	metadata editor.png
Views:	107
Size:	9.6 KB
ID:	181174

(After I made this screen shot I changed the role value from translator to trl; trl apparently is the standard value.)

Here are the relevant lines from the content.opf:
Code:
  <dc:creator id="cre">Author</dc:creator>
  <dc:creator id="cre">Translator</dc:creator>
  <meta refines="#cre" property="role" scheme="marc:relators">trl</meta>
If you use that epub file as-is with Calibre it shows the author as "Author & Translator", or at least it did the first time I tried it before I thought to run epubcheck on it. Now when I do that (without the epubcheck and duplicate ids) the author shows up as Unknown. It added a new dc:creator to the content.opf with the value of Unknown. I have no idea what I did differently the first time. ... Argh, I don't understand, I did it again and it's showing the author as "Author & Translator".

I noticed that if I close Sigil's metadata editor and open it again it deleted the aut role from Author. Not sure if that's related.

Anyhow, moving along ... If I fix the id and change the one for the translator to cre2 then when I add the book to Calibre it ignores that author (the one with the role trl) and shows the author as simply Author.
hobnail is offline   Reply With Quote