mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 00:43:00 +01:00
epub3 - Flag the cover *page*--epub3 only flags cover *img*
This commit is contained in:
parent
75a213beb9
commit
8ea03be5f3
1 changed files with 7 additions and 4 deletions
|
|
@ -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"/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue