mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 07:42:37 +02:00
43 lines
1.8 KiB
XML
43 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<package version="3.0" unique-identifier="BookID" xmlns="http://www.idpf.org/2007/opf">
|
|
<metadata xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
<dc:title>{{ .Title }}</dc:title>
|
|
<dc:language>en-US</dc:language>
|
|
<dc:identifier id="BookID">urn:uuid:{{ .UID }}</dc:identifier>
|
|
<dc:contributor id="contributor">GO Comic Converter</dc:contributor>
|
|
<dc:creator>GO Comic Converter</dc:creator>
|
|
<meta property="dcterms:modified">{{ .UpdatedAt }}</meta>
|
|
<meta name="cover" content="cover"/>
|
|
<meta name="fixed-layout" content="true"/>
|
|
<meta name="original-resolution" content="{{ .ViewWidth }}x{{ .ViewHeight }}"/>
|
|
<meta name="book-type" content="comic"/>
|
|
<meta name="primary-writing-mode" content="horizontal-lr"/>
|
|
<meta name="zero-gutter" content="true"/>
|
|
<meta name="zero-margin" content="true"/>
|
|
<meta name="ke-border-color" content="#FFFFFF"/>
|
|
<meta name="ke-border-width" content="0"/>
|
|
<meta name="orientation-lock" content="portrait"/>
|
|
<meta name="region-mag" content="true"/>
|
|
</metadata>
|
|
<manifest>
|
|
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
|
|
<item id="nav" href="nav.xhtml" properties="nav" media-type="application/xhtml+xml"/>
|
|
{{ range .Images }}
|
|
{{ if eq .Id 0 }}
|
|
<item id="cover" href="Images/{{ .Title }}.jpg" media-type="image/jpeg" properties="cover-image"/>
|
|
{{ end }}
|
|
<item id="page_{{ .Id }}" href="Text/{{ .Title }}.xhtml" media-type="application/xhtml+xml"/>
|
|
<item id="img_{{ .Id }}" href="Images/{{ .Title }}.jpg" media-type="image/jpeg"/>
|
|
{{ end }}
|
|
</manifest>
|
|
<spine page-progression-direction="ltr" toc="ncx">
|
|
{{ range .Images }}
|
|
{{ if mod .Id 2 }}
|
|
<itemref idref="page_{{ .Id }}" linear="yes" properties="page-spread-left"/>
|
|
{{ else }}
|
|
<itemref idref="page_{{ .Id }}" linear="yes" properties="page-spread-right"/>
|
|
{{ end }}
|
|
{{ end }}
|
|
</spine>
|
|
</package>
|