|
|
#1 |
|
Member
![]() Posts: 17
Karma: 10
Join Date: Sep 2013
Device: playbook
|
Save to disk, characters getting replaced by _
I have some title with '+' characters in it and when I save to disk, It's getting converted to underscore _. I'm not sure why it can't save as '+' characters and need to convert any occurance of '+' to '_'.
Is there any reason for this ? Can I remove this convertion, I would like to have '+' instead of '_' in my pdf filename. An example would be: C++ for dummy. |
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,288
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
filea+fileb+filec |
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,036
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
So what, I have dozens of files and folders with '++' in their names - I use it to give me a hint that said file or folder contains something extra than the name might otherwise indicate.
See Naming Files, Paths, and Namespaces Quote:
ETA : Are calibre's file naming 'rules' concisely documented anywhere - including which are platform specific and which are global. I looked in the manual but couldn't see anything. BR Last edited by BetterRed; 10-14-2013 at 02:42 AM. |
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,639
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, you cannot. The list of filtered out characters is designed to be robust across *all* currently used operating systems, kernels and file systems.
|
|
|
|
|
|
#5 |
|
Member
![]() Posts: 17
Karma: 10
Join Date: Sep 2013
Device: playbook
|
Is there any file I could change (python) or any hack to bypass this ? It's stripping off my . in the filename and I'm using another program to compare it so I need to make sure the file does not get change.
I'm a programmer so any plugin or any custom stuff I could bypass this auto-rename would be such appreciated. thanks! |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,639
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run calibre from source, and change the sanitize_file_name functions in calibre/__init__.py
|
|
|
|
|
|
#7 |
|
Member
![]() Posts: 17
Karma: 10
Join Date: Sep 2013
Device: playbook
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Save to disk and special characters | GarfieldKlon | Library Management | 2 | 11-27-2012 08:48 PM |
| Save on disk | PhM | Calibre | 1 | 06-13-2011 01:43 PM |
| Save to Disk | beckywc | Library Management | 3 | 06-06-2011 09:54 PM |
| Save for Later replaced with Wish Lists | RobbieClarken | Amazon Kindle | 0 | 12-08-2009 01:09 PM |
| Can't SAVE TO DISK Calibre 0.6.24 | Rootman | Calibre | 5 | 12-06-2009 06:01 AM |