View Single Post
Old 07-12-2023, 04:43 PM   #153
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 Jellby View Post
I'm pretty sure it's a last name (https://en.wikipedia.org/wiki/Spanish_naming_customs), but anyway, what's happening is that some characters are trimmed from the middle of each path section.
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.
chaley is offline   Reply With Quote