De-capitalize "flock" to match prevailing usage
This commit is contained in:
parent
26a2b9c9b5
commit
b652e3812b
1 changed files with 6 additions and 1 deletions
|
|
@ -471,7 +471,7 @@ function fixCapitalization(xml, book) {
|
|||
// This occurs enough times it's better to do here than in one-off fixes. We correct the single instance where
|
||||
// it's incorrect to capitalize in the one-off fixes.
|
||||
// Note that Ward contains much talk of "the clairvoyants", so we don't want to capitalize plurals.
|
||||
xml = xml.replace(/([Tt])he clairvoyant([^s])/g, "$1he Clairvoyant$2");
|
||||
xml = xml.replace(/([Tt])he clairvoyant(?!s)/g, "$1he Clairvoyant");
|
||||
|
||||
// ReSound's name is sometimes miscapitalized. The word is never used in a non-name context.
|
||||
xml = xml.replace(/Resound/g, "ReSound");
|
||||
|
|
@ -518,6 +518,11 @@ function fixCapitalization(xml, book) {
|
|||
xml = xml.replace(/Radiata/g, "radiata");
|
||||
xml = xml.replace(/Gemma/g, "gemma");
|
||||
|
||||
// We de-capitalize Valkyrie's "flock", since most uses are de-capitalized (e.g. the many instances in Gleaming
|
||||
// Interlude 9, or Dying 15.z). This is a bit surprising; it seems like an organization name. But I guess it's
|
||||
// informal.
|
||||
xml = xml.replace(/(?<! {2}|“)Flock/g, "flock");
|
||||
|
||||
// Especially early in Worm, PRT designations are capitalized; they should not be. This fixes the cases where we
|
||||
// can be reasonably sure they don't start a sentence, although more specific instances are done in
|
||||
// substitutions.json, and some need to be back-corrected.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue