Remove hyphenation around "hundred" and "percent"
This commit is contained in:
parent
16ef1836da
commit
b613514994
2 changed files with 20 additions and 1 deletions
|
|
@ -543,11 +543,14 @@ function fixHyphens(xml) {
|
|||
xml = xml.replace(/(\w+)[ -]year[ -]old(s?)(?!\w)/g, "$1-year-old$2");
|
||||
xml = xml.replace(/(\w+) or (\w+)-year-old/g, "$1- or $2-year-old");
|
||||
|
||||
// Compound numbers must be hyphenated.
|
||||
// Compound numbers from 11 through 99 must be hyphenated, but others should not be.
|
||||
xml = xml.replace(
|
||||
/(?<!\w)(twenty|thirty|fourty|fifty|sixty|seventy|eighty|ninety) (one|two|three|four|five|six|seven|eight|nine)/ig,
|
||||
"$1-$2"
|
||||
);
|
||||
xml = xml.replace(/[- ]hundred-and-/g, " hundred and ");
|
||||
xml = xml.replace(/(?<!-)(one|two|three|four|five|six|seven|eight|nine|twelve)-hundred/, "$1 hundred");
|
||||
xml = xml.replace(/(hundred|ninety)-percent(?!-)/g, "$1 percent");
|
||||
|
||||
// These are consistently missing hyphens.
|
||||
xml = xml.replace(/self destruct/g, "self-destruct");
|
||||
|
|
|
|||
|
|
@ -2386,6 +2386,10 @@
|
|||
{
|
||||
"before": "better pictures of mom",
|
||||
"after": "better pictures of Mom"
|
||||
},
|
||||
{
|
||||
"before": "five-hundred percent",
|
||||
"after": "five hundred percent"
|
||||
}
|
||||
],
|
||||
"https://parahumans.wordpress.com/2012/11/20/interlude-15/": [
|
||||
|
|
@ -3101,6 +3105,10 @@
|
|||
{
|
||||
"before": "I know you and dad won’t approve",
|
||||
"after": "I know you and Dad won’t approve"
|
||||
},
|
||||
{
|
||||
"before": "hundred and ten-percent",
|
||||
"after": "hundred and ten percent"
|
||||
}
|
||||
],
|
||||
"https://parahumans.wordpress.com/2013/04/16/imago-21-3/": [
|
||||
|
|
@ -3502,6 +3510,10 @@
|
|||
{
|
||||
"before": "Master and stranger",
|
||||
"after": "master and stranger"
|
||||
},
|
||||
{
|
||||
"before": "nearly-three-hundred",
|
||||
"after": "nearly three hundred"
|
||||
}
|
||||
],
|
||||
"https://parahumans.wordpress.com/2013/07/20/sting-26-2/": [
|
||||
|
|
@ -5623,6 +5635,10 @@
|
|||
"regExp": "the pharmacist",
|
||||
"replacement": "the Pharmacist",
|
||||
"_comment": "in the previous chapter, 'the Pharmacist' starts getting capitalized consistently, as if it's a name instead of a profession. Carry it forward."
|
||||
},
|
||||
{
|
||||
"before": "one hundred and ten-percent",
|
||||
"after": "one hundred and ten percent"
|
||||
}
|
||||
],
|
||||
"https://www.parahumans.net/2018/10/02/gleaming-9-12/": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue