You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there are multiple dc:title elements in an epub's publication metadata (in the OPF Package Document), FBReader uses the last one (in source order) as the book title, which doesn't match what's done in publications and is incorrect according to standards.
Description
The current Epub standard supports multiple titles, but FBReader does not. The following is valid in an epub:
FBReader won't use "Main Title" but rather "Subtitle" as the book's title, despite the former having a title-type of "main" and occurring first in the document order.
Something similar to the example occurs in various books I've read, but since they're copyrighted, I can't attach those. Instead, I can do one better: reprexes. The following epubs (submitted as ZIPs, since GitHub doesn't allow epub), one with #maintitle last, the other with #subtitle last, demonstrate this behavior:
The first dc:title, or the dc:title with title-type of "main" (and the lowest display-seq) is displayed as the book's title wherever the book's title is used (e.g. the library, book info, the reader's title bar). Additional titles might (or might not) be displayed as well as part of the title.
Actual result
The dc:title that appears last in the source is used as the book's title.
System Info
Platform: Android
FBReader version: 3.0.35
The text was updated successfully, but these errors were encountered:
Synopsis
When there are multiple
dc:title
elements in an epub's publication metadata (in the OPF Package Document), FBReader uses the last one (in source order) as the book title, which doesn't match what's done in publications and is incorrect according to standards.Description
The current Epub standard supports multiple titles, but FBReader does not. The following is valid in an epub:
FBReader won't use "Main Title" but rather "Subtitle" as the book's title, despite the former having a title-type of "main" and occurring first in the document order.
Something similar to the example occurs in various books I've read, but since they're copyrighted, I can't attach those. Instead, I can do one better: reprexes. The following epubs (submitted as ZIPs, since GitHub doesn't allow epub), one with
#maintitle
last, the other with#subtitle
last, demonstrate this behavior:Expected result
The first
dc:title
, or thedc:title
withtitle-type
of "main" (and the lowestdisplay-seq
) is displayed as the book's title wherever the book's title is used (e.g. the library, book info, the reader's title bar). Additional titles might (or might not) be displayed as well as part of the title.Actual result
The
dc:title
that appears last in the source is used as the book's title.System Info
Platform: Android
FBReader version: 3.0.35
The text was updated successfully, but these errors were encountered: