Un-italicize various commas
This commit is contained in:
parent
b017ab54d1
commit
b20182ad0d
2 changed files with 4 additions and 11 deletions
|
|
@ -197,6 +197,7 @@ function getBodyXML(chapter, book, contentEl) {
|
||||||
xml = xml.replace(/I”(m|ll)/g, "I’$1");
|
xml = xml.replace(/I”(m|ll)/g, "I’$1");
|
||||||
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>,");
|
||||||
|
|
||||||
// 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, "");
|
||||||
|
|
|
||||||
|
|
@ -956,7 +956,7 @@
|
||||||
"after": "CD-6.</em></p>"
|
"after": "CD-6.</em></p>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"before": "<em>Narwhal,</em>",
|
"before": "<em>Narwhal</em>,",
|
||||||
"after": "Narwhal,"
|
"after": "Narwhal,"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -5677,10 +5677,6 @@
|
||||||
"before": "assistant Warden",
|
"before": "assistant Warden",
|
||||||
"after": "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>?",
|
"before": "<em>What got into you</em>?",
|
||||||
"after": "<em>What got into you?</em>"
|
"after": "<em>What got into you?</em>"
|
||||||
|
|
@ -5714,10 +5710,6 @@
|
||||||
{
|
{
|
||||||
"before": "finds it’s root",
|
"before": "finds it’s root",
|
||||||
"after": "finds its root"
|
"after": "finds its root"
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": "they’re <em>Valkyrie,</em> Crystal",
|
|
||||||
"after": "they’re <em>Valkyrie</em>, Crystal"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"https://www.parahumans.net/2018/10/23/polarize-10-1/": [
|
"https://www.parahumans.net/2018/10/23/polarize-10-1/": [
|
||||||
|
|
@ -7073,8 +7065,8 @@
|
||||||
"after": "Your issue with Dad"
|
"after": "Your issue with Dad"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"before": "My boss is-was <em>Narwhal,</em> mom",
|
"before": "My boss is-was",
|
||||||
"after": "My boss is—was <em>Narwhal</em>, Mom"
|
"after": "My boss is—was"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"before": "he mom shook her head",
|
"before": "he mom shook her head",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue