|
|
#1 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 187
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kobo Libra 2 & Sage, Kindle PW3
|
Adding hyphen to file name
I have the following string set up when sending ebooks to my Kobo:
Code:
{author_sort[0]}/{author_sort}/{series}/{series_index:0>4.1f} {title}
Last edited by Buhaj; 01-09-2022 at 11:44 AM. |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
It is in the user manual under Template (language)
Code:
Using this syntax, we can solve the above no-series problem with the template:
{series}{series_index:| - | - }{title}
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 187
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kobo Libra 2 & Sage, Kindle PW3
|
I've seen that but couldn't apply it to the code above.
Wysłane przez Tapatalka |
|
|
|
|
|
#4 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#5 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Do you mean you could see how to combine the formatting of the index with the addition of the dashes? If so, the following is what you want:
Code:
{series}{series_index:0>4.1f| - | - }{title}
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with regex for adding in a hyphen | africalass | Library Management | 2 | 08-06-2020 10:11 AM |
| [iOS] Adding Books to Hyphen reader | tdanzie | Calibre Companion | 4 | 01-18-2017 11:32 AM |
| Adding file... | KyBunnies | Library Management | 1 | 05-25-2015 03:49 PM |
| adding a file | Notjohn | Sigil | 4 | 12-19-2014 10:21 AM |
| Can't save after adding file | phossler | Editor | 2 | 12-25-2013 01:24 PM |