|
|
#1 |
|
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2015
Device: Kobo H2O
|
Saving To Disk Is Messing Up Filenames
When I select a book in Calibre and click Save to disk it is saving the book but renaming the file. For example a filename with "C++" in it will get renamed to "C__" which is annoying. I have read that this is due to Calibre removing characters that are incompatible with certain operating systems (which I think should be optional not forced) but is there a way to tell cailbre to rename it to "CPP" instead?
|
|
|
|
|
|
#2 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Sure, using a filename template in Preferences ==> Save to Disk
e.g. Code:
{title:re(C++,CPP)}
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2015
Device: Kobo H2O
|
Thanks. I tried that like this:
{series:re(C++,CPP)}/{title:re(C++,CPP)} - {authors} But I get the following error: calibre, version 2.54.0 ERROR: Invalid template: <p>The template {series:re(C++,CPP)}/{title:re(C++,CPP)} - {authors} is invalid:<br>multiple repeat |
|
|
|
|
|
#4 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Dur... how mortifying.
![]() You need to escape the plus sign. It is a regex special character. |
|
|
|
|
|
#5 |
|
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2015
Device: Kobo H2O
|
It still doesn't do anything though. i.e.
{series:re(C\+\+,CPP)}/{title:re(C\+\+,CPP)} - {authors} |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 70238
Join Date: Jun 2014
Device: none
|
Quote:
The only thing I can think of is Code:
{series:re([Cc][\+✝⨢+]{2},CPP)}/{title:re([Cc][\+✝⨢+]{2},CPP)} - {authors}
|
|
|
|
|
|
|
#7 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
This^^
There is no good reason why that regex should fail to work as expected; there must be some additional component or issue that you overlooked. Unless we have some way of duplicating your error, we won't know how to help you fix it... |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Saving to Disk | paulfiera | Calibre | 3 | 07-20-2011 10:21 AM |
| Losing files when saving saving to disk | theaccountant | Library Management | 4 | 03-10-2011 02:38 PM |
| Saving Filenames in Calibre Library Folder | junkyardwillie | Calibre | 2 | 01-07-2010 07:51 PM |
| Saving to disk | htaylor | Calibre | 2 | 01-04-2009 08:29 PM |