start
This commit is contained in:
commit
243c9b3fe8
15 changed files with 206 additions and 0 deletions
13
Content/backcover.xhtml
Normal file
13
Content/backcover.xhtml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Book</title>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<link href="style/book.css" rel="stylesheet" type="text/css"/>
|
||||||
|
<link href="style/cover.css" rel="stylesheet" type="text/css"/>
|
||||||
|
</head>
|
||||||
|
<body epub:type="cover">
|
||||||
|
<img id="cover" src="img/back.png" alt="Cover"/>
|
||||||
|
</body>
|
||||||
|
</html>
|
15
Content/ch01.xhtml
Normal file
15
Content/ch01.xhtml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Chapter 1</title>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<link href="style/book.css" rel="stylesheet" type="text/css"/>
|
||||||
|
</head>
|
||||||
|
<body epub:type="bodymatter">
|
||||||
|
<section epub:type="chapter">
|
||||||
|
<h1 id="ch01">Chapter 1</h1>
|
||||||
|
<p>It all began...</p>
|
||||||
|
</section>
|
||||||
|
</body>
|
||||||
|
</html>
|
13
Content/cover.xhtml
Normal file
13
Content/cover.xhtml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Book</title>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<link href="style/book.css" rel="stylesheet" type="text/css"/>
|
||||||
|
<link href="style/cover.css" rel="stylesheet" type="text/css"/>
|
||||||
|
</head>
|
||||||
|
<body epub:type="cover">
|
||||||
|
<img id="cover" src="img/book.png" alt="Cover"/>
|
||||||
|
</body>
|
||||||
|
</html>
|
BIN
Content/img/back.png
Normal file
BIN
Content/img/back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
Content/img/book.png
Normal file
BIN
Content/img/book.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
66
Content/package.opf
Normal file
66
Content/package.opf
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="pub-id" version="3.0">
|
||||||
|
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<dc:identifier id="pub-id">urn:uuid:00000000-0000-0000-0000-000000000000</dc:identifier>
|
||||||
|
<meta property="dcterms:modified">2019-07-25T18:00:00Z</meta>
|
||||||
|
<dc:source>https://en.wikipedia.org/wiki/EPUB</dc:source>
|
||||||
|
<dc:language>en</dc:language>
|
||||||
|
<dc:title id="title">The Book's Title</dc:title>
|
||||||
|
<meta refines="#title" property="title-type">main</meta>
|
||||||
|
<meta refines="#title" property="file-as">Book's Title, The</meta>
|
||||||
|
<meta refines="#title" property="alternate-script" xml:lang="pl">Tytuł książki w innym języku</meta>
|
||||||
|
<dc:title id="subtitle">Secondary Title</dc:title>
|
||||||
|
<meta refines="#subtitle" property="title-type">subtitle</meta>
|
||||||
|
<dc:creator id="creator">The Book's Author</dc:creator>
|
||||||
|
<meta refines="#creator" property="role" scheme="marc:relators">aut</meta>
|
||||||
|
<meta refines="#creator" property="file-as">Author, The Book's</meta>
|
||||||
|
<dc:description xml:lang="en">Very good book about everything what is in The Universe</dc:description>
|
||||||
|
<dc:description xml:lang="pl">Świetna książka o wszystkich rzeczach we Wszechświecie</dc:description>
|
||||||
|
<dc:subject>Novel</dc:subject>
|
||||||
|
<dc:subject>Dark Ages</dc:subject>
|
||||||
|
<dc:subject id="bisac1">FICTION / Literary</dc:subject>
|
||||||
|
<meta refines="#bisac1" property="authority">BISAC</meta>
|
||||||
|
<meta refines="#bisac1" property="term">FIC019000</meta>
|
||||||
|
<meta id="series" property="belongs-to-collection">My Books Collection</meta>
|
||||||
|
<meta refines="#series" property="collection-type">series</meta>
|
||||||
|
<meta refines="#series" property="group-position">1</meta>
|
||||||
|
<meta refines="#series" property="dcterms:identifier">my-id</meta>
|
||||||
|
<dc:publisher>Self-publishing</dc:publisher>
|
||||||
|
<dc:date>2017-03-01</dc:date>
|
||||||
|
<dc:identifier>urn:isbn:0000000000000</dc:identifier>
|
||||||
|
<dc:identifier>urn:goodreads:00000</dc:identifier>
|
||||||
|
<dc:identifier>urn:lubimyczytac:00000</dc:identifier>
|
||||||
|
<dc:identifier>https://github.com/spajak/epub3-boilerplate</dc:identifier>
|
||||||
|
<meta property="schema:numberOfPages">10</meta>
|
||||||
|
<meta property="schema:wordCount">100</meta>
|
||||||
|
<!-- Person who translated this book -->
|
||||||
|
<dc:contributor id="translator">Joe Translator</dc:contributor>
|
||||||
|
<meta refines="#translator" property="role" scheme="marc:relators">trl</meta>
|
||||||
|
<!-- The person who created this e-book package; mrk - Markup editor, bkp - Book producer -->
|
||||||
|
<dc:contributor id="producer">Sebastian Pająk</dc:contributor>
|
||||||
|
<meta refines="#producer" property="role" scheme="marc:relators">mrk</meta>
|
||||||
|
<!-- Legacy cover -->
|
||||||
|
<meta name="cover" content="cover.image"/>
|
||||||
|
</metadata>
|
||||||
|
<manifest>
|
||||||
|
<item href="images/cover.jpg" id="cover.image" media-type="image/jpeg" properties="cover-image"/>
|
||||||
|
<item href="style/book.css" id="book.css" media-type="text/css"/>
|
||||||
|
<item href="style/cover.css" id="cover.css" media-type="text/css"/>
|
||||||
|
<item href="cover.xhtml" id="cover" media-type="application/xhtml+xml"/>
|
||||||
|
<item href="titlepage.xhtml" id="titlepage" media-type="application/xhtml+xml"/>
|
||||||
|
<item href="toc.xhtml" id="toc" media-type="application/xhtml+xml" properties="nav"/>
|
||||||
|
<item href="ch01.xhtml" id="ch01" media-type="application/xhtml+xml"/>
|
||||||
|
<item href="backcover.xhtml" id="backcover" media-type="application/xhtml+xml"/>
|
||||||
|
<item href="img/book.png" id="book.png" media-type="image/png"/>
|
||||||
|
<item href="img/back.png" id="back.png" media-type="image/png"/>
|
||||||
|
<!-- Legacy toc -->
|
||||||
|
<item href="toc.ncx" id="toc.ncx" media-type="application/x-dtbncx+xml"/>
|
||||||
|
</manifest>
|
||||||
|
<spine>
|
||||||
|
<itemref idref="cover"/>
|
||||||
|
<itemref idref="titlepage"/>
|
||||||
|
<itemref idref="toc"/>
|
||||||
|
<itemref idref="ch01"/>
|
||||||
|
<itemref idref="backcover"/>
|
||||||
|
</spine>
|
||||||
|
</package>
|
8
Content/style/book.css
Normal file
8
Content/style/book.css
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
@charset "utf-8";
|
||||||
|
|
||||||
|
@page{
|
||||||
|
margin-left: 10pt;
|
||||||
|
margin-right:10pt;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
0
Content/style/cover.css
Normal file
0
Content/style/cover.css
Normal file
12
Content/titlepage.xhtml
Normal file
12
Content/titlepage.xhtml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Book</title>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<link href="style/book.css" rel="stylesheet" type="text/css"/>
|
||||||
|
</head>
|
||||||
|
<body epub:type="frontmatter">
|
||||||
|
<h1>Book</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
Content/toc.ncx
Normal file
33
Content/toc.ncx
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
|
||||||
|
<head>
|
||||||
|
<meta content="urn:uuid:00000000-0000-0000-0000-000000000000" name="dtb:uid"/>
|
||||||
|
<meta content="1" name="dtb:depth"/>
|
||||||
|
<meta content="0" name="dtb:totalPageCount"/>
|
||||||
|
<meta content="0" name="dtb:maxPageNumber"/>
|
||||||
|
</head>
|
||||||
|
<docTitle><text>The Book's Title</text></docTitle>
|
||||||
|
<docAuthor><text>The Book's Author</text></docAuthor>
|
||||||
|
<navMap>
|
||||||
|
<navPoint id="nav-cover">
|
||||||
|
<navLabel><text>Cover</text></navLabel>
|
||||||
|
<content src="cover.xhtml"/>
|
||||||
|
</navPoint>
|
||||||
|
<navPoint id="nav-1">
|
||||||
|
<navLabel><text>Title Page</text></navLabel>
|
||||||
|
<content src="titlepage.xhtml"/>
|
||||||
|
</navPoint>
|
||||||
|
<navPoint id="nav-2">
|
||||||
|
<navLabel><text>Table of Contents</text></navLabel>
|
||||||
|
<content src="toc.xhtml"/>
|
||||||
|
</navPoint>
|
||||||
|
<navPoint id="nav-3">
|
||||||
|
<navLabel><text>Chapter I</text></navLabel>
|
||||||
|
<content src="ch01.xhtml"/>
|
||||||
|
</navPoint>
|
||||||
|
<navPoint id="nav-4">
|
||||||
|
<navLabel><text>Backcover</text></navLabel>
|
||||||
|
<content src="backcover.xhtml"/>
|
||||||
|
</navPoint>
|
||||||
|
</navMap>
|
||||||
|
</ncx>
|
17
Content/toc.xhtml
Normal file
17
Content/toc.xhtml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Table of Contents</title>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<link href="style/book.css" rel="stylesheet" type="text/css"/>
|
||||||
|
</head>
|
||||||
|
<body epub:type="frontmatter">
|
||||||
|
<nav>
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
|
<ol>
|
||||||
|
<li><a href="ch01.xhtml">Chapter 1</a></li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
</body>
|
||||||
|
</html>
|
6
META-INF/container.xml
Normal file
6
META-INF/container.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0">
|
||||||
|
<rootfiles>
|
||||||
|
<rootfile full-path="Content/package.opf" media-type="application/oebps-package+xml"/>
|
||||||
|
</rootfiles>
|
||||||
|
</container>
|
5
export.sh
Executable file
5
export.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
rm book.epub
|
||||||
|
7za a "book.epub" mimetype
|
||||||
|
7za a "book.epub" "META-INF/*"
|
||||||
|
7za a "book.epub" Content/*
|
1
mimetype
Normal file
1
mimetype
Normal file
|
@ -0,0 +1 @@
|
||||||
|
application/epub+zip
|
17
readme.md
Normal file
17
readme.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# EPUB
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Adding your information
|
||||||
|
|
||||||
|
|
||||||
|
## Adding additional chapters
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
References:
|
||||||
|
- https://gist.github.com/stormwild/86673836eb6153e6ab2e65b4353a289e
|
||||||
|
- https://github.com/spajak/epub3-boilerplate/blob/master/template/toc.ncx
|
||||||
|
- https://www.w3.org/publishing/epub32/epub-spec.html
|
||||||
|
- https://github.com/reitermarkus/epub3-boilerplate
|
Loading…
Reference in a new issue