Quote:
Originally Posted by Jellby
|
Calibre's save path code works by first computing the total path length then comparing that to the maximum allowed, which is system dependent. If the total is longer than the maximum then each segment of the path is shortened (from the middle) by enough to make the path fit.
You can control this process using a template that uses the template shorten() function for each name segment. The function lets you decide how many characters to remove from each segment, removing the randomness of the default process. If done correctly then the total length is guaranteed to be less than the maximum.