Use apostrophes instead of opening quotes for ’kay

This commit is contained in:
Domenic Denicola 2020-11-23 16:37:29 -05:00
commit 20d91d37df
2 changed files with 2 additions and 5 deletions

View file

@ -198,6 +198,7 @@ function getBodyXML(chapter, book, contentEl) {
xml = xml.replace(/””<\/p>/g, "”</p>"); xml = xml.replace(/””<\/p>/g, "”</p>");
xml = xml.replace(/^([^“]+?) ?”(?![ —<])/gm, "$1 “"); xml = xml.replace(/^([^“]+?) ?”(?![ —<])/gm, "$1 “");
xml = xml.replace(/(?<!“)<em>([A-Za-z]+),<\/em>(?!”| +[A-Za-z]+ thought)/, "<em>$1</em>,"); xml = xml.replace(/(?<!“)<em>([A-Za-z]+),<\/em>(?!”| +[A-Za-z]+ thought)/, "<em>$1</em>,");
xml = xml.replace(/‘([Kk])ay(?!’)/g, "’$1ay");
// Similar problems occur in Ward with <b> and <strong> as do in Worm with <em>s // Similar problems occur in Ward with <b> and <strong> as do in Worm with <em>s
xml = xml.replace(/<b \/>/g, ""); xml = xml.replace(/<b \/>/g, "");

View file

@ -346,7 +346,7 @@
"after": "in point: shazam" "after": "in point: shazam"
}, },
{ {
"before": "‘Kay", "before": "’Kay",
"after": "’kay" "after": "’kay"
} }
], ],
@ -405,10 +405,6 @@
"before": "guardian spoke, “You’d", "before": "guardian spoke, “You’d",
"after": "guardian spoke. “You’d" "after": "guardian spoke. “You’d"
}, },
{
"before": "‘Kay",
"after": "’Kay"
},
{ {
"before": "‘specially with", "before": "‘specially with",
"after": "’Specially with" "after": "’Specially with"