Update some copy-and-paste examples to new standards

This commit is contained in:
Alex Cabal 2019-08-06 13:35:27 -05:00
parent 1715b8b9f8
commit b31a0e88c3
3 changed files with 14 additions and 14 deletions

View file

@ -573,8 +573,8 @@ white-space: nowrap;
<li> <li>
<p>Half title pages without subtitles:</p> <p>Half title pages without subtitles:</p>
<figure> <figure>
<code class="html full">&lt;?xml version="1.0" encoding="UTF-8"?&gt; <code class="html full">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: http://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt;
&lt;head&gt; &lt;head&gt;
&lt;title&gt;Half Title&lt;/title&gt; &lt;title&gt;Half Title&lt;/title&gt;
&lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt; &lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt;
@ -596,8 +596,8 @@ display: block;
font-size: .75em; font-size: .75em;
font-weight: normal; font-weight: normal;
}</code> }</code>
<code class="html full">&lt;?xml version="1.0" encoding="UTF-8"?&gt; <code class="html full">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: http://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt;
&lt;head&gt; &lt;head&gt;
&lt;title&gt;Half Title&lt;/title&gt; &lt;title&gt;Half Title&lt;/title&gt;
&lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt; &lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt;

View file

@ -128,8 +128,8 @@ require_once('Core.php');
<p>Things look much better now, but were not perfect yet. If you open a chapter youll notice that the <code class="html">&lt;p&gt;</code> and <code class="html">&lt;h2&gt;</code> tags have a space between the tag and the text. We can clean that up with a few <code class="program">perl</code> commands.</p><code class="terminal"><span>perl -pi -e "s/&lt;(p|h2)&gt;\s+/&lt;\1&gt;/g" src/epub/text/chapter*</span> <span>perl -pi -e "s/\s+&lt;\/(p|h2)&gt;/&lt;\/\1&gt;/g" src/epub/text/chapter*</span></code> <p>Things look much better now, but were not perfect yet. If you open a chapter youll notice that the <code class="html">&lt;p&gt;</code> and <code class="html">&lt;h2&gt;</code> tags have a space between the tag and the text. We can clean that up with a few <code class="program">perl</code> commands.</p><code class="terminal"><span>perl -pi -e "s/&lt;(p|h2)&gt;\s+/&lt;\1&gt;/g" src/epub/text/chapter*</span> <span>perl -pi -e "s/\s+&lt;\/(p|h2)&gt;/&lt;\/\1&gt;/g" src/epub/text/chapter*</span></code>
<p>Finally, we have to do a quick runthrough of each file by hand to cut out any lingering Gutenberg markup that doesnt belong. In <i>Jekyll</i>, notice that each chapter ends with some extra empty <code class="html">&lt;div&gt;</code>s and <code class="html">&lt;p&gt;</code>s. These were used by the original transcriber to put spaces between the chapters, and theyre not necessary anymore, so remove them before continuing.</p> <p>Finally, we have to do a quick runthrough of each file by hand to cut out any lingering Gutenberg markup that doesnt belong. In <i>Jekyll</i>, notice that each chapter ends with some extra empty <code class="html">&lt;div&gt;</code>s and <code class="html">&lt;p&gt;</code>s. These were used by the original transcriber to put spaces between the chapters, and theyre not necessary anymore, so remove them before continuing.</p>
<p>Now our chapter 1 source looks like this:</p> <p>Now our chapter 1 source looks like this:</p>
<code class="html full">&lt;?xml version="1.0" encoding="UTF-8"?&gt; <code class="html full">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: http://standardebooks.org/vocab/1.0" xml:lang="en-US"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-US"&gt;
&lt;head&gt; &lt;head&gt;
&lt;title&gt;Chapter 1&lt;/title&gt; &lt;title&gt;Chapter 1&lt;/title&gt;
&lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt; &lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt;

View file

@ -243,8 +243,8 @@ require_once('Core.php');
<h2>Half title pages</h2> <h2>Half title pages</h2>
<p>When a work contains frontmatter like an epigraph or introduction, a half title page is required before the body matter begins.</p> <p>When a work contains frontmatter like an epigraph or introduction, a half title page is required before the body matter begins.</p>
<h3>Half title pages without subtitles</h3> <h3>Half title pages without subtitles</h3>
<code class="html full">&lt;?xml version="1.0" encoding="UTF-8"?&gt; <code class="html full">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: http://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt;
&lt;head&gt; &lt;head&gt;
&lt;title&gt;Half Title&lt;/title&gt; &lt;title&gt;Half Title&lt;/title&gt;
&lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt; &lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt;
@ -263,8 +263,8 @@ display: block;
font-size: .75em; font-size: .75em;
font-weight: normal; font-weight: normal;
}</code> }</code>
<code class="html full">&lt;?xml version="1.0" encoding="UTF-8"?&gt; <code class="html full">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: http://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt;
&lt;head&gt; &lt;head&gt;
&lt;title&gt;Half Title&lt;/title&gt; &lt;title&gt;Half Title&lt;/title&gt;
&lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt; &lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt;
@ -295,8 +295,8 @@ font-weight: normal;
</ul> </ul>
<h3>The endnotes file</h3> <h3>The endnotes file</h3>
<p>The endnotes file is called <code class="path">endnotes.xhtml</code> and looks like this:</p> <p>The endnotes file is called <code class="path">endnotes.xhtml</code> and looks like this:</p>
<code class="html full">&lt;?xml version="1.0" encoding="UTF-8"?&gt; <code class="html full">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: http://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt;
&lt;head&gt; &lt;head&gt;
&lt;title&gt;Endnotes&lt;/title&gt; &lt;title&gt;Endnotes&lt;/title&gt;
&lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt; &lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt;
@ -731,8 +731,8 @@ font-style: italic;
<p>If the image has a <code class="html">&lt;figcaption&gt;</code> element, then use that caption in the LoI. If not, use the images <code class="html">alt</code> tag, which should be a short prose description of the image used by screen readers.</p> <p>If the image has a <code class="html">&lt;figcaption&gt;</code> element, then use that caption in the LoI. If not, use the images <code class="html">alt</code> tag, which should be a short prose description of the image used by screen readers.</p>
<p>Links to the images should go directly to their IDs, not just the top of the containing file.</p> <p>Links to the images should go directly to their IDs, not just the top of the containing file.</p>
<p>The code below is the template for a basic LoI skeleton. Please copy and paste the entire thing as a starting point for your own LoI:</p> <p>The code below is the template for a basic LoI skeleton. Please copy and paste the entire thing as a starting point for your own LoI:</p>
<code class="html full">&lt;?xml version="1.0" encoding="UTF-8"?&gt; <code class="html full">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: http://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"&gt;
&lt;head&gt; &lt;head&gt;
&lt;title&gt;List of Illustrations&lt;/title&gt; &lt;title&gt;List of Illustrations&lt;/title&gt;
&lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt; &lt;link href="../css/core.css" rel="stylesheet" type="text/css"/&gt;