Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2025, 09:43 AM   #1
feuille
Connoisseur
feuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enough
 
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.
feuille is offline   Reply With Quote
Old 05-28-2025, 10:48 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:57 PM.


MobileRead.com is a privately owned, operated and funded community.