From 15e34e47a316d616acd890ddd3b3be7eb736b9cc Mon Sep 17 00:00:00 2001
From: Domenic Denicola
Date: Sat, 14 Nov 2020 17:00:06 -0500
Subject: [PATCH] Fix double-periods in Ward
It appears all the ones in Worm, at least detectable via this pattern, were already caught.
---
lib/convert-worker.js | 1 +
lib/substitutions.json | 42 ------------------------------------------
2 files changed, 1 insertion(+), 42 deletions(-)
diff --git a/lib/convert-worker.js b/lib/convert-worker.js
index 8d73a55..0b7a59c 100644
--- a/lib/convert-worker.js
+++ b/lib/convert-worker.js
@@ -219,6 +219,7 @@ function getBodyXML(chapter, book, contentEl) {
xml = xml.replace(/ \. /g, ". ");
xml = xml.replace(/ \.<\/p>/g, ".
");
xml = xml.replace(/\.\.\./g, "…");
+ xml = xml.replace(/\.\. {2}/g, ". ");
// Fix extra spaces
xml = xml.replace(/ ? <\/p>/g, "");
diff --git a/lib/substitutions.json b/lib/substitutions.json
index 6aa1e31..eb74acf 100644
--- a/lib/substitutions.json
+++ b/lib/substitutions.json
@@ -2322,16 +2322,6 @@
"after": "this,” Regent said, “I"
}
],
- "https://parahumans.wordpress.com/2012/11/03/colony-15-6/": [
- {
- "before": "M.O..",
- "after": "M.O."
- },
- {
- "before": "tearing flesh..",
- "after": "tearing flesh."
- }
- ],
"https://parahumans.wordpress.com/2012/11/06/colony-15-7/": [
{
"before": "this sort of resistance.",
@@ -2401,10 +2391,6 @@
}
],
"https://parahumans.wordpress.com/2012/11/24/monarch-16-1/": [
- {
- "before": "A.I..",
- "after": "A.I."
- },
{
"before": "; Nobody",
"after": "; nobody"
@@ -2727,10 +2713,6 @@
}
],
"https://parahumans.wordpress.com/2013/02/05/monarch-18-6/": [
- {
- "before": "M.M..",
- "after": "M.M."
- },
{
"before": "‘okay’",
"after": "‘OK’",
@@ -3544,12 +3526,6 @@
"after": "kill all of the masters that are generating"
}
],
- "https://parahumans.wordpress.com/2013/08/03/sting-26-6/": [
- {
- "before": "canals..",
- "after": "canals."
- }
- ],
"https://parahumans.wordpress.com/2013/08/06/interlude-26a/": [
{
"before": "city, Golem thought.",
@@ -3638,12 +3614,6 @@
"after": "said. “But"
}
],
- "https://parahumans.wordpress.com/2013/08/22/extinction-27-4/": [
- {
- "before": "pattern..",
- "after": "pattern."
- }
- ],
"https://parahumans.wordpress.com/2013/08/24/extinction-27-5/": [
{
"before": "around around",
@@ -5769,10 +5739,6 @@
"before": "we should get going",
"after": "We should get going"
},
- {
- "before": "clean her stuff.. She’ll be out soon",
- "after": "clean her stuff. She’ll be out soon"
- },
{
"before": "finger—and thumb-rings",
"after": "finger- and thumb-rings"
@@ -6032,20 +5998,12 @@
"before": "…Delivering my coup de grace",
"after": "…delivering my coup de grace"
},
- {
- "before": "G.G..",
- "after": "G.G."
- },
{
"before": "Flash Gun",
"after": "flash gun"
}
],
"https://www.parahumans.net/2018/12/29/interlude-11-a/": [
- {
- "before": "D.J..",
- "after": "D.J."
- },
{
"before": "Chiet",
"after": "Cheit"