1
0
forked from 0ad/0ad

Fix invalid characters in entity templates. Add script to find unrecognised characters.

Fixes #960.

This was SVN commit r10503.
This commit is contained in:
Ykkrosh 2011-11-10 19:31:35 +00:00
parent 77f8f95d20
commit 56d634bf49
13 changed files with 59 additions and 13 deletions

View File

@ -7,7 +7,7 @@
<Identity>
<Civ>cart</Civ>
<SpecificName>Rēfet</SpecificName>
<History>A place for a farmer to pen his animals. Garrison a sheep, goat, or cow here to gain a trickle of the food resource. Garrisoning an animal here also "fattens" them so that they may be slaughtered and gathered for a quick burst of food. Horses or elephants can be captured in the wild and placed in the Corral. Unlike normal corralled animals that generate food, the corralled Horse and Elephant functions similarly to a relic as in AoK. As long as it/they remain(s) in the Corral, the resource cost of training horse-mounted units (cavalry) or War Elephant Super Units is reduced by a fixed amount of –5% per animal corralled appropriate to kind.</History>
<History>A place for a farmer to pen his animals. Garrison a sheep, goat, or cow here to gain a trickle of the food resource. Garrisoning an animal here also "fattens" them so that they may be slaughtered and gathered for a quick burst of food. Horses or elephants can be captured in the wild and placed in the Corral. Unlike normal corralled animals that generate food, the corralled Horse and Elephant functions similarly to a relic as in AoK. As long as it/they remain(s) in the Corral, the resource cost of training horse-mounted units (cavalry) or War Elephant Super Units is reduced by a fixed amount of -5% per animal corralled appropriate to kind.</History>
</Identity>
<Obstruction>
<Static width="16.0" depth="14.5"/>

View File

@ -24,7 +24,7 @@
<Identity>
<GenericName>Field</GenericName>
<Tooltip>Harvest grain for Food.</Tooltip>
<History>Farming originated around 9500 BC in India and the Middle East. The history of agriculture is a central element of human history, as agricultural progress has been a crucial factor in worldwide socio-economic change. Wealth-building and militaristic specializations rarely seen in hunter-gatherer cultures are commonplace in agricultural and agro-industrial societies—when farmers became capable of producing food beyond the needs of their own families, others in the tribe/nation/empire were freed to devote themselves to projects other than food acquisition.</History>
<History>Farming originated around 9500 BC in India and the Middle East. The history of agriculture is a central element of human history, as agricultural progress has been a crucial factor in worldwide socio-economic change. Wealth-building and militaristic specializations rarely seen in hunter-gatherer cultures are commonplace in agricultural and agro-industrial societies - when farmers became capable of producing food beyond the needs of their own families, others in the tribe/nation/empire were freed to devote themselves to projects other than food acquisition.</History>
<Icon>structures/field.png</Icon>
</Identity>
<Minimap>

View File

@ -5,7 +5,7 @@
<SelectionGroupName>units/cart_cavalry_javelinist_b</SelectionGroupName>
<GenericName>Numidian Cavalry</GenericName>
<SpecificName>Ḥayyāl Romaḥ Raḫūv Masili</SpecificName>
<History>The Carthaginians possessed the greatest light cavalry of the ancient world in the Numidians. Tough and hardy like their mounts, the Numidians were famous for their ability to ride bareback and without bridles. Riders controlled their horses through a combination of voice commands, knee pressure, and a rope around the animals’ necks. Used mostly for pursuing defeated opponents, the Numidians’ favored weapon was a javelin that could be used for close combat if necessary.</History>
<History>The Carthaginians possessed the greatest light cavalry of the ancient world in the Numidians. Tough and hardy like their mounts, the Numidians were famous for their ability to ride bareback and without bridles. Riders controlled their horses through a combination of voice commands, knee pressure, and a rope around the animals' necks. Used mostly for pursuing defeated opponents, the Numidians' favored weapon was a javelin that could be used for close combat if necessary.</History>
<Icon>units/cart_cavalry_javelinist.png</Icon>
</Identity>
<Promotion>

View File

@ -19,8 +19,8 @@
<Civ>cart</Civ>
<SelectionGroupName>units/cart_infantry_javelinist_b</SelectionGroupName>
<GenericName>Iberian Mercenary Skirmisher</GenericName>
<SpecificName>Səḫīr Kidōn</SpecificName>
<History>While Iberians had often served as mercenaries in earlier times, after Carthage’s conquest of Spain they were often called up as levies. After the Celts they were considered the most expendable of all the troops in the Carthaginian army, used to dull the force of a charging formation. Armed with a javelin that could have a bundle of burning grass attached at the end for torching buildings, the Iberians could also wear light breastplates called pectorals in addition to their distinctive sinew caps.</History>
<SpecificName>Sǝḫīr Kidōn</SpecificName>
<History>While Iberians had often served as mercenaries in earlier times, after Carthage's conquest of Spain they were often called up as levies. After the Celts they were considered the most expendable of all the troops in the Carthaginian army, used to dull the force of a charging formation. Armed with a javelin that could have a bundle of burning grass attached at the end for torching buildings, the Iberians could also wear light breastplates called pectorals in addition to their distinctive sinew caps.</History>
<Icon>units/cart_infantry_javelinist.png</Icon>
</Identity>
<Promotion>

View File

@ -12,7 +12,7 @@
<Civ>cart</Civ>
<SelectionGroupName>units/cart_infantry_spearman_b</SelectionGroupName>
<GenericName>Libyan Spearman</GenericName>
<SpecificName>Səḫīr Ḥanīt</SpecificName>
<SpecificName>Sǝḫīr Ḥanīt</SpecificName>
<History>The core of the Carthaginian army was made up of Liby-Phoenicians, Africans with Phoenician ancestors. The wealthy residents of Carthage recruited the non-citizen Liby-Phoenicians as heavy infantry, fighting in the phalanx armed with the long spear. Armor could range from chain mail hauberks to bronze cuirasses and helmets often included the latest Hellenistic types. Although armed with a shield and a sword, Carthaginian swordsmen were woefully ill-trained compared to their Roman or Iberian counterparts in fencing.</History>
<Icon>units/cart_infantry_spearman.png</Icon>
</Identity>

View File

@ -26,7 +26,7 @@
<SpecificName>Carbanto</SpecificName>
<Tooltip>Brythonic Champion Cavalry.
Bonus vs. Infantry. High trample damage.</Tooltip>
<History>The Britons were one of the last European peoples to use two-horse chariots in combat. They had two iron-rimmed wheels and a flat riding platform that typically carried a driver and a warrior. Useless as shock weapons against tightly packed troops, they were useful for running down individual soldiers and as a stable mount to launch javelins from. The heads of defeated opponents often adorned the chassis to show the warrior’s prowess.</History>
<History>The Britons were one of the last European peoples to use two-horse chariots in combat. They had two iron-rimmed wheels and a flat riding platform that typically carried a driver and a warrior. Useless as shock weapons against tightly packed troops, they were useful for running down individual soldiers and as a stable mount to launch javelins from. The heads of defeated opponents often adorned the chassis to show the warrior's prowess.</History>
<Icon>units/celt_champion_cavalry_brit.png</Icon>
</Identity>
<Obstruction>

View File

@ -13,7 +13,7 @@
<Civ>celt</Civ>
<SpecificName>Cynvelin</SpecificName>
<Tooltip>Hero Aura: Has a large and powerful Healing Aura, only useful when idle.</Tooltip>
<History>Cynvelin was a powerful ruler centered in the territory around modern day London. Ruling the Catuvellauni from Camulodunum, he was a warrior king who conquered a neighboring tribe and was referred to by the Romans as the King of the Britons. Eventually Cynvelin retired to become the arch-druid of Siluria, but was taken to Rome with his son upon Caratacos’s capture. According to legend, the Apostle Paul baptized Cynvelin into Christianity before he died in Italy.</History>
<History>Cynvelin was a powerful ruler centered in the territory around modern day London. Ruling the Catuvellauni from Camulodunum, he was a warrior king who conquered a neighboring tribe and was referred to by the Romans as the King of the Britons. Eventually Cynvelin retired to become the arch-druid of Siluria, but was taken to Rome with his son upon Caratacos's capture. According to legend, the Apostle Paul baptized Cynvelin into Christianity before he died in Italy.</History>
<Icon>units/celt_hero_cynvelin.png</Icon>
</Identity>
<UnitMotion>

View File

@ -26,7 +26,7 @@
<Civ>celt</Civ>
<SpecificName>Vercingetorix</SpecificName>
<Tooltip>Hero Aura: Increased attack for all units within his aura.</Tooltip>
<History>The most famous of all Celts, Vercingetorix lead the rebelling Gallic tribes against the might of Rome and Julius Caesar’s veteran army in 54 BC. Although successful in defeating several Roman forces, Vercingetorix was unable to defeat Caesar, who eventually surrounded the Celtic leaders in the town of Alesia along with 100,000 men. When a relief army arrived to lift the epic siege, the Romans were out numbered 7 to 1 but still defeated the Celts. Vercingetorix surrendered and was executed.</History>
<History>The most famous of all Celts, Vercingetorix lead the rebelling Gallic tribes against the might of Rome and Julius Caesar's veteran army in 54 BC. Although successful in defeating several Roman forces, Vercingetorix was unable to defeat Caesar, who eventually surrounded the Celtic leaders in the town of Alesia along with 100,000 men. When a relief army arrived to lift the epic siege, the Romans were out numbered 7 to 1 but still defeated the Celts. Vercingetorix surrendered and was executed.</History>
<Icon>units/celt_hero_vercingetorix.png</Icon>
</Identity>
<UnitMotion>

View File

@ -21,7 +21,7 @@
<Civ>celt</Civ>
<SpecificName>Venetic Ponti</SpecificName>
<Tooltip>Transport many soldiers across the sea.</Tooltip>
<History>The ships of Gaul were described by Julias Caesar as: flat bottoms to ride the shallows, exceptionally high bows and sterns, hulls were made entirely of oak, the foot wide cross-timbers were fastened with iron bolts as thick as a man’s thumb, sails of raw hides or thin leather, adapted for sailing treacherous and stormy waters of the north atlantic. Caesar could not injure them by ramming because they were so solidly built, and their height made it difficult to reach them with missiles or board them with grappling irons.</History>
<History>The ships of Gaul were described by Julias Caesar as: flat bottoms to ride the shallows, exceptionally high bows and sterns, hulls were made entirely of oak, the foot wide cross-timbers were fastened with iron bolts as thick as a man's thumb, sails of raw hides or thin leather, adapted for sailing treacherous and stormy waters of the north atlantic. Caesar could not injure them by ramming because they were so solidly built, and their height made it difficult to reach them with missiles or board them with grappling irons.</History>
<Icon>units/celt_ship_trireme.png</Icon>
</Identity>
<Obstruction>

View File

@ -17,7 +17,7 @@
<Identity>
<Civ>celt</Civ>
<SpecificName>Bodu</SpecificName>
<History>Celtic women enjoyed many freedoms, especially compared to their Greek and Roman counterparts. Although they did not fight in battle as some believe Gallic women were quite large and very strong compared to most men. They were able to own property and were capable of gaining considerable wealth. Some noblewomen took over power when their husband’s died, such as Boudicca of the Iceni. In addition, family trees were drawn up along female lines, men claiming their ancestry through female ancestors.</History>
<History>Celtic women enjoyed many freedoms, especially compared to their Greek and Roman counterparts. Although they did not fight in battle as some believe Gallic women were quite large and very strong compared to most men. They were able to own property and were capable of gaining considerable wealth. Some noblewomen took over power when their husband's died, such as Boudicca of the Iceni. In addition, family trees were drawn up along female lines, men claiming their ancestry through female ancestors.</History>
<Icon>units/celt_support_female_citizen.png</Icon>
</Identity>
<VisualActor>

View File

@ -4,7 +4,7 @@
<Civ>iber</Civ>
<SpecificName>Ciudadana</SpecificName>
<Icon>units/iber_support_female_citizen.png</Icon>
<History>Iberian women were privileged members of society, equal in rank to men and superior in some areas. For instance a woman would inherit her father’s wealth and then distribute it among male family members, in addition to finding wives for her brothers. Manual labor was a common activity, including farming and ditch digging, for which women received pay. Marriage and other commitments to individuals were fervently embraced by both genders. Iberian women were also capable of slaying their own children to prevent them from being captured.</History>
<History>Iberian women were privileged members of society, equal in rank to men and superior in some areas. For instance a woman would inherit her father's wealth and then distribute it among male family members, in addition to finding wives for her brothers. Manual labor was a common activity, including farming and ditch digging, for which women received pay. Marriage and other commitments to individuals were fervently embraced by both genders. Iberian women were also capable of slaying their own children to prevent them from being captured.</History>
</Identity>
<VisualActor>
<Actor>units/iberians/female_citizen.xml</Actor>

View File

@ -34,7 +34,7 @@
<GenericName>Indian War Elephant</GenericName>
<SpecificName>Pil Jangi Hendi</SpecificName>
<Icon>units/pers_war_elephant.png</Icon>
<History>Elephants were rare sights in Persian armies but they were used and their effect on the battlefield could not be ignored. As their tusks and feet physically attacked the enemy, archers and javelin throwers launched projectiles from atop the animal’s back. While huge, they could be just as much a threat to their own side and could be easily hamstrung. But their ability to stop a full-blown cavalry charge when in a line made up for any questions of effectiveness.</History>
<History>Elephants were rare sights in Persian armies but they were used and their effect on the battlefield could not be ignored. As their tusks and feet physically attacked the enemy, archers and javelin throwers launched projectiles from atop the animal's back. While huge, they could be just as much a threat to their own side and could be easily hamstrung. But their ability to stop a full-blown cavalry charge when in a line made up for any questions of effectiveness.</History>
</Identity>
<UnitMotion>
<WalkSpeed>7.5</WalkSpeed>

View File

@ -0,0 +1,46 @@
use strict;
use warnings;
use File::Find;
my $vfsroot = '../../../binaries/data/mods';
sub find_entities
{
my @files;
my $find_process = sub {
return $File::Find::prune = 1 if $_ eq '.svn';
my $n = $File::Find::name;
return if /~$/;
return unless -f $_;
push @files, $n;
};
find({ wanted => $find_process }, "$vfsroot/public/simulation/templates");
find({ wanted => $find_process }, "$vfsroot/internal/simulation/templates") if -e "$vfsroot/internal";
return @files;
}
open my $c, "charset.txt" or die $!;
binmode $c, ":utf8";
my %chars;
@chars{split //, do { local $/; <$c> }} = ();
$chars{"\r"} = undef;
$chars{"\n"} = undef;
$chars{"\t"} = undef;
for my $fn (sort(find_entities()))
{
open my $f, "<", $fn or die $!;
binmode $f, ":utf8";
my %fchars;
@fchars{split //, do { local $/; <$f> }} = ();
for (sort keys %fchars)
{
if (not exists $chars{$_})
{
printf "%s\n# Missing char U+%04X\n\n", $fn, ord $_;
}
}
}