diff --git a/lib/convert-worker.js b/lib/convert-worker.js index 4c8e5c9..1cd668f 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -302,6 +302,9 @@ function fixTruncatedWords(xml) { // Short for "Birdcage" xml = xml.replace(/[‘’][Cc]age(?![a-z])/g, "’Cage"); + // We can't do "’Clear" (short for Crystalclear) here because it appears too much as a normal word preceded by an + // open quote, so we do that in substitutions.json. + return xml; } @@ -396,6 +399,7 @@ function enDashJointNames(xml) { // Joint names should use en dashes xml = xml.replace(/Dallon-Pelham/g, "Dallon–Pelham"); xml = xml.replace(/Bet-Gimel/g, "Bet–Gimel"); + xml = xml.replace(/Cheit-Gimel/g, "Bet–Gimel"); xml = xml.replace(/Tristan-Capricorn/g, "Tristan–Capricorn"); xml = xml.replace(/Capricorn-Byron/g, "Capricorn–Byron"); xml = xml.replace(/Tristan-Byron/g, "Tristan–Byron"); @@ -417,6 +421,8 @@ function enDashJointNames(xml) { xml = xml.replace(/Crawler-Breed/g, "Crawler–Breed"); xml = xml.replace(/Simurgh-Myrddin-plant/g, "Simurgh–Myrddin–plant"); xml = xml.replace(/Armsmaster-Defiant/g, "Armsmaster–Defiant"); + xml = xml.replace(/([Aa])gent-parahuman/g, "$1gent–parahuman"); + xml = xml.replace(/([Pp])arahuman-agent/g, "$1arahuman–agent"); return xml; } @@ -425,7 +431,7 @@ function fixPossessives(xml) { // Fix possessive of names ending in "s". xml = xml.replace( // eslint-disable-next-line max-len - /(?". @@ -525,6 +526,11 @@ function fixCapitalization(xml, book) { "$1–$2" ); + // Capitalization is inconsistent, but shard names seems to usually be capitalized. + xml = xml.replace(/Grasping self/g, "Grasping Self"); + xml = xml.replace(/Cloven stranger/g, "Cloven Stranger"); + xml = xml.replace(/Princess shaper/g, "Princess Shaper"); + // Place names need to always be capitalized xml = xml.replace(/North end/g, "North End"); xml = xml.replace(/(Stonemast|Shale) avenue/g, "$1 Avenue"); diff --git a/lib/substitutions.json b/lib/substitutions.json index 8249bd6..a9ee5de 100644 --- a/lib/substitutions.json +++ b/lib/substitutions.json @@ -4162,6 +4162,10 @@ { "before": "on the other earth", "after": "on the other Earth" + }, + { + "before": "name? did it start", + "after": "name? Did it start" } ], "https://parahumans.wordpress.com/2013/10/29/30-7/": [ @@ -6227,6 +6231,10 @@ { "before": "apparently I", "after": "apparently I" + }, + { + "before": "Hey Little V", + "after": "Hey little V" } ], "https://www.parahumans.net/2019/01/29/blinding-11-10/": [ @@ -6272,7 +6280,7 @@ }, { "before": "Go you, Little V.", - "after": "Go you, Little V." + "after": "Go you, little V." }, { "before": "the King on the chess board", @@ -6657,10 +6665,6 @@ { "before": "For some of the heartbroken", "after": "For some of the Heartbroken" - }, - { - "before": "agent-parahuman", - "after": "agent–parahuman" } ], "https://www.parahumans.net/2019/04/20/black-13-6/": [ @@ -7556,36 +7560,172 @@ { "before": "Some—many- were unwillingly", "after": "Some—many—were unwillingly" + }, + { + "before": "looking down at my hand at her arm and my hand", + "after": "looking down at her arm and my hand" + }, + { + "before": "more more thing hanging over our heads", + "after": "one more thing hanging over our heads" + }, + { + "before": "my mothers cheeks", + "after": "my mother’s cheeks" + }, + { + "before": "—Understand, please", + "after": "—understand, please" + }, + { + "before": "“Victoria,” Crystal’s voice was gentle", + "after": "“Victoria.” Crystal’s voice was gentle" } ], "https://www.parahumans.net/2019/10/05/sundown-17-2/": [ { "before": "egg for Crystal and mom", "after": "egg for Crystal and Mom" + }, + { + "before": "
Me:
",
+ "after": "
Me:
"
+ },
+ {
+ "before": "
Vista (Little V):
",
+ "after": "
Vista (Little V):
"
+ },
+ {
+ "before": "few minutes of peace, damn it.—",
+ "after": "few minutes of peace, damn it—"
+ },
+ {
+ "regExp": "‘Clear",
+ "replacement": "’Clear"
}
],
"https://www.parahumans.net/2019/10/08/sundown-17-3/": [
{
"before": "say, Math class",
"after": "say, math class"
+ },
+ {
+ "before": "hang outs",
+ "after": "hangouts"
+ },
+ {
+ "before": "‘",
+ "after": "’"
+ },
+ {
+ "before": "“—Which I’m not.”",
+ "after": "“—which I’m not.”"
+ },
+ {
+ "before": "Vista for the kid’s sake",
+ "after": "Vista for the kids’ sake"
+ },
+ {
+ "before": "Day to day activities",
+ "after": "Day-to-day activities"
+ },
+ {
+ "before": "tower crescent avenue",
+ "after": "Tower Crescent Avenue"
+ },
+ {
+ "before": "all had to deal with ‘heavy’.",
+ "after": "all had to deal with ‘heavy’.”"
+ },
+ {
+ "before": "stuff?” I spoke up, “it get into that control",
+ "after": "stuff?” I spoke up. “It gets into that control"
+ },
+ {
+ "before": "talked to me a like",
+ "after": "talked to me like"
+ },
+ {
+ "before": "call me Big V",
+ "after": "call me big V"
}
],
"https://www.parahumans.net/2019/10/12/sundown-17-4/": [
{
"before": "on resisting Master influence",
"after": "on resisting master influence"
+ },
+ {
+ "before": "CDs and Vinyls",
+ "after": "CDs and vinyls"
+ },
+ {
+ "before": "“P.R.T.”",
+ "after": "“PRT.”"
+ },
+ {
+ "before": "second or third string Wardens",
+ "after": "second- or third-string Wardens"
+ },
+ {
+ "before": "intern level clerks",
+ "after": "intern-level clerks"
+ },
+ {
+ "before": "half way",
+ "after": "halfway"
+ },
+ {
+ "before": "her tone didn’t soft",
+ "after": "her tone didn’t soften"
+ },
+ {
+ "before": "Jessica, Mr…",
+ "after": "Jessica, Mr.…"
+ },
+ {
+ "before": "—Captive",
+ "after": "—captive"
+ },
+ {
+ "before": "come from? what language",
+ "after": "come from? What language"
}
],
"https://www.parahumans.net/2019/10/15/sundown-17-5/": [
{
"before": "Is mom walking without difficulty",
"after": "Is Mom walking without difficulty"
+ },
+ {
+ "before": "Through valkyrie",
+ "after": "Through Valkyrie"
+ },
+ {
+ "before": "“‘Lo.”",
+ "after": "“’Lo.”"
}
],
"https://www.parahumans.net/2019/10/19/sundown-17-6/": [
{
"before": "Probably dad",
"after": "Probably Dad"
+ },
+ {
+ "before": "and no and no rejiggered rat",
+ "after": "and no rejiggered rat"
+ },
+ {
+ "before": "Harder headed",
+ "after": "Harder-headed"
+ },
+ {
+ "before": "you proved my sister right? Tired,",
+ "after": "you proved my sister right? Tired,"
+ },
+ {
+ "before": "boundary,” He whispered",
+ "after": "boundary,” he whispered"
}
],
"https://www.parahumans.net/2019/10/22/sundown-17-7/": [
@@ -7596,6 +7736,10 @@
{
"before": "Golem explained