From d12c48976bb5cf443fdf8214e61c0c53d3d50974 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Sun, 29 Nov 2020 16:55:34 -0500 Subject: [PATCH] Fix opening quotes inside quotes to apostrophes instead --- lib/convert-worker.js | 1 + lib/substitutions.json | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index 3f34d1c..bb0674b 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -205,6 +205,7 @@ function getBodyXML(chapter, book, contentEl) { xml = xml.replace(/,<\/em>/g, ","); xml = xml.replace(/,”<\/p>/g, ".”

"); xml = xml.replace(/

(.*),<\/p>/g, "

$1.

"); + xml = xml.replace(/‘(\w+)‘(\w+)’/g, "‘$1’$2’"); // Similar problems occur in Ward with and as do in Worm with s xml = xml.replace(//g, ""); diff --git a/lib/substitutions.json b/lib/substitutions.json index cfad210..0311867 100644 --- a/lib/substitutions.json +++ b/lib/substitutions.json @@ -4985,12 +4985,6 @@ "after": "discuss goals,” Jessica said, “we think" } ], - "https://www.parahumans.net/2018/05/29/eclipse-x-4/": [ - { - "before": "ma‘am", - "after": "ma’am" - } - ], "https://www.parahumans.net/2018/05/30/eclipse-x-5/": [ { "before": "no words. and there", @@ -6864,10 +6858,6 @@ "before": "inter-earth", "after": "inter-Earth" }, - { - "before": "‘can‘t’", - "after": "‘can’t’" - }, { "before": "The Western of the two half-castles", "after": "The western of the two half-castles"