![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 20
Join Date: Jul 2012
Device: Nook
|
Save to Disc - Folder name - Period changes to Underscore
I use the following template in Calibre->Preferences->Saving Books To Disc:
{author_sort}/{title}/{authors} - {series}{series_index:0>2s| - | - }{title} It works great except for the Folder name -- if the author's FN ends with a period (.), the period is replaced by an underscore (_). So, for example, I end up with Folders like these: Box, C.J_/Blue Heaven/C. J. Box - 2009 Edgars Mystery Awards 01 - Blue Heaven.epub Parker, Robert B_/Sixkill/Robert B. Parker - Spenser 40 - Sixkill.epub The {author_sort} variable works fine if I use it elsewhere in the template, and the period is not replaced. {author_sort}/{title}/{author_sort} - {series}{series_index:0>2s| - | - }{title} Parker, Robert B_/Sixkill/Parker, Robert B. - Spenser 40 - Sixkill.epub Is there any way to fix this? I'd prefer to have my folders sorted "LN, FN" so replacing {author_sort} with {authors} is not an option. And I'd rather not have to strip the periods from all author names with abbreviations. Also, I work on a Mac, so the length limitations on Windows filenames should not be the problem. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26,044
Karma: 39102633
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
|
Quote:
Calibre corrects all filenames to comply with all platforms. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,724
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 2
Karma: 20
Join Date: Jul 2012
Device: Nook
|
Got it. Thanks for the explanation.
|
![]() |
![]() |
![]() |
#5 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,180
Karma: 5052820
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
|
You could try something fancy like {author_sort:re([.]$,)}
This way it would simply omit the dot at the end instead of replacing it with _ |
![]() |
![]() |
Advert | |
|
![]() |
Tags |
author_sort, folder, period, save to disc, underscore |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Save to Disc - Folder name / Filename Problems | Distorted Vision | Library Management | 19 | 03-11-2012 11:37 AM |
Can't Save to Disc | MickeyC | Calibre | 2 | 10-16-2011 10:54 AM |
title in save to disc | pcalv | Library Management | 9 | 08-04-2011 08:11 AM |
marking books 'biography' and 'read' to put in same folder on 'save to disc' | madeirabhoy | Library Management | 1 | 07-09-2011 01:59 PM |
0.7.1 Save to Disc function fixed? | grizedale | Calibre | 9 | 06-07-2010 05:49 PM |