I have been using the Polish tool to upgrade epubs from 2 to 3, and there are some differences to how it formats the meta-data, compared to Edit book:
In my epub 2 meta-data the series position was defined in float format like this:
Code:
<meta name="calibre:series_index" content="2.0"/>
I used Polish book, Upgrade book internals to just upgrade from epub 2 to 3:
Code:
Polishing: EPUB
Upgrading book, if possible
Updated EPUB from version 2 to 3
Polishing took: 0.2 seconds
I unzipped the resulting epub to examine the meta-data; the series position is still in float format:
[CODE]<meta refines="#id-2" property="group-position">2.0</meta>/CODE]
I then opened the book in the Calibre editor (Edit book command), which I think silently re-arranges some of the books internals and automatically saves the result (without prompting). When I unzipped the epub again the series position is now in integral format and the tag has acquired an
opf namespace:
Code:
<opf:meta refines="#id-2" property="group-position">2</opf:meta>
This explains why I was sometimes seeing float and sometimes integral format for series positions once I had downloaded epubs from Calibre to my reader app (I prefer integral format). It all depended on whether the epub was in version 3 format,
and if I had opened it in the Calibre editor.
I like how the epub editor will automatically convert an effectively integral series position (2.0) to an integer (2) - after all, most series positions will be integral. When you do have a sub-position, e.g., 2.1, the editor respects that too.
Please would it be possible to make the Polish tool consistent with the epub editor in this regard?