diff --git a/lib/convert.js b/lib/convert.js index e1503cf..5e702c8 100644 --- a/lib/convert.js +++ b/lib/convert.js @@ -305,6 +305,10 @@ function getBodyXML(chapter, contentEl) { // ReSound's name is sometimes miscapitalized. The word is never used in a non-name context. xml = xml.replace(/Resound/g, "ReSound"); + // "patrol block" is capitalized three different ways: "patrol block", "Patrol block", and "Patrol Block". I can see + // arguments for any of them, so let's go with the most prevalent: "patrol block". + xml = xml.replace(/([^ ]) Patrol (?:B|b)lock/g, "$1 patrol block"); + // This is sometimes missing its capitalization. xml = xml.replace(/the birdcage/g, "the Birdcage");