Use apostrophes instead of opening quotes for ’kay
This commit is contained in:
parent
60709f54c2
commit
20d91d37df
2 changed files with 2 additions and 5 deletions
|
|
@ -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, "");
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue