Spellcheck user team names. Correct some glitches this detects.

This commit is contained in:
Eric S. Raymond 2008-11-25 16:34:07 +00:00
parent 69463a7f24
commit 0f8fdab37c
7 changed files with 19 additions and 17 deletions

View file

@ -90,8 +90,8 @@
name=_ "Linaera"
side=3
team_name=Wizzards
user_team_name=_ "Wizzards"
team_name=Wizards
user_team_name=_ "Wizards"
controller=ai
fog=no
shroud=no

View file

@ -75,4 +75,4 @@
# wmllint: directory spelling Eldaric Jessica Aethyr Burin Typhon
# wmllint: directory spelling Jevyan Caror Lenvan
# wmllint: directory spelling Wesfolk Clearwater Southbay Esten Oldwood
# wmllint: directory spelling Stormvale Wesfolk Clearwater Southbay Esten Oldwood

View file

@ -37,7 +37,7 @@
{GOLD 110 140 160}
{INCOME 2 4 8}
team_name=Liz
user_team_name=_"Lizardoids"
user_team_name=_"Saurians"
#ifdef EASY
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Vampire Bat,Saurian Augur
#else
@ -70,7 +70,7 @@
{GOLD 110 140 160}
{INCOME 2 4 8}
team_name=Liz
user_team_name=_"Lizardoids"
user_team_name=_"Saurians"
#ifdef EASY
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Vampire Bat,Saurian Augur
#else
@ -103,7 +103,7 @@
{GOLD 110 140 160}
{INCOME 2 4 8}
team_name=Liz
user_team_name=_"Lizardoids"
user_team_name=_"Saurians"
#ifdef EASY
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Vampire Bat,Saurian Augur
#else
@ -137,7 +137,7 @@
{GOLD 110 140 160}
{INCOME 2 4 8}
team_name=Liz
user_team_name=_"Lizardoids"
user_team_name=_"Saurians"
#ifdef EASY
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Vampire Bat,Saurian Augur

View file

@ -97,7 +97,7 @@
name= _ "Groth"
team_name=undead_hordes
user_team_name=_"Unead"
user_team_name=_"Undead"
controller=ai
{GOLD 20 50 125}

View file

@ -65,7 +65,7 @@
shroud=no
fog=no
team_name=eloh_ally
user_team_name=_"Eloh Cultisys"
user_team_name=_"Eloh Cultists"
{FLAG_VARIANT undead}
#ifdef EASY
@ -108,7 +108,7 @@
shroud=no
fog=no
team_name=eloh_ally
user_team_name=_"Eloh Cultisys"
user_team_name=_"Eloh Cultists"
{FLAG_VARIANT undead}
#ifdef EASY
@ -154,7 +154,7 @@
shroud=no
fog=no
team_name=eloh_ally
user_team_name=_"Eloh Cultisys"
user_team_name=_"Eloh Cultists"
{FLAG_VARIANT undead}
#ifdef EASY
@ -191,7 +191,7 @@
shroud=no
fog=no
team_name=eloh_ally
user_team_name=_"Eloh Cultisys"
user_team_name=_"Eloh Cultists"
{FLAG_VARIANT undead}
[/side]
@ -205,7 +205,7 @@
shroud=no
fog=no
team_name=eloh_ally
user_team_name=_"Eloh Cultisys"
user_team_name=_"Eloh Cultists"
{FLAG_VARIANT undead}
[/side]
@ -218,7 +218,7 @@
shroud=no
fog=no
team_name=eloh_ally
user_team_name=_"Eloh Cultisys"
user_team_name=_"Eloh Cultists"
{FLAG_VARIANT undead}
#ifdef EASY
@ -259,7 +259,7 @@
shroud=no
fog=no
team_name=eloh_ally
user_team_name=_"Eloh Cultisys"
user_team_name=_"Eloh Cultists"
{FLAG_VARIANT undead}
#ifdef EASY

View file

@ -71,7 +71,7 @@ Drakes originated from a chain of volcanic islands in the Great Ocean. A combina
[/race]
# wmllint: general spellings dwarf dwarves dwarvish dwarven
# wmllint: general spellings Knalga Knalgan Vrug
# wmllint: general spellings Knalga Knalgan Knalgans Vrug
# wmllint: general spellings muckle och busked intae belike
# wmllint: general spellings runesmith runesmiths runelore
# wmllint: general spellings runecraft runecrafter runecrafters
@ -301,7 +301,7 @@ While undead lords arrived on the Great Continent in considerable numbers only i
{ORCISH_NAMES}
[/race]
# wmllint: general spelling wose woses
# wmllint: general spelling wose woses treefolk
[race]
id=wose
name= _ "race^Wose"

View file

@ -307,6 +307,7 @@ spellcheck_these = (\
"title=",
"title2=",
"tooltip=",
"user_team_name=",
)
@ -1226,6 +1227,7 @@ def spellcheck(fn, d):
value = value.replace("''", "")
value = value.replace("female^", " ")
value = value.replace("male^", " ")
value = value.replace("teamname^", " ")
if '<' in value:
value = re.sub("<[^>]+>text='([^']*)'<[^>]+>", r"\1", value)
value = re.sub("<[0-9,]+>", "", value)