View Single Post
Old 02-10-2015, 11:34 PM   #1
srs
Member
srs has a complete set of Star Wars action figures.srs has a complete set of Star Wars action figures.srs has a complete set of Star Wars action figures.
 
Posts: 19
Karma: 258
Join Date: Sep 2011
Device: sony prs 300
Formatting series number nicely

When sending a book to my kindle I use this plugboard: "{series_index:|| - }{title}" to add the series index to the title of my book.

Unfortunately when the series has more than 9 books, the book is sorted incorrectly in the kindle (it goes 1, 10, 11, 2, 3, ...). I know I can use "{series_index:0>3s|| - }{title}" (have to use 3 zeros as some series have > 100 books), but this looks ugly as the vast majority of series are less than 10 books.

Is there any way to format the title so that only the necessary number of 0s are added (eg a series with < 10 books will have no 0s prepended, while one with > 100 will have two 0s prepended).

I'm ok with adding a custom column to indicate large collections, but then I would need to use a template within a template.

Any suggestions?
srs is offline   Reply With Quote