![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 666
Join Date: May 2020
Location: Germany
Device: android smartphone + tablet
|
series index decimals
Is there a reason why the decimals of the series index are formatted with only two digits? (method "def fmt_sidx(i, fmt='%.2f', use_roman=False) in "calibre\ebooks\metadata\__init__.py")
In a metadata plugin, I create the series index from a given volume and issue number in the form "volume.issue". In most cases, the issue number runs within the volume number (usually a year), so two decimal places are sufficient. However, there are also cases where the issue number runs independently from 1 to hundreds of issues (e.g., New Worlds Science Fiction Magazine), so issue numbers above 99 may be stored in the series index but not displayed. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can create a custom column with a template at format it with as many decimal points as you like, or create a seaparate column to store volume number. calibre's builtin series field supports two digit precision as that covers the vast majority of use cases and and having more would just impose costs on everyone for a very niche use case.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Missing Metadata tags for Series and Series Index? | JohnStaats | Sigil | 16 | 03-04-2025 02:05 AM |
Plugboard for series numbering (decimals & no decimals): exploit the Kindle’s bug | ilyaz | Library Management | 0 | 05-18-2023 12:59 AM |
how to view/filter library by series/series index | masp | Onyx Boox | 5 | 02-04-2021 11:39 AM |
Plugboard for series numbering (decimals & no decimals) | lina.w | Library Management | 30 | 01-29-2016 03:56 AM |
Series Index displayed as separate column from Series | Vortex | Library Management | 3 | 03-15-2015 08:39 PM |