![]() |
#1 |
Member
![]() Posts: 21
Karma: 10
Join Date: Apr 2013
Device: iPad
|
Remove underscore when exporting from library
Is it possible for me to change the underscore that is used when saving a book to disk to either a space or a hyphen?
example: Series1: Book 2: Title be default becomes Series1_ Book 2_ Title, can I change any thing to make it either Series1 Book 2 Title or Series1 - Book 2 - Title? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The underscores are created to replace characters that are unsafe in filenames. You can use the template function mode to replace such characters yourself in the save temple.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 21
Karma: 10
Join Date: Apr 2013
Device: iPad
|
I currently am using
{author_sort}/{series}/{series_index:0>3s} - {title}/{#origfile} I am not sure what I would need to do to replace the underscores with what I suggested. |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,972
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Series1_ Book 2_ Title calibre is fixing one space with the _ so there are not 2 in a row That does not match with the template you then show in the previous post {author_sort}/{series}/{series_index:0>3s} - {title}/{#origfile} Author/Series1/Book 002 - Title/#origfile note: I see 3 folders, then the book file? |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You'd need to use one of the functions described here:
http://manual.calibre-ebook.com/template_lang.html Probably re() to replace all special characters such as colons, trailing periods, slashes, etc. in each path segment. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Exporting library to put into another computer? | readerlover | Library Management | 5 | 11-26-2014 03:03 PM |
Remove comma from file name when exporting books to disk | davy39 | Library Management | 0 | 03-31-2013 11:54 PM |
Exporting original file from Library? | FoxkehKayak | enTourage Archive | 1 | 03-14-2011 10:43 PM |
Ebook library 3.0: a bug exporting notes | dontriston | Sony Reader | 8 | 09-05-2009 12:53 PM |