View Single Post
Old 02-22-2015, 02:49 AM   #15
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,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
[MOD]
@eschwartz - I may be missing the point, but why not 'format' the series number (float) into a right justified fixed width string custom column.
Although one can specify right justification in the spreadsheet view, one cannot specify the width (number of digits).

The template processor removes leading and trailing spaces, so even though you can specify fixed-width right justification, the leading spaces will be removed. For that reason you must specify leading zeros, in which case left or right justification doesn't matter.

The purpose of the script is to generate the minimum sized number specification for all the books in a given series, taking into consideration digits on both sides of the decimal point. The person I was helping when I wrote it did not want to use a fixed template for all books, because some series had indices such as "nnn.nn" and others were simply "n".
chaley is offline   Reply With Quote