EPUB3 multiple titles not handled correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
For EPUB3 files, Calibre does not choose the correct title when multiple dc:title elements are included in the OPF.
The EPUB3 spec allows for multiple dc:title elements to be used, and allows each such element to have "display-seq" and "title-type" properties attached via meta tags with the "refines" attribute. With this, I would expect the dc:title element which has a "title-type" of "main", or the dc:title element with the lowest "display-seq", to be selected as the title of the book. Additionally, the spec specifies that, lacking any other criteria for choosing a title, the first dc:title element encountered should be chosen as the main title.
Calibre does not appear to consider the title-type of display-seq for any titles, and further more it chooses the last dc:title element to use as the title of the book.
Calibre version 0.9.28, on Windows XP.
calibre does not support EPUB 3. However, in the interests of
interoperability I will change the code to use the first title element,
if and only if the <package> element have a version >= 3.