From ff09d1fd76f9efc255faf0d610c0538ed26d53ce Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Sat, 31 Oct 2020 17:41:13 -0400 Subject: [PATCH] Always capitalize "the Megalopolis" --- lib/convert-worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index 51d5d61..086745d 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -387,6 +387,7 @@ function getBodyXML(chapter, book, contentEl) { xml = xml.replace(/(Lord|Slater) street/g, "$1 Street"); xml = xml.replace(/(Hollow|Cedar) point/g, "$1 Point"); xml = xml.replace(/(Norwalk|Fenway|Stratford) station/g, "$1 Station"); + xml = xml.replace(/the megalopolis/g, "the Megalopolis"); // These are usually not italicized, but sometimes are. Other foreign-language names (like Yàngbǎn) are not // italicized, so we go in the direction of removing the italics.