Skip to content

Commit

Permalink
Completed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerace committed Nov 7, 2018
1 parent 6dc1e28 commit 30d4af6
Show file tree
Hide file tree
Showing 29 changed files with 99 additions and 96 deletions.
File renamed without changes
2 changes: 1 addition & 1 deletion src/epub/content.opf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<meta property="meta-auth" refines="#description">https://standardebooks.org</meta>
<meta id="long-description" property="se:long-description" refines="#description">
&lt;p&gt;Henry Fleming has joined the Union army because of his romantic ideas of military life, but soon finds himself in the middle of a battle against a regiment of Confederate soldiers. Terrified, Henry deserts his comrades. Upon returning to his regiment, he struggles with his shame as he tries to redeem himself and prove his courage.&lt;/p&gt;
&lt;p&gt;&lt;i&gt;The Red Badge of Courage&lt;/i&gt; is Stephen Crane's second book, notable for its realism and the fact that Crane had never personally experienced battle. Crane drew heavy inspiration from &lt;i&gt;Century Magazine&lt;/i&gt;, a periodical known for its articles about the American Civil War. However, he criticized the articles for their lack of emotional depth and decided to write a war novel of his own. The manuscript was first serialized in December 1894 by &lt;i&gt;The Philadelphia Press&lt;/i&gt; and quickly won Crane international acclaim before he died in June 1900 at the age of 28.&lt;/p&gt;
&lt;p&gt;&lt;i&gt;The Red Badge of Courage&lt;/i&gt; is Stephen Crane’es second book, notable for its realism and the fact that Crane had never personally experienced battle. Crane drew heavy inspiration from &lt;i&gt;Century Magazine&lt;/i&gt;, a periodical known for its articles about the American Civil War. However, he criticized the articles for their lack of emotional depth and decided to write a war novel of his own. The manuscript was first serialized in December 1894 by &lt;i&gt;The Philadelphia Press&lt;/i&gt; and quickly won Crane international acclaim before he died in June 1900 at the age of 28.&lt;/p&gt;
</meta>
<meta property="meta-auth" refines="#long-description">https://standardebooks.org</meta>
<dc:language>en-US</dc:language>
Expand Down
57 changes: 42 additions & 15 deletions src/epub/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@ body{
-epub-hyphens: auto;
}

section[epub|type~="titlepage"]{
margin: 0;
padding: 0;
text-align: center;
}

section[epub|type~="titlepage"] img{
width: 100%;
margin-top: 10%;
}

p{
margin: 0;
text-indent: 1em;
Expand Down Expand Up @@ -45,6 +34,7 @@ h6{
hyphens: none;
-epub-hyphens: none;
page-break-after: avoid;
page-break-inside: avoid;
text-align: center;
margin: 3em 0;
}
Expand Down Expand Up @@ -83,9 +73,26 @@ blockquote cite i{
font-style: normal;
}

b,
strong{
font-variant: small-caps;
font-weight: normal;
font-variant: all-small-caps;
}

header{
page-break-inside: avoid;
text-align: center;
}

article > header + *,
section > header + *{
margin-top: 3em;
}

section[epub|type~="titlepage"] img{
display: block;
width: 100%;
margin: 3em auto auto auto;
}

a[epub|type~="noteref"]{
Expand All @@ -104,8 +111,8 @@ section[epub|type~="imprint"]{

section[epub|type~="colophon"] header,
section[epub|type~="imprint"] header{
font-size: 0;
margin: 5% auto;
line-height: 0;
margin-top: 3em;
}

section[epub|type~="colophon"] h2,
Expand All @@ -119,7 +126,7 @@ img[epub|type~="z3998:publisher-logo"]{

section[epub|type~="colophon"] p,
section[epub|type~="imprint"] p{
margin: 1em auto;
margin: 1em auto 0 auto;
text-indent: 0;
}

Expand Down Expand Up @@ -169,3 +176,23 @@ section[epub|type~="copyright-page"] blockquote p span{
section[epub|type~="copyright-page"] blockquote br{
display: none;
}

@supports(display: flex){
section[epub|type~="imprint"]{
align-content: center;
display: flex;
flex-direction: column;
justify-content: center;
min-height: calc(98vh - 3em);
padding-top: 3em;
}

section[epub|type~="imprint"] header{
margin-bottom: 2em;
margin-top: 0;
}

img[epub|type~="z3998:publisher-logo"]{
max-width: 25vw;
}
}
28 changes: 0 additions & 28 deletions src/epub/css/local.css
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
@charset "utf-8";
@namespace epub "http://www.idpf.org/2007/ops";

[epub|type~="z3998:poem"] p{
text-align: left;
text-indent: 0;
}

[epub|type~="z3998:poem"] p > span{
display: block;
text-indent: -1em;
padding-left: 1em;
}

[epub|type~="z3998:poem"] p > span + br{
display: none;
}

[epub|type~="z3998:poem"] p + p{
margin-top: 1em;
}

[epub|type~="z3998:poem"] + p{
text-indent: 0;
}

p span.i0{
text-indent: -1em;
padding-left: 1em;
Expand All @@ -32,9 +9,4 @@ p span.i0{
p span.i1{
text-indent: -1em;
padding-left: 2em;
}

p span.i2{
text-indent: -1em;
padding-left: 3em;
}
2 changes: 1 addition & 1 deletion src/epub/text/chapter-1.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-1" epub:type="chapter">
<h3 align="center">Chapter 1</h3>
<h2 epub:type="title z3998:roman">I</h2>
<p>The cold passed reluctantly from the earth, and the retiring fogs revealed an army stretched out on the hills, resting. As the landscape changed from brown to green, the army awakened, and began to tremble with eagerness at the noise of rumors. It cast its eyes upon the roads, which were growing from long troughs of liquid mud to proper thoroughfares. A river, amber-tinted in the shadow of its banks, purled at the army’s feet; and at night, when the stream had become of a sorrowful blackness, one could see across it the red, eyelike gleam of hostile campfires set in the low brows of distant hills.</p>
<p>Once a certain tall soldier developed virtues and went resolutely to wash a shirt. He came flying back from a brook waving his garment bannerlike. He was swelled with a tale he had heard from a reliable friend, who had heard it from a truthful cavalryman, who had heard it from his trustworthy brother, one of the orderlies at division headquarters. He adopted the important air of a herald in red and gold.</p>
<p>“We’re goin’ t’ move t’morrah⁠—sure,” he said pompously to a group in the company street. “We’re goin’ ’way up the river, cut across, an’ come around in behint ’em.”</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-10.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-10" epub:type="chapter">
<h3 align="center">Chapter 10</h3>
<h2 epub:type="title z3998:roman">X</h2>
<p>The tattered man stood musing.</p>
<p>“Well, he was a reg’lar jim-dandy fer nerve, wa’n’t he,” said he finally in a little awestruck voice. “A reg’lar jim-dandy.” He thoughtfully poked one of the docile hands with his foot. “I wonner where he got ’is stren’th from? I never seen a man do like that before. It was a funny thing. Well, he was a reg’lar jim-dandy.”</p>
<p>The youth desired to screech out his grief. He was stabbed, but his tongue lay dead in the tomb of his mouth. He threw himself again upon the ground and began to brood.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-11.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-11" epub:type="chapter">
<h3 align="center">Chapter 11</h3>
<h2 epub:type="title z3998:roman">XI</h2>
<p>He became aware that the furnace roar of the battle was growing louder. Great blown clouds had floated to the still heights of air before him. The noise, too, was approaching. The woods filtered men and the fields became dotted.</p>
<p>As he rounded a hillock, he perceived that the roadway was now a crying mass of wagons, teams, and men. From the heaving tangle issued exhortations, commands, imprecations. Fear was sweeping it all along. The cracking whips bit and horses plunged and tugged. The white-topped wagons strained and stumbled in their exertions like fat sheep.</p>
<p>The youth felt comforted in a measure by this sight. They were all retreating. Perhaps, then, he was not so bad after all. He seated himself and watched the terror-stricken wagons. They fled like soft, ungainly animals. All the roarers and lashers served to help him to magnify the dangers and horrors of the engagement that he might try to prove to himself that the thing with which men could charge him was in truth a symmetrical act. There was an amount of pleasure to him in watching the wild march of this vindication.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-12.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-12" epub:type="chapter">
<h3 align="center">Chapter 12</h3>
<h2 epub:type="title z3998:roman">XII</h2>
<p>The column that had butted stoutly at the obstacles in the roadway was barely out of the youth’s sight before he saw dark waves of men come sweeping out of the woods and down through the fields. He knew at once that the steel fibers had been washed from their hearts. They were bursting from their coats and their equipments as from entanglements. They charged down upon him like terrified buffaloes.</p>
<p>Behind them blue smoke curled and clouded above the treetops, and through the thickets he could sometimes see a distant pink glare. The voices of the cannon were clamoring in interminable chorus.</p>
<p>The youth was horrorstricken. He stared in agony and amazement. He forgot that he was engaged in combating the universe. He threw aside his mental pamphlets on the philosophy of the retreated and rules for the guidance of the damned.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-13.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-13" epub:type="chapter">
<h3 align="center">Chapter 13</h3>
<h2 epub:type="title z3998:roman">XIII</h2>
<p>The youth went slowly toward the fire indicated by his departed friend. As he reeled, he bethought him of the welcome his comrades would give him. He had a conviction that he would soon feel in his sore heart the barbed missiles of ridicule. He had no strength to invent a tale; he would be a soft target.</p>
<p>He made vague plans to go off into the deeper darkness and hide, but they were all destroyed by the voices of exhaustion and pain from his body. His ailments, clamoring, forced him to seek the place of food and rest, at whatever cost.</p>
<p>He swung unsteadily toward the fire. He could see the forms of men throwing black shadows in the red light, and as he went nearer it became known to him in some way that the ground was strewn with sleeping men.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-14.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-14" epub:type="chapter">
<h3 align="center">Chapter 14</h3>
<h2 epub:type="title z3998:roman">XIV</h2>
<p>When the youth awoke it seemed to him that he had been asleep for a thousand years, and he felt sure that he opened his eyes upon an unexpected world. Gray mists were slowly shifting before the first efforts of the sun rays. An impending splendor could be seen in the eastern sky. An icy dew had chilled his face, and immediately upon arousing he curled farther down into his blanket. He stared for a while at the leaves overhead, moving in a heraldic wind of the day.</p>
<p>The distance was splintering and blaring with the noise of fighting. There was in the sound an expression of a deadly persistency, as if it had not began and was not to cease.</p>
<p>About him were the rows and groups of men that he had dimly seen the previous night. They were getting a last draught of sleep before the awakening. The gaunt, careworn features and dusty figures were made plain by this quaint light at the dawning, but it dressed the skin of the men in corpse-like hues and made the tangled limbs appear pulseless and dead. The youth started up with a little cry when his eyes first swept over this motionless mass of men, thick-spread upon the ground, pallid, and in strange postures. His disordered mind interpreted the hall of the forest as a charnel place. He believed for an instant that he was in the house of the dead, and he did not dare to move lest these corpses start up, squalling and squawking. In a second, however, he achieved his proper mind. He swore a complicated oath at himself. He saw that this somber picture was not a fact of the present, but a mere prophecy.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-15.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-15" epub:type="chapter">
<h3 align="center">Chapter 15</h3>
<h2 epub:type="title z3998:roman">XV</h2>
<p>The regiment was standing at order arms at the side of a lane, waiting for the command to march, when suddenly the youth remembered the little packet enwrapped in a faded yellow envelope which the loud young soldier with lugubrious words had entrusted to him. It made him start. He uttered an exclamation and turned toward his comrade.</p>
<p>“Wilson!”</p>
<p>“What?”</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-16.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-16" epub:type="chapter">
<h3 align="center">Chapter 16</h3>
<h2 epub:type="title z3998:roman">XVI</h2>
<p>A sputtering of musketry was always to be heard. Later, the cannon had entered the dispute. In the fog-filled air their voices made a thudding sound. The reverberations were continual. This part of the world led a strange, battleful existence.</p>
<p>The youth’s regiment was marched to relieve a command that had lain long in some damp trenches. The men took positions behind a curving line of rifle pits that had been turned up, like a large furrow, along the line of woods. Before them was a level stretch, peopled with short, deformed stumps. From the woods beyond came the dull popping of the skirmishers and pickets, firing in the fog. From the right came the noise of a terrific fracas.</p>
<p>The men cuddled behind the small embankment and sat in easy attitudes awaiting their turn. Many had their backs to the firing. The youth’s friend lay down, buried his face in his arms, and almost instantly, it seemed, he was in a deep sleep.</p>
Expand Down
5 changes: 3 additions & 2 deletions src/epub/text/chapter-17.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-17" epub:type="chapter">
<h3 align="center">Chapter 17</h3>
<h2 epub:type="title z3998:roman">XVII</h2>
<p>This advance of the enemy had seemed to the youth like a ruthless hunting. He began to fume with rage and exasperation. He beat his foot upon the ground, and scowled with hate at the swirling smoke that was approaching like a phantom flood. There was a maddening quality in this seeming resolution of the foe to give him no rest, to give him no time to sit down and think. Yesterday he had fought and had fled rapidly. There had been many adventures. For today he felt that he had earned opportunities for contemplative repose. He could have enjoyed portraying to uninitiated listeners various scenes at which he had been a witness or ably discussing the processes of war with other proved men. Too it was important that he should have time for physical recuperation. He was sore and stiff from his experiences. He had received his fill of all exertions, and he wished to rest.</p>
<p>But those other men seemed never to grow weary; they were fighting with their old speed. He had a wild hate for the relentless foe. Yesterday, when he had imagined the universe to be against him, he had hated it, little gods and big gods; today he hated the army of the foe with the same great hatred. He was not going to be badgered of his life, like a kitten chased by boys, he said. It was not well to drive men into final corners; at those moments they could all develop teeth and claws.</p>
<p>He leaned and spoke into his friend’s ear. He menaced the woods with a gesture. “If they keep on chasing us, by Gawd, they’d better watch out. Can’t stand TOO much.”</p>
Expand Down Expand Up @@ -39,7 +39,8 @@
<p>“You bet!”</p>
<br/>
<p>
<span>“A dog, a woman, an’ a walnut tree</span><br/>
<span>“A dog, a woman, an’ a walnut tree</span>
<br/>
<span class="i0">Th’ more yeh beat ’em, th’ better they be!</span>
</p>
<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-18.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-18" epub:type="chapter">
<h3 align="center">Chapter 18</h3>
<h2 epub:type="title z3998:roman">XVIII</h2>
<p>The ragged line had respite for some minutes, but during its pause the struggle in the forest became magnified until the trees seemed to quiver from the firing and the ground to shake from the rushing of men. The voices of the cannon were mingled in a long and interminable row. It seemed difficult to live in such an atmosphere. The chests of the men strained for a bit of freshness, and their throats craved water.</p>
<p>There was one shot through the body, who raised a cry of bitter lamentation when came this lull. Perhaps he had been calling out during the fighting also, but at that time no one had heard him. But now the men turned at the woeful complaints of him upon the ground.</p>
<p>“Who is it? Who is it?”</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-19.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-19" epub:type="chapter">
<h3 align="center">Chapter 19</h3>
<h2 epub:type="title z3998:roman">XIX</h2>
<p>The youth stared at the land in front of him. Its foliages now seemed to veil powers and horrors. He was unaware of the machinery of orders that started the charge, although from the corners of his eyes he saw an officer, who looked like a boy a-horseback, come galloping, waving his hat. Suddenly he felt a straining and heaving among the men. The line fell slowly forward like a toppling wall, and, with a convulsive gasp that was intended for a cheer, the regiment began its journey. The youth was pushed and jostled for a moment before he understood the movement at all, but directly he lunged ahead and began to run.</p>
<p>He fixed his eye upon a distant and prominent clump of trees where he had concluded the enemy were to be met, and he ran toward it as toward a goal. He had believed throughout that it was a mere question of getting over an unpleasant matter as quickly as possible, and he ran desperately, as if pursued for a murder. His face was drawn hard and tight with the stress of his endeavor. His eyes were fixed in a lurid glare. And with his soiled and disordered dress, his red and inflamed features surmounted by the dingy rag with its spot of blood, his wildly swinging rifle, and banging accouterments, he looked to be an insane soldier.</p>
<p>As the regiment swung from its position out into a cleared space the woods and thickets before it awakened. Yellow flames leaped toward it from many directions. The forest made a tremendous objection.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/epub/text/chapter-2.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-2" epub:type="chapter">
<h3 align="center">Chapter 2</h3>
<h2 epub:type="title z3998:roman">II</h2>
<p>The next morning the youth discovered that his tall comrade had been the fast-flying messenger of a mistake. There was much scoffing at the latter by those who had yesterday been firm adherents of his views, and there was even a little sneering by men who had never believed the rumor. The tall one fought with a man from Chatfield Corners and beat him severely.</p>
<p>The youth felt, however, that his problem was in no wise lifted from him. There was, on the contrary, an irritating prolongation. The tale had created in him a great concern for himself. Now, with the newborn question in his mind, he was compelled to sink back into his old place as part of a blue demonstration.</p>
<p>For days he made ceaseless calculations, but they were all wondrously unsatisfactory. He found that he could establish nothing. He finally concluded that the only way to prove himself was to go into the blaze, and then figuratively to watch his legs to discover their merits and faults. He reluctantly admitted that he could not sit still and with a mental slate and pencil derive an answer. To gain it, he must have blaze, blood, and danger, even as a chemist requires this, that, and the other. So he fretted for an opportunity.</p>
Expand Down
Loading

0 comments on commit 30d4af6

Please sign in to comment.