![]() |
#1 |
Zealot
![]() ![]() Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
|
Leading zero for series number?
Hi all.
I read the instructions here (https://manual.calibre-ebook.com/template_lang.html) but they just flew over my head. I understand that this is the code I require, [Quote] (Suppose you wanted to ensure that the series_index is always formatted as three digits with leading zeros. This would do the trick:{series_index:0>3s} - Three digits with leading zeros [End Quote] But where do I need to put this code? In the plugboard settings, tweaks? Any help would be GREATLY appreciated. Step by step instructions would be BLISS if you have the time. Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,942
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The code does NOT affect the Calibre GUI
It is for books sent to devices (or folders). You put that code into the send to device template IF the device uses filenames to show you what books are there. You put it into the Plugboard if your device uses standard metadata fields (eg Kindle) My examples show fractional series MMM.FF |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
|
Thanks for this. So the GUI is set to display numbers less than ten without a leading zero, yes?
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,942
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Yes, Unlike filenames or plugboard actions, the (series) GUI is really 2 fields merged so they are Number value aware and don't need padding to make them sort correctly. No, 1, 10, 2, 20...
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
|
Thanks for clearing this up.
Cheers. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tags for author sort, series and series number? | griffitts | Calibre | 4 | 02-06-2020 11:37 AM |
[Kobo Aura] Series and number of the series | Laval | Devices | 1 | 02-26-2019 08:26 PM |
Can series-number metadata be a number range? | Suffolk Punch | Calibre | 4 | 04-29-2017 01:53 PM |
Plugboard for series with leading zeros | robertmarkbram | Calibre | 6 | 12-19-2013 01:59 PM |
How to add leading zeros to the front of a series | peaceridge | Library Management | 4 | 11-18-2013 11:46 AM |