View Single Post
Old 07-26-2009, 12:07 AM   #1
jdh
Enthusiast
jdh began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Feb 2008
Device: Sony PRS-505, Kindle3, Voyage
Author Sort format

I wish to regenerate the metadata in a set of epub books that use the following filename format.

author_lastname, author_firstname - title.epub

for example,
Scott, Sir Walter - Anne of Geierstein.epub

The desired metadata is,
title = Anne of Geierstein
author = Scott, Sir Walter
author sort = Scott, Sir Walter

I can get the desired title and author metadata by unchecking the "read metadata from files" box, and then adding the book with the regular expression,
(?P<author>,+) - (?P<title>[^_]+)

But the author sort metadata is created as,
Walter, Scott, Sir

I have spent some time looking for a solution in the Calibre User Manual but haven't found one. Can anyone help with this? Thanks.
jdh is offline   Reply With Quote