diff --git a/lib/convert.js b/lib/convert.js index 96a20e2..60c2d9c 100644 --- a/lib/convert.js +++ b/lib/convert.js @@ -156,6 +156,7 @@ function getBodyXml(chapter, contentEl) { xml = xml.replace(/(!|\?|\.) <\/em><\/p>/g, "$1

"); // Fix recurring poor quotes and apostrophes + xml = xml.replace(/

”/g, "

“"); xml = xml.replace(/“\s*<\/p>/g, "”

"); xml = xml.replace(/“\s*<\/em><\/p>/g, "”

"); xml = xml.replace(/‘\s*<\/p>/g, "’

"); diff --git a/lib/substitutions.json b/lib/substitutions.json index 2a9c770..0737a2f 100644 --- a/lib/substitutions.json +++ b/lib/substitutions.json @@ -1,10 +1,20 @@ { "https://parahumans.wordpress.com/2011/08/06/interlude-2/": [ + { + "before": "sue you, he gasped", + "after": "sue you,” he gasped" + }, { "before": "principles, Glory", "after": "principles, Glory" } ], + "https://parahumans.wordpress.com/2011/09/13/agitation-3-11/": [ + { + "before": "weapon of all,“ Tattletale purred", + "after": "weapon of all,” Tattletale purred" + } + ], "https://parahumans.wordpress.com/2011/12/03/hive-5-9/": [ { "before": "insult. An excuse to trounce me physically.", @@ -29,12 +39,24 @@ "after": "was… how" } ], + "https://parahumans.wordpress.com/2012/07/03/plague-12-3/": [ + { + "before": "Noelle, “ Trickster said", + "after": "Noelle,” Trickster said" + } + ], "https://parahumans.wordpress.com/2012/08/11/snare-13-5/": [ { "before": "similar. ", "after": "similar. " } ], + "https://parahumans.wordpress.com/2012/08/18/snare-13-7/": [ + { + "before": "three…“ My swarm", + "after": "three…” My swarm" + } + ], "https://parahumans.wordpress.com/2012/09/11/prey-14-3/": [ { "before": "truck reached
\nthe other Nine", @@ -237,6 +259,10 @@ { "before": "they did, but how we dealt", "after": "they did, but how we dealt" + }, + { + "before": "That, Tattletale said", + "after": "That,” Tattletale said" } ], "https://parahumans.wordpress.com/2013/03/16/interlude-19-y/": [ @@ -289,6 +315,10 @@ { "before": "said, “Is to set", "after": "said, “is to set" + }, + { + "before": "But.“ He", + "after": "But.” He" } ], "https://parahumans.wordpress.com/2013/05/18/interlude-22/": [