From 24b01e429254227cea3b9f321336bd8939cdb2d2 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Sat, 17 Oct 2020 20:16:02 -0400 Subject: [PATCH] Fix miscapitalizations of "ReSound" --- lib/convert.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/convert.js b/lib/convert.js index 4c94b6c..e1503cf 100644 --- a/lib/convert.js +++ b/lib/convert.js @@ -302,6 +302,9 @@ function getBodyXML(chapter, contentEl) { // Note that Ward contains much talk of "the clairvoyants", so we don't want to capitalize plurals. xml = xml.replace(/the clairvoyant([^s])/g, "the Clairvoyant$1"); + // ReSound's name is sometimes miscapitalized. The word is never used in a non-name context. + xml = xml.replace(/Resound/g, "ReSound"); + // This is sometimes missing its capitalization. xml = xml.replace(/the birdcage/g, "the Birdcage");