Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50069

series index decimals

$
0
0
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.

Viewing all articles
Browse latest Browse all 50069

Latest Images

Trending Articles



Latest Images