11-07-2010, 12:40 PM | #1 |
Connoisseur
Posts: 71
Karma: 674766
Join Date: Sep 2010
Device: Kindle
|
save file template for series
I have a template for saving files that appends the series number:
Code:
{author_sort}/{series:||/}{series_index:0>2s||. }{title} But some series have novellas or short stories between books, so I have some entries' series numbers labeled like 2.10. So now, with this template, the books are saved as 01, 02, 2.10, 03 I would like to change this template so that it saves them as 01, 02, 02.10, 03 Any ideas? Thanks |
11-07-2010, 01:01 PM | #2 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Try
Code:
{author_sort}/{series:||/}{series_index:re(^(\d)(\.|$),0\1\2)||. }{title} |
Advert | |
|
11-08-2010, 02:07 AM | #3 |
Connoisseur
Posts: 71
Karma: 674766
Join Date: Sep 2010
Device: Kindle
|
Thank you, works perfectly
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using Custom Metadata in Save Template | EJvdH | Calibre | 1 | 07-02-2010 06:06 AM |
save to disk template | speakingtohe | Calibre | 9 | 05-29-2010 06:02 AM |
Save template for title metadata? | Bob Butler | Calibre | 10 | 03-15-2010 01:05 PM |
Optional characters in Save Template for Adding Books | Starson17 | Calibre | 1 | 02-28-2010 12:52 PM |
Save File location and Save As question | DougFNJ | Calibre | 0 | 09-17-2009 04:56 PM |