![]() |
#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 11:31 AM. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,056
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:
![]() |
|
![]() |
![]() |
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? |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 01:45 PM |
Unexpected behavior "Save to disk function" | DrChiper | Calibre | 22 | 03-04-2017 09:34 AM |
Nesting Function arguments in custom columns | da_jane | Calibre | 1 | 11-21-2012 02:48 PM |
Does Save To Disk replace older files with files that have newer metadata? | unboggling | Library Management | 4 | 10-01-2011 11:52 AM |
Save to Disk Function | Lady Fitzgerald | Calibre | 8 | 06-07-2010 10:06 AM |