View Single Post
Old 12-28-2019, 11:41 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,133
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I second that.
Use Calibre fields (columns) as they were intended, then use the Template Language tools to pass them to your device.

There are 2 general systems, and they are different:
File Name based: Send to Device, Save to disk use the Template to build a file-folder name
Metadata based: (changing the filename has no effect) For these, you use the Plugboard to JAMB in the extra fields. Kindles use this. OR the device drives settings like Kobo Utilities does
One field = 1 sort at a time possible. Some sort routines (and methods) allow bias (FROM PRIOR SORT) Eg 4 books with the exact title, sort first by Author, then by Title. The books show in Author order (the bias)
Others use a faster sort, but that doesn't leave a bias (these sort types are not really needed for our DB scale due to modern processors and storage)

Back to your original title method: Those are governed by the 1 sort rule because the now have been reduced to 1 type: ASCII (character weight).
Grab a ASCII chart. That is how each position in the string will weigh against others in the same POSITION. That is why we pad with leading spaces or numbers (0). Spaces can be problematic, as some systems strip any after the first. So go for the (ugly?) leading 0 to make All numbers have the exact same PLACES BTW I use a 2place before and 2 after template because I use fractional values in series_index
Code:
{series_index:0>5.2f}-{title}
Also note that you can NOT put anything different in front at the same folder level ({series}/{series_index:0>5.2f}-{title} Is valid, because series is a folder and you are sorting by file in the CURRENT folder)
theducks is offline   Reply With Quote