mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
Update some copy-and-paste examples to new standards
This commit is contained in:
parent
1715b8b9f8
commit
b31a0e88c3
3 changed files with 14 additions and 14 deletions
|
@ -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"><?xml version="1.0" encoding="UTF-8"?>
|
<code class="html full"><?xml version="1.0" encoding="utf-8"?>
|
||||||
<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">
|
<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">
|
||||||
<head>
|
<head>
|
||||||
<title>Half Title</title>
|
<title>Half Title</title>
|
||||||
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
||||||
|
@ -596,8 +596,8 @@ display: block;
|
||||||
font-size: .75em;
|
font-size: .75em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}</code>
|
}</code>
|
||||||
<code class="html full"><?xml version="1.0" encoding="UTF-8"?>
|
<code class="html full"><?xml version="1.0" encoding="utf-8"?>
|
||||||
<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">
|
<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">
|
||||||
<head>
|
<head>
|
||||||
<title>Half Title</title>
|
<title>Half Title</title>
|
||||||
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
||||||
|
|
|
@ -128,8 +128,8 @@ require_once('Core.php');
|
||||||
<p>Things look much better now, but we’re not perfect yet. If you open a chapter you’ll notice that the <code class="html"><p></code> and <code class="html"><h2></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/<(p|h2)>\s+/<\1>/g" src/epub/text/chapter*</span> <span>perl -pi -e "s/\s+<\/(p|h2)>/<\/\1>/g" src/epub/text/chapter*</span></code>
|
<p>Things look much better now, but we’re not perfect yet. If you open a chapter you’ll notice that the <code class="html"><p></code> and <code class="html"><h2></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/<(p|h2)>\s+/<\1>/g" src/epub/text/chapter*</span> <span>perl -pi -e "s/\s+<\/(p|h2)>/<\/\1>/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 doesn’t belong. In <i>Jekyll</i>, notice that each chapter ends with some extra empty <code class="html"><div></code>s and <code class="html"><p></code>s. These were used by the original transcriber to put spaces between the chapters, and they’re 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 doesn’t belong. In <i>Jekyll</i>, notice that each chapter ends with some extra empty <code class="html"><div></code>s and <code class="html"><p></code>s. These were used by the original transcriber to put spaces between the chapters, and they’re 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"><?xml version="1.0" encoding="UTF-8"?>
|
<code class="html full"><?xml version="1.0" encoding="utf-8"?>
|
||||||
<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">
|
<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">
|
||||||
<head>
|
<head>
|
||||||
<title>Chapter 1</title>
|
<title>Chapter 1</title>
|
||||||
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
||||||
|
|
|
@ -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"><?xml version="1.0" encoding="UTF-8"?>
|
<code class="html full"><?xml version="1.0" encoding="utf-8"?>
|
||||||
<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">
|
<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">
|
||||||
<head>
|
<head>
|
||||||
<title>Half Title</title>
|
<title>Half Title</title>
|
||||||
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
||||||
|
@ -263,8 +263,8 @@ display: block;
|
||||||
font-size: .75em;
|
font-size: .75em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}</code>
|
}</code>
|
||||||
<code class="html full"><?xml version="1.0" encoding="UTF-8"?>
|
<code class="html full"><?xml version="1.0" encoding="utf-8"?>
|
||||||
<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">
|
<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">
|
||||||
<head>
|
<head>
|
||||||
<title>Half Title</title>
|
<title>Half Title</title>
|
||||||
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
||||||
|
@ -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"><?xml version="1.0" encoding="UTF-8"?>
|
<code class="html full"><?xml version="1.0" encoding="utf-8"?>
|
||||||
<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">
|
<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">
|
||||||
<head>
|
<head>
|
||||||
<title>Endnotes</title>
|
<title>Endnotes</title>
|
||||||
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
||||||
|
@ -731,8 +731,8 @@ font-style: italic;
|
||||||
<p>If the image has a <code class="html"><figcaption></code> element, then use that caption in the LoI. If not, use the image’s <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"><figcaption></code> element, then use that caption in the LoI. If not, use the image’s <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"><?xml version="1.0" encoding="UTF-8"?>
|
<code class="html full"><?xml version="1.0" encoding="utf-8"?>
|
||||||
<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">
|
<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">
|
||||||
<head>
|
<head>
|
||||||
<title>List of Illustrations</title>
|
<title>List of Illustrations</title>
|
||||||
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue