View Single Post
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