View Single Post
Old 09-23-2017, 11:33 AM   #3
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by BaronKrause View Post
I just made 2 custom columns, 1 called "Volume" and set it to "Floating point numbers" just like how books normal numbering is (in case of some rare instance where there would be an in between standard numbering release) and made another custom column called "Version" and set it to "Integers" so I could select things like 2 or 3, etc.

While both will be parsable in calibre companion with {#volume} and {#version}, if I wanted it to look nice like "v2" at the end of a volume, or something like "Volume 4" somewhere I would need to do "v{#version}" and "Volume {#volume}" and that would leave extra garbage like "v" and "Volume " with no number in the names of all items that have that info undefined (the majority).
Calibre allows you to format the number has you want when you create a custom column.
So in the edit custom column dialog, in format for numbers you could enter:
  • for the "Version" column (integers):
    Code:
    v {0:d}
  • for the "Volume" column (Floating point numbers):
    Code:
    Volume {:.2f}
where {0:d} represents your integers and {:.2f} is a number with two digits after the point. Just put what you want before (v, volume, version...)
Nicolas F is offline   Reply With Quote