epub3 - Flag the cover *page*--epub3 only flags cover *img*

This commit is contained in:
Jim Miller 2025-11-01 13:03:08 -05:00
parent 75a213beb9
commit 8ea03be5f3

View file

@ -657,10 +657,13 @@ div { margin: 0pt; padding: 0pt; }
package.appendChild(manifest) package.appendChild(manifest)
for item in items: for item in items:
(id,href,type,title)=item (id,href,type,title)=item
manifest.appendChild(newTag(contentdom,"item", attrs = {'id':id,
attrs={'id':id, 'href':href,
'href':href, 'media-type':type}
'media-type':type})) if epub3 and id=='cover':
## Flag the cover *page*--epub3 only flags cover *img*
attrs['properties'] = 'calibre:title-page'
manifest.appendChild(newTag(contentdom, "item", attrs=attrs))
if epub3: if epub3:
# epub3 nav # epub3 nav
# <item href="nav.xhtml" id="nav" media-type="application/xhtml+xml" properties="nav"/> # <item href="nav.xhtml" id="nav" media-type="application/xhtml+xml" properties="nav"/>