Skip to content

Commit fb4eaf4

Browse files
committed
Fixed some formatting, and improved blockstyle plugin behaviour
1 parent cd1040d commit fb4eaf4

27 files changed

+102
-82
lines changed

cspell.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"Alderdice",
4646
"Alecto",
4747
"Aleister",
48-
"Alexx",
4948
"Algoa",
5049
"Alianora",
5150
"Alianore",
@@ -115,7 +114,6 @@
115114
"Averoigne",
116115
"Avgvst",
117116
"Avitu",
118-
"Awww",
119117
"Aziraphale",
120118
"Babd",
121119
"Bacchante",
@@ -161,7 +159,6 @@
161159
"Bituah",
162160
"Bizarro",
163161
"Bizarros",
164-
"blech",
165162
"Blinken",
166163
"bloodlust",
167164
"Blyenberch",
@@ -171,7 +168,6 @@
171168
"Bonchance",
172169
"Boneville",
173170
"booful",
174-
"Booful",
175171
"Boonville",
176172
"Borghal",
177173
"bossom",
@@ -187,7 +183,6 @@
187183
"Brevard",
188184
"Brobakk",
189185
"Brookner",
190-
"BROWNVM",
191186
"Bruells",
192187
"Brujeria",
193188
"Brust",
@@ -328,6 +323,7 @@
328323
"Desa",
329324
"dessine'e",
330325
"Dickon",
326+
"dieth",
331327
"digg'd",
332328
"Dimuzi",
333329
"Dippold",
@@ -581,7 +577,6 @@
581577
"Hirsch",
582578
"hissy",
583579
"Hitchin",
584-
"hmmmmmmm",
585580
"Hobbiton",
586581
"Hodgson",
587582
"Hoffmann",
@@ -642,6 +637,7 @@
642637
"Jarocha",
643638
"Jasinski",
644639
"JASINSKI",
640+
"Jazzercise",
645641
"Jeremiel",
646642
"Jessamy",
647643
"Jhemon",
@@ -1468,6 +1464,7 @@
14681464
"Winsor",
14691465
"wisewoman",
14701466
"Wissenschaft",
1467+
"witchmark",
14711468
"Witkin",
14721469
"Woch",
14731470
"Wolfman",
@@ -1506,10 +1503,15 @@
15061503
"Zwanger"
15071504
],
15081505
"ignoreWords": [
1509-
"ABAAABAB"
1506+
"ABAAABAB",
1507+
"Alexx",
1508+
"Aww",
1509+
"benjymous",
1510+
"blech",
1511+
"BROWNVM",
1512+
"hmmmmmmm",
1513+
"Walkin"
15101514
],
15111515
"import": [],
1512-
"files": [
1513-
"sandman/*.md"
1514-
]
1516+
"files": ["sandman/*.md"]
15151517
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"build": "honkit build",
44
"build-pdf": "honkit pdf ./ ./_publish/annotations.pdf",
55
"serve": "honkit serve",
6-
"spell": "npx cspell sandman",
6+
"spell": "npx cspell sandman/*.md",
77
"prettier": "npx prettier sandman/*.md -w"
88
},
99
"devDependencies": {

plugins/BlockClasses/index.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ var applyBlockquoteClass = function (page) {
77
$("blockquote").each(function () {
88
const blockquote = this;
99

10+
const replacement = $("<div></div>");
11+
1012
let addedClass = false;
1113
$(this)
1214
.find("p")
1315
.each(function () {
16+
const paragraph = this;
17+
18+
$(blockquote).remove(paragraph);
19+
1420
var data = $(this).contents()[0].data;
1521
if (data) {
1622
var check = data.trim();
@@ -20,14 +26,26 @@ var applyBlockquoteClass = function (page) {
2026
const m = regex.exec(check);
2127

2228
if (m) {
29+
30+
const newblock = $("<blockquote></blockquote>");
31+
newblock.addClass("classedBlock")
32+
33+
$(paragraph).wrap(newblock);
34+
35+
$(replacement).append(newblock);
36+
2337
const val = m[1];
24-
$(blockquote).addClass(val);
38+
$(newblock).addClass(val);
2539
$(this).contents()[0].data = data.replace(regex, "");
2640
addedClass = true;
41+
42+
replacement.append(newblock);
2743
}
2844
}
2945
});
30-
if (addedClass) $(this).addClass("classedBlock");
46+
if (addedClass) {
47+
$(blockquote).replaceWith(replacement);
48+
}
3149
});
3250

3351
page.content = $.html();

sandman/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Originally written, compiled and edited by Greg Morrow and David Goldfarb. Updated and revised edition by Richard Munn.
88

9-
This is the 'refreshed' Sandman Annotations (not to be confused with the hardback Annotated Sandman books published by DC themselves.) These annotations date back to the 80s-90s and were published usenet, Compuserve, Genie, and other services that have long been forgotten by the 21st century.
9+
This is the 'refreshed' Sandman Annotations (not to be confused with the hardback Annotated Sandman books published by DC themselves.) These annotations date back to the 80s-90s and were published usenet, Compuserve, Genie, and other services that have long been forgotten by the 21st century.
1010

1111
This is now licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/), which differs from the original licensing, but I hope follows the original spirit.
1212

@@ -15,25 +15,26 @@ This is now licensed under a [Creative Commons Attribution-NonCommercial-ShareAl
1515
#### Contributions
1616

1717
This is a living community document, and is open to edits and suggestions - these can be done by:
18+
1819
- Make a comment on [reddit](https://www.reddit.com/r/Sandman/), and tag me ([/u/benjymous](https://www.reddit.com/user/benjymous)) in to the discussion.
1920
- Raise an issue on the [github issues tracker](https://github.com/benjymous/annotations/issues).
2021
- Make the [edits yourself](https://github.com/benjymous/annotations/) and raise a pull request.
2122

2223
#### What needs doing?
2324

24-
- These annotations were largely written at the time the original issues were published, and so will explain references that might be obscure to an early 90s reader. Obviously time has passed since then, and there are likely _lots_ of references that may be baffling to someone in the 2020s. If you spot any of those, please see if you can add a comment.
25+
- These annotations were largely written at the time the original issues were published, and so will explain references that might be obscure to an early 90s reader. Obviously time has passed since then, and there are likely _lots_ of references that may be baffling to someone in the 2020s. If you spot any of those, please see if you can add a comment.
2526

2627
- The annotations are a bit unevenly edited in places - editing things to have a more passive voice might be a good idea.
2728

2829
- Check the editing/reformatting - the most recent version of the original text versions still live on the [MIT servers](http://theory.csail.mit.edu/ftp-data/pub/ftp/ftp/people/wald/sandman/) so it'd be good for a second set of eyes to check the translation from .txt to markdown hasn't mangled or lost anything important.
2930

30-
- Ideally someone should be able to read these annotations alongside their first ever read of the comic - we shouldn't assume people are coming to this after reading the whole thing. They might not have read anything yet, and want clarification on something in the Netflix show or Audible adaptation. This means we aught to be careful with spoilers, and try and edit out any that are already here.
31+
- Ideally someone should be able to read these annotations alongside their first ever read of the comic - we shouldn't assume people are coming to this after reading the whole thing. They might not have read anything yet, and want clarification on something in the Netflix show or Audible adaptation. This means we aught to be careful with spoilers, and try and edit out any that are already here.
3132

32-
- Originally these were just text files (they pre-date the world wide web, and html), so enriching the pages with photo references helps. If a real world person, place or thing is mentioned or depicted, it'd be nice to add some reference images. Likewise linking in wikipedia articles (or other reference material) would be helpful.
33+
- Originally these were just text files (they pre-date the world wide web, and html), so enriching the pages with photo references helps. If a real world person, place or thing is mentioned or depicted, it'd be nice to add some reference images. Likewise linking in wikipedia articles (or other reference material) would be helpful.
3334

34-
- Neil Gaiman has blogged, tweeted, given many interviews, and much more in the last ~30+ years. Adding any additional information from him would be really helpful.
35+
- Neil Gaiman has blogged, tweeted, given many interviews, and much more in the last ~30+ years. Adding any additional information from him would be really helpful.
3536

36-
- The annotations for the last 25-ish issues are much less detailed than the earlier ones. This seems to be when Greg Morrow (the original editor) stepped away.
37+
- The annotations for the last 25-ish issues are much less detailed than the earlier ones. This seems to be when Greg Morrow (the original editor) stepped away.
3738

3839
- They currently stop at Issue #75, and don't cover _Endless Nights_, _The Dream Hunters_ or _Overture_.
3940

sandman/sandman-how-met.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
> [marginThumb] ![](thumbnails/sandman-how-met/page01.jpg)
1111
12-
- #### Panel 1
12+
> [floatright width-30pc] ![How They Met Themselves](images/HowTheyMetThemselves.jpg)
1313
14-
> [floatright width-30pc shift-up] ![How They Met Themselves](images/HowTheyMetThemselves.jpg)
14+
- #### Panel 1
1515

1616
The drawing is "How They Met Themselves" by [Dante Gabriel Rossetti](https://en.wikipedia.org/wiki/Dante_Gabriel_Rossetti) after which this short story is named.
1717

sandman/sandman-vertigojam1.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,21 @@
77

88
**Note**: One of the few times The Sandman isn't lettered by Todd Klein.
99

10-
1110
### Page 1
1211

1312
> [marginThumb] ![page 1](thumbnails/sandman-vertigojam1/page01.jpg)
1413
1514
- #### Panels 1-3
1615

17-
Anyone fancy taking a stab at analyzing this dream? Attacked by giant faceless (brainless?) women ridden by wolves?
16+
Anyone fancy taking a stab at analyzing this dream? Attacked by giant faceless (brainless?) women ridden by wolves?
1817

1918
### Page 2
2019

2120
> [marginThumb] ![page 2](thumbnails/sandman-vertigojam1/page02.jpg)
2221
2322
- #### Panel 5
2423

25-
Everyone has a book inside them. And so everyone has a book in Lucien's Library.
24+
Everyone has a book inside them. And so everyone has a book in Lucien's Library.
2625

2726
- #### Panel 6
2827

sandman/sandman.02.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@
225225

226226
So that's why there's bad blood I guess. Not between Morpheus and all incarnations of the Three (well…), but the Hecateae specifically. How and where he should have helped—who knows, but god(esses) are born and die in the Dreaming, so to speak, so it would probably always be possible to find a connection that way. It was probably just to tie everything that was happening in the wider DC Universe at the time together.
227227

228-
229228
### Page 21
230229

231230
> [marginThumb] ![page 21](thumbnails/sandman.02/page21.jpg)

sandman/sandman.05.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143

144144
- #### Panel 4
145145

146-
[Hermeticism](https://en.wikipedia.org/wiki/Hermeticism) is a system of beliefs based on the teachings of Hermes Trismegistus, a mythical figure who combined the aspects of the Greek god Hermes and the Egyptian god Thoth. It involves topics such as magic, astrology, alchemy, and spiritual development.
146+
[Hermeticism](https://en.wikipedia.org/wiki/Hermeticism) is a system of beliefs based on the teachings of Hermes Trismegistus, a mythical figure who combined the aspects of the Greek god Hermes and the Egyptian god Thoth. It involves topics such as magic, astrology, alchemy, and spiritual development.
147147

148148
### Page 17
149149

sandman/sandman.13.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Neil Gaiman visited Perth in April 1996, and said there was a major anachronism
333333
334334
- #### Panel 4
335335

336-
Lovely slang here. According to [Green's Dictionary of Slang](https://greensdictofslang.com/entry/e2a67va), **chickaleary** is an adjective that means **artful, knowing**. It is usually used as chickaleary cove, which means **an artful, knowing, 'clever' fellow**. The word may have originated from a combination of cheeky, leery and cove, and was popularized by a music-hall song.
336+
Lovely slang here. According to [Green's Dictionary of Slang](https://greensdictofslang.com/entry/e2a67va), **chickaleary** is an adjective that means **artful, knowing**. It is usually used as chickaleary cove, which means **an artful, knowing, 'clever' fellow**. The word may have originated from a combination of cheeky, leery and cove, and was popularized by a music-hall song.
337337

338338
- #### Panel 5
339339

sandman/sandman.14.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@
275275

276276
The song is "[Wild Thing](https://www.youtube.com/watch?v=gSWInYFVksg)", by the Troggs.
277277

278-
279278
### Page 25
280279

281280
> [marginThumb] ![page 25](thumbnails/sandman.14/page25.jpg)
@@ -318,7 +317,7 @@
318317
319318
- #### left top
320319

321-
The original script said _"I used to masturbate..."_ but this was changed. According to The Sandman Companion, Karen Berger told him _"People don't masturbate in the DC Universe."_ This was restored in the Audible version.
320+
The original script said _"I used to masturbate..."_ but this was changed. According to The Sandman Companion, Karen Berger told him _"People don't masturbate in the DC Universe."_ This was restored in the Audible version.
322321

323322
- #### middle top.
324323

@@ -407,4 +406,4 @@
407406
- Beth Winter <renfri@astercity.net> for the Don't look now reference.
408407
- bignickl@swbell.net noted Chris Carter's cameo.
409408
- Ralf Hildebrandt added more details.
410-
- Richard Munn added details too.
409+
- Richard Munn added details too.

0 commit comments

Comments
 (0)