diff --git a/lib/convert-worker.js b/lib/convert-worker.js index f69df99..4fac1b9 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -196,6 +196,7 @@ function getBodyXML(chapter, book, contentEl) { fixEms(); fixQuotesAndApostrophes(); fixEms(); + xml = xml.replace(/‘([^<]+)<\/em>‘/g, "‘$1’"); xml = xml.replace(/I”m/g, "I’m"); // Similar problems occur in Ward with and as do in Worm with s diff --git a/lib/substitutions.json b/lib/substitutions.json index ef2bc4f..5ddd4c0 100644 --- a/lib/substitutions.json +++ b/lib/substitutions.json @@ -2222,8 +2222,8 @@ ], "https://parahumans.wordpress.com/2012/09/15/prey-14-4/": [ { - "before": "a ‘No, you just told me.‘, but", - "after": "a “No, you just told me,” but" + "before": "a ‘No, you just told me.’, but", + "after": "a ‘No, you just told me,’ but" }, { "before": "Amy,” Tattletale said. “But", @@ -3749,14 +3749,6 @@ "before": "I’m not? Fuck. There’s", "after": "I’m not? Fuck. There’s" }, - { - "before": "‘Freud‘, and", - "after": "‘Freud’, and" - }, - { - "before": "‘who knows?‘", - "after": "‘who knows?’" - }, { "before": "I suspect It’s a", "after": "I suspect it’s a" @@ -4599,10 +4591,6 @@ { "before": "‘Won’t", "after": "‘Won’t" - }, - { - "before": "you the number‘", - "after": "you the number’" } ], "https://www.parahumans.net/2018/02/22/shade-interlude-4c/": [ @@ -5593,10 +5581,6 @@ { "before": "for you.", "after": "for you." - }, - { - "before": "Why ‘inflict‘", - "after": "Why ‘inflict’" } ], "https://www.parahumans.net/2018/09/25/gleaming-9-10/": [