|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2013
Device: none
|
Do not want plus sign (+) getting converted to space when saving to disk
In the columns and metadata, the authors are being split by ampersands (&). This is all fine and dandy. However, I really hate how they look in the filenames for books/papers. Instead, I generally use the plus sign (+) and no spaces between the authors' last names. Example: Sakel+Everett_-_Linguistic_Fieldwork_(2012) I actually have the template set up perfectly in the "Saving books to disk" preferences. Here is what I got: Code:
{author_sort:'re(re($,"\,.*\&\s?","+"),"\,.*$","")'}
I looked around, tried changing various options that seemed even remotely related, and got no results. The plus sign (+) is valid ASCII, and it is also valid for filenames on Windows and Linux (not sure about Mac). So, there is no need to force this to change... Does anyone know where I can look for an option/regex that is causing this? Thanks! Last edited by flueterflam; 01-05-2013 at 09:42 PM. Reason: Added example of filename |
|
|
|
|
|
#2 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,960
Karma: 2574555
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Plus is not always valid in a file name.
It is the symbol for concatenation (adding 2 files together) Calibre tries to ONLY allow file names that are valid in ALL OS
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2013
Device: none
|
I'm assuming because you didn't proffer any way to circumvent this, that it's not possible. Anyhow, out of curiosity, which OSes do not allow the plus sign in a file name?
|
|
|
|
|
|
#4 |
|
Taking a break; Fed up
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,447
Karma: 32677024
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
|
I think there is a difference between usage in command prompts. vs actual characters allowed in file names.
See http://en.wikipedia.org/wiki/Filename for some reading on the subject.
__________________
Peter |
|
|
|
|
|
#5 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 751
Karma: 433580
Join Date: Mar 2012
Location: NSW Australia
Device: None - see signature
|
Quote:
IIRC, FAT32 also disallows square brackets. BR
__________________
Windows 7Pro 64bit Desktop, Mint UL portable with Firefox & EpubReader |
|
|
|
|
|
|
#6 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,664
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#7 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2013
Device: none
|
Ok, I understand why. But Windows 95 is unsupported and very obsolete now. As far as FAT32 devices, don't most OSes also allow the exFAT format also, which does not have this limitation? Furthermore, according to:
http://en.wikipedia.org/wiki/VFAT#VFAT Non VFAT-enabled operating systems can still access the files under their short file name alias without restrictions, however, the associated long file names may get lost, when files with long file names are copied under non VFAT-aware operating systems. This seems acceptable to me. The rare time that I might used a USB drive/SD card in an OS which doesn't support "+", it would fall back to the short file name, which could have this restriction retained. It would remove the limitation of disallowing "+", which seems to be allowed in all other file formats and OSes for filenames. |
|
|
|
|
|
#8 |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55,165
Karma: 27556397
Join Date: Nov 2006
Location: UK
Device: Kindle Touch, PW, Fire HD, iPad 3, iPhone 4, Samsung Tab 2 7 + More
|
The FAT32 file system (which doesn't allow "+" in a filename) is used by virtually all reading devices.
__________________
Harry Currently proofreading The Poison Belt, by Sir Arthur Conan Doyle. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Saving to Disk | LRC1962 | Library Management | 1 | 06-20-2012 07:58 PM |
| Saving to Disk | paulfiera | Calibre | 3 | 07-20-2011 10:21 AM |
| Saving to Disk Template | hurricane51 | Conversion | 2 | 07-07-2011 01:22 AM |
| Losing files when saving saving to disk | theaccountant | Library Management | 4 | 03-10-2011 02:38 PM |
| Saving to disk | htaylor | Calibre | 2 | 01-04-2009 08:29 PM |