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"