Spot fixes for Ward through From Within 16.z
This commit is contained in:
parent
2412fa0375
commit
5c80327fef
2 changed files with 224 additions and 2 deletions
|
|
@ -352,11 +352,15 @@ function standardizeNames(xml) {
|
|||
xml = xml.replace(/Amais/g, "Amias");
|
||||
|
||||
// Earlier chapters have a space; later ones do not. They're separate words, so side with the earlier chapters.
|
||||
xml = xml.replace(/Crock o[‘’]Shit/g, "Crock o’ Shit");
|
||||
// One location is missing the "k".
|
||||
xml = xml.replace(/Crock? o[‘’]Shit/g, "Crock o’ Shit");
|
||||
|
||||
// 5 instances of "Jotun" to 2 of "Jotunn"
|
||||
xml = xml.replace(/Jotunn/g, "Jotun");
|
||||
|
||||
// 13 instances of Elman to 1 of Elmann
|
||||
xml = xml.replace(/Elmann/g, "Elman");
|
||||
|
||||
return xml;
|
||||
}
|
||||
|
||||
|
|
@ -464,6 +468,7 @@ function fixCapitalization(xml, book) {
|
|||
// Capitalization is inconsistent, but shard names seems to usually be capitalized.
|
||||
xml = xml.replace(/Grasping self/g, "Grasping Self");
|
||||
xml = xml.replace(/Cloven stranger/g, "Cloven Stranger");
|
||||
xml = xml.replace(/Princess shaper/g, "Princess Shaper");
|
||||
|
||||
// "patrol block" is capitalized three different ways: "patrol block", "Patrol block", and "Patrol Block". "patrol
|
||||
// group" is always lowercased. It seems like "Patrol" is a proper name, and is used as a capitalized modifier in
|
||||
|
|
@ -619,7 +624,10 @@ function standardizeSpellings(xml) {
|
|||
xml = xml.replace(/[Dd]ragon[ -](craft|mech)/g, "Dragon-$1");
|
||||
|
||||
// 88 instances of "A.I." to four of "AI"
|
||||
xml = xml.replace(/AI(!?\b)/g, "A.I.");
|
||||
xml = xml.replace(/(?<=\b)AI(?=\b)/g, "A.I.");
|
||||
|
||||
// 2 instances of "G.M." to one of "GM"
|
||||
xml = xml.replace(/(?<=\b)GM(?=\b)/g, "G.M.");
|
||||
|
||||
return xml;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue