parent
a27b8a6e2f
commit
12086f209c
1 changed files with 8 additions and 0 deletions
|
|
@ -195,6 +195,14 @@ function getBodyXML(chapter, contentEl) {
|
||||||
// it's incorrect to capitalize in the one-off fixes.
|
// it's incorrect to capitalize in the one-off fixes.
|
||||||
xml = xml.replace(/the clairvoyant/g, "the Clairvoyant");
|
xml = xml.replace(/the clairvoyant/g, "the Clairvoyant");
|
||||||
|
|
||||||
|
// This is consistently missing accents
|
||||||
|
xml = xml.replace(/Yangban/g, "Yàngbǎn");
|
||||||
|
|
||||||
|
// 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.
|
||||||
|
xml = xml.replace(/<em>Thanda<\/em>/g, "Thanda");
|
||||||
|
xml = xml.replace(/<em>Sifara([^<]*)<\/em>/g, "Sifara$1");
|
||||||
|
|
||||||
// One-off fixes
|
// One-off fixes
|
||||||
(substitutions[chapter.url] || []).forEach(substitution => {
|
(substitutions[chapter.url] || []).forEach(substitution => {
|
||||||
const indexOf = xml.indexOf(substitution.before);
|
const indexOf = xml.indexOf(substitution.before);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue