View Single Post
Old 02-08-2018, 09:11 AM   #7
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: 45,427
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre long predates the epub standard. And incidentally, the epub standard is dead in any case. It's a trivial script to make the change you want to the authors table, using either SQL or the calibre DB API, which is documented in the user manual. For example, to copy author sort to author, something like:

Code:
calibre-debug -c "from calibre.library import db; db = db().new_api; a = db.get_author_data(); n = {aid:v['sort'] for aid, v in a.iteritems()}; db.rename_items('authors', n)"
kovidgoyal is offline   Reply With Quote