View Single Post
Old 03-20-2017, 11:27 PM   #9
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,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The code only handle's authors, i.e. opf:role="aut" entries -- others are left alone, as calibre does not know anything about them (it only has author metadata). I suppose one could create a translation from opf 2 role to epub 3 properties -- but since the purpose of the code is not upgrading epubs but making sure that setting metadata in epub 3 works, it's not implemented. If you want to implement it, you can do so in your plugin, it should not be too hard, see the code in metadata/opf3.py for inspiration.
kovidgoyal is offline   Reply With Quote