Quote:
Originally Posted by Capricorn
Hi Chaley,
Thanks for that tip. I did not know it worked in that sequence.
I changed the config of the device to:
{author_sort: shorten (80, -, 20)}/{title} - {series_index} {series}
and then I tried. What I found on the device, was a folder named "shorten_unknown function" with the epub file inside this folder.
So, it looks like the function "shorten" is not recognized or not valid for the parameter author_sort.
When I look at the help file http://manual.calibre-ebook.com/template_lang.html, to me, it looks like it should work. Or is my understanding still too limited? Or a bug or...?
Many thanks for any further info,
Capricorn
|
The problem is the space after the "shorten". Calibre assumes that it is part of the function name. Although this isn't really a bug, it is silly behavior and I will change it.
Remove the space and it should work. Also note that the spaces around the minus are significant -- they will be in the output.