View Single Post
Old 06-19-2015, 11:37 AM   #1
lina.w
Junior Member
lina.w began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2015
Device: none
Plugboard for series numbering (decimals & no decimals)

Hello all!

Before I begin, I just want to let you guys know I'm fairly new to calibre, so please be patient with me.

I have a bunch of books in series where there are novellas. I've been trying to look for a solution to get the numbering to appear as [01.5] if on the 'Series' column in calibre it appears as 1.50.

As of right now, this is what I have on my plugboard now is:
{series}{series_index:0>2s| [|] }{title}
which works just fine if the series numbering has no decimals.

So what if the series does have novellas and I want to use decimals? How would I have to change the plugboard so it changes to the way I want it to? (My guess is I would need to use an 'if statement' & 'regex', but I'm not sure 100% sure.)

Just an example of how I want the books to show up on my Kindle:
SeriesName [01] Title A
SeriesName [01.5] Title B
SeriesName [02] Title C
SeriesName [02.5] Title D
SeriesName [03] Title E

By the way, if I changed my mind and don't want a leading zero, do I just take out '0>2s'?

Thanks in advance!
lina.w is offline   Reply With Quote