|
|
#1 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 143
Karma: 76596
Join Date: Feb 2015
Location: Portugal
Device: Kobo Aura HD
|
Concatenate arguments in a replace function - Save to disk
Newbie question and after reading the docs https://manual.calibre-ebook.com/template_lang.html on functions and I had no clue how to get it implemented!
How can I concatenate arguments in a replace function when saving to disk template? Lets say I want to replace the punctuation signs ! and ? with an underscore from the title field when saving to disk using template. this works for one... Code:
{title:re(\!,_)}
Last edited by Horus68; 10-03-2019 at 12:31 PM. |
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,270
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Preferences: Saving to Disk: may need a tick next to replace space with underscore
|
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 143
Karma: 76596
Join Date: Feb 2015
Location: Portugal
Device: Kobo Aura HD
|
Quote:
On the replace function: Even if some signs are system safe filename using STD can I remove them in the same replace function? Lets say to replace ! ? and comma from the file name with underscore? |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The {title_sort} replace the {title} value when doing save to disk job | kevin4fly | Devices | 12 | 10-15-2018 02:45 PM |
| Unexpected behavior "Save to disk function" | DrChiper | Calibre | 22 | 03-04-2017 10:34 AM |
| Nesting Function arguments in custom columns | da_jane | Calibre | 1 | 11-21-2012 03:48 PM |
| Does Save To Disk replace older files with files that have newer metadata? | unboggling | Library Management | 4 | 10-01-2011 12:52 PM |
| Save to Disk Function | Lady Fitzgerald | Calibre | 8 | 06-07-2010 11:06 AM |