From 20d91d37df16d0a1b71e89d799b476ca2baecfcf Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 23 Nov 2020 16:37:29 -0500 Subject: [PATCH] =?UTF-8?q?Use=20apostrophes=20instead=20of=20opening=20qu?= =?UTF-8?q?otes=20for=20=E2=80=99kay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/convert-worker.js | 1 + lib/substitutions.json | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index e12de7d..74c9344 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -198,6 +198,7 @@ function getBodyXML(chapter, book, contentEl) { xml = xml.replace(/””<\/p>/g, "”

"); xml = xml.replace(/^([^“]+?) ?”(?![ —<])/gm, "$1 “"); xml = xml.replace(/(?([A-Za-z]+),<\/em>(?!”| +[A-Za-z]+ thought)/, "$1,"); + xml = xml.replace(/‘([Kk])ay(?!’)/g, "’$1ay"); // 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 28f0485..385a81b 100644 --- a/lib/substitutions.json +++ b/lib/substitutions.json @@ -346,7 +346,7 @@ "after": "in point: shazam" }, { - "before": "‘Kay", + "before": "’Kay", "after": "’kay" } ], @@ -405,10 +405,6 @@ "before": "guardian spoke, “You’d", "after": "guardian spoke. “You’d" }, - { - "before": "‘Kay", - "after": "’Kay" - }, { "before": "‘specially with", "after": "’Specially with"