web/www/contribute/a-basic-standard-ebooks-source-folder.php

74 lines
4.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?= Template::Header(title: 'A Basic Standard Ebooks Source Folder', isManual: true, highlight: 'contribute', description: 'All Standard Ebooks source folders have the same basic structure, described here.') ?>
<main>
<article id="a-basic-standard-ebooks-source-folder">
<h1>A Basic Standard Ebooks Source Folder</h1>
<section>
<p>All Standard Ebooks source folders have the same basic structure. It looks a little like this:</p>
<figure>
<img alt="A tree view of a new Standard Ebooks draft folder" src="/images/epub-draft-tree.png"/>
</figure>
<ul>
<li>
<p><code class="path">images/</code> contains the raw image files used in an ebook. For ebooks without illustrations, youll have the following three files:</p>
<ul>
<li>
<p><code class="path">images/cover.svg</code>, the raw cover image complete with title and author.</p>
</li>
<li>
<p><code class="path">images/titlepage.svg</code>, the raw titlepage image.</p>
</li>
<li>
<p><code class="path">images/cover.source.jpg</code>, not pictured; the raw, high-resolution artwork weve picked as the cover image background, kept here for future reference but not actually used in the final epub file.</p>
</li>
<li>
<p><code class="path">images/cover.jpg</code>, not pictured; the scaled-down version of <code class="path">cover.source.jpg</code> that will be referenced by <code class="path">cover.svg</code> and included in the final epub file.</p>
</li>
</ul>
</li>
<li>
<p><code class="path">src/</code> contains the actual source of the epub. This is the folder thatll be zipped up as the final epub file, and where the bulk of our work will happen.</p>
<ul>
<li>
<p><code class="path">src/META-INF/</code>, <code class="path">src/META-INF/container.xml</code>, and <code class="path">src/mimetype</code> are required by the epub spec; dont edit them.</p>
</li>
<li>
<p><code class="path">src/epub/css/</code> contains the CSS files used in the epub.</p>
<ul>
<li>
<p><code class="path">src/epub/css/core.css</code> is the common CSS file used across all Standard Ebooks; dont edit it.</p>
</li>
<li>
<p><code class="path">src/epub/css/local.css</code> is the CSS file that contains styles for this specific ebook. This is the one youll be editing, <em>if necessary</em>. Not all ebooks need custom CSS—the less custom CSS, the better!</p>
</li>
</ul>
</li>
<li>
<p><code class="path">src/epub/images/</code> contains the images used in the final epub. Right now it contains the Standard Ebooks logo file used in the colophon; dont edit the logo. Once youve finished the cover and titlepage images in <code class="path">./images/</code>, the <code class="program">build-images</code> script will compile them and put them here.</p>
</li>
<li>
<p><code class="path">src/epub/text/</code> is the meat and potatoes of the ebook! Youll place the source XHTML files here, alongside the templates <code class="bash"><b>se</b> create-draft</code> created for you:</p>
<ul>
<li>
<p><code class="path">src/epub/text/colophon.xhtml</code> is the template for the Standard Ebooks colophon that appears at the end of every ebook. Usually youll edit this last, once youve finalized the cover page and metadata.</p>
</li>
<li>
<p><code class="path">src/epub/text/titlepage.xhtml</code> is the titlepage. <code class="bash"><b>se</b> create-draft</code> generated the title and author. Dont edit this unless the title and author are incorrect.</p>
</li>
<li>
<p><code class="path">src/epub/text/unlicense.xhtml</code> is the Standard Ebooks public domain dedication. Dont edit this at all.</p>
</li>
</ul>
</li>
<li>
<p><code class="path">src/epub/content.opf</code> is the file that contains all of the epubs metadata. Youll be editing this heavily.</p>
</li>
<li>
<p><code class="path">src/epub/onix.xml</code> is a file containing accessibility information. Dont edit this.</p>
</li>
</ul>
</li>
</ul>
</section>
</article>
</main>
<?= Template::Footer() ?>