Un-italicize various commas

This commit is contained in:
Domenic Denicola 2020-11-14 20:21:26 -05:00
commit b20182ad0d
2 changed files with 4 additions and 11 deletions

View file

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

View file

@ -956,7 +956,7 @@
"after": "CD-6.</em></p>"
},
{
"before": "<em>Narwhal,</em>",
"before": "<em>Narwhal</em>,",
"after": "Narwhal,"
},
{
@ -5677,10 +5677,6 @@
"before": "assistant Warden",
"after": "assistant warden"
},
{
"before": "behind those things was <em>By,</em>",
"after": "behind those things was <em>By</em>,"
},
{
"before": "<em>What got into you</em>?",
"after": "<em>What got into you?</em>"
@ -5714,10 +5710,6 @@
{
"before": "finds its root",
"after": "finds its root"
},
{
"before": "theyre <em>Valkyrie,</em> Crystal",
"after": "theyre <em>Valkyrie</em>, Crystal"
}
],
"https://www.parahumans.net/2018/10/23/polarize-10-1/": [
@ -7073,8 +7065,8 @@
"after": "Your issue with Dad"
},
{
"before": "My boss is-was <em>Narwhal,</em> mom",
"after": "My boss is—was <em>Narwhal</em>, Mom"
"before": "My boss is-was",
"after": "My boss is—was"
},
{
"before": "he mom shook her head",