View Single Post
Old 10-21-2022, 12:16 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by LordSith77 View Post
My save to disk template is thus:
{author}/{series}/{title}/{series}{series_index:0>2s| – | – }{title} - {authors}
You can use the template function 'shorten()' to make the names predictable so the folder structure works. You allocate a certain number of characters to each section, then use shorten() to ensure that the allocations are respected.

For example, a template that ensures that the total length is less than around 200 characters could be:
Code:
{author:shorten(20,-,9)}/{series:shorten(20,-,9)}/{title:shorten(20,-,9)}/{series:shorten(20,-,9)}{series_index:0>2s| – | – }{title:shorten(20,-,9)} - {authors:shorten(20,-,9)}
I expect you would adjust the various shorten()s so that the output length is what you need and makes the most sense to you.
chaley is offline   Reply With Quote