Skip to content

Commit a0e4969

Browse files
committed
Remove most corrections from Worm Interlude 19.y
This chapter is almost entirely a messageboard conversation, so we don't want to standardize spelling, fix em dashes, etc.
1 parent cc37ce9 commit a0e4969

File tree

4 files changed

+31
-20
lines changed

4 files changed

+31
-20
lines changed

book-data/glow-worm.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,47 +25,56 @@ module.exports = {
2525
{
2626
url: "https://www.parahumans.net/2017/10/21/glow-worm-0-1/",
2727
simplifiedTitle: "1",
28-
characterNamesTitle: "Point_Me_@_The_Sky"
28+
characterNamesTitle: "Point_Me_@_The_Sky",
29+
mostlyMessageboard: true
2930
},
3031
{
3132
url: "https://www.parahumans.net/2017/10/24/glow-worm-0-2/",
3233
simplifiedTitle: "2",
33-
characterNamesTitle: "Capricorn"
34+
characterNamesTitle: "Capricorn",
35+
mostlyMessageboard: true
3436
},
3537
{
3638
url: "https://www.parahumans.net/2017/10/26/glow-worm-0-3/",
3739
simplifiedTitle: "3",
38-
characterNamesTitle: "Mangled_Wings"
40+
characterNamesTitle: "Mangled_Wings",
41+
mostlyMessageboard: true
3942
},
4043
{
4144
url: "https://www.parahumans.net/2017/10/28/glow-worm-0-4/",
4245
simplifiedTitle: "4",
43-
characterNamesTitle: "of5"
46+
characterNamesTitle: "of5",
47+
mostlyMessageboard: true
4448
},
4549
{
4650
url: "https://www.parahumans.net/2017/10/31/glow-worm-0-5/",
4751
simplifiedTitle: "5",
48-
characterNamesTitle: "Point_Me_@_The_Sky, part 2"
52+
characterNamesTitle: "Point_Me_@_The_Sky, part 2",
53+
mostlyMessageboard: true
4954
},
5055
{
5156
url: "https://www.parahumans.net/2017/10/31/glow-worm-0-6/",
5257
simplifiedTitle: "6",
53-
characterNamesTitle: "Questionable_Cephalopod"
58+
characterNamesTitle: "Questionable_Cephalopod",
59+
mostlyMessageboard: true
5460
},
5561
{
5662
url: "https://www.parahumans.net/2017/11/02/glow-worm-0-7/",
5763
simplifiedTitle: "7",
58-
characterNamesTitle: "Heart_Shaped_Pupil"
64+
characterNamesTitle: "Heart_Shaped_Pupil",
65+
mostlyMessageboard: true
5966
},
6067
{
6168
url: "https://www.parahumans.net/2017/11/04/glow-worm-0-8/",
6269
simplifiedTitle: "8",
63-
characterNamesTitle: "Space_Squid"
70+
characterNamesTitle: "Space_Squid",
71+
mostlyMessageboard: true
6472
},
6573
{
6674
url: "https://www.parahumans.net/2017/11/07/glow-worm-0-9/",
6775
simplifiedTitle: "9",
68-
characterNamesTitle: "Point_Me_@_The_Sky, part 3"
76+
characterNamesTitle: "Point_Me_@_The_Sky, part 3",
77+
mostlyMessageboard: true
6978
}
7079
]
7180
}

book-data/worm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,8 @@ module.exports = {
10071007
{
10081008
url: "https://parahumans.wordpress.com/2013/03/16/interlude-19-y/",
10091009
simplifiedTitle: "Interlude II",
1010-
characterNamesTitle: "Interlude: XxVoid_CowboyxX"
1010+
characterNamesTitle: "Interlude: XxVoid_CowboyxX",
1011+
mostlyMessageboard: true
10111012
},
10121013
{
10131014
url: "https://parahumans.wordpress.com/2013/03/19/interlude-19/",

lib/convert-worker.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ function getBodyXML(chapter, bookTitle, chapterSubstitutions, contentEl) {
278278
// This needs to happen before other name-related fixes.
279279
xml = standardizeNames(xml);
280280

281-
// Glow-worm is a bunch of people posting online, so they rarely use proper punctuation or standardized spelling, etc.
282-
if (bookTitle !== "Glow-worm") {
281+
// Users on messageboards rarely use proper punctuation or standardized spelling, etc. Leave most stuff as-is.
282+
if (!chapter.mostlyMessageboard) {
283283
xml = fixTruncatedWords(xml);
284284
xml = fixDialogueTags(xml);
285285
xml = fixForeignNames(xml);
@@ -291,7 +291,7 @@ function getBodyXML(chapter, bookTitle, chapterSubstitutions, contentEl) {
291291
xml = standardizeSpellings(xml);
292292
xml = fixHyphens(xml);
293293
xml = fixCaseNumbers(xml);
294-
xml = fixClassNames(xml, chapter.url);
294+
xml = fixClassNames(xml);
295295
}
296296
xml = cleanSceneBreaks(xml);
297297
xml = fixParahumansOnline(xml);
@@ -1134,7 +1134,7 @@ function fixCaseNumbers(xml) {
11341134
return xml;
11351135
}
11361136

1137-
function fixClassNames(xml, chapterURL) {
1137+
function fixClassNames(xml) {
11381138
// Class names are very inconsistent:
11391139
// * 9 class S
11401140
// * 15 class-S
@@ -1143,12 +1143,9 @@ function fixClassNames(xml, chapterURL) {
11431143
// We standardize on Class-S when used as an adjective, Class S when used as a noun. The heuristic
11441144
// that works for the book is that if it's followed by a period, it's a noun.
11451145

1146-
// Don't correct the messageboard chapter, as it's just informal typing.
1147-
if (chapterURL !== "https://parahumans.wordpress.com/2013/03/16/interlude-19-y/") {
1148-
xml = xml.replace(/\b[Cc]lass[ \-](S|A|B|C|D)\b/vg, "Class-$1");
1149-
xml = xml.replace(/\bClass-(S|A|B|C|D)\./vg, "Class $1.");
1150-
xml = xml.replace(/\bClass-(S|A|B|C|D)-\b/vg, "Class-$1 ");
1151-
}
1146+
xml = xml.replace(/\b[Cc]lass[ \-](S|A|B|C|D)\b/vg, "Class-$1");
1147+
xml = xml.replace(/\bClass-(S|A|B|C|D)\./vg, "Class $1.");
1148+
xml = xml.replace(/\bClass-(S|A|B|C|D)-\b/vg, "Class-$1 ");
11521149

11531150
return xml;
11541151
}

substitutions/worm.subs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4977,6 +4977,10 @@
49774977
+ Unfortunate Tinker
49784978
# See convert-worker.js; this corrects an over-correction
49794979

4980+
- Her parents – did they know?
4981+
+ Her parents—did they know?
4982+
# This would normally be taken care of by the general em dash fixing code, but that's turned off for this mostly-messageboard chapter.
4983+
49804984

49814985
@ https://parahumans.wordpress.com/2013/03/19/interlude-19/
49824986
- white noise that had subsumed her her thoughts when

0 commit comments

Comments
 (0)