Quote:
Originally Posted by HanG
Thanks, for the questions.
1) series:
yes, series is not piece of docx, but while the word processing, i give this information handly for the filename.
2) in calibre Adding Books is a function:
(?P<author>[^_-]+) -?\s*(?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_].+) ?
or
(?P<author>[^_-]+) -?\s*(?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_].+) ?
can somebody decrypt it?
I have normally the second, but if I know what this regular expressions means, can I give corresponding name, which include series and language.
the text about regular expressions in calibre is too complicated for me.
|
The regular expression is extracting metadata from the file name. I can't see any difference in them.
Basically this is:
Code:
author - series name series_index - title
Or everything before the dash is the author, between them is the series name and index and after the second dash is the title.
An example file name that would match is:
Code:
Jim Butcher - The Dresden Files 1 - I can't remember what book one was called.DOCX
Which gives:
Author = Jim Butcher
Series = The Dresden Files
Series index = 1
Title = I can't remember what book one was called