EPUB3 multiple titles not handled correctly

Bug #1175184 reported by Brian Mearns
6
This bug affects 1 person
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.

Related branches

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1175184

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.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
Brian Mearns (bmearns) wrote :

Awesome, thanks for the quick fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.