|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Character Entities: An XML Core WG View
The following perl, applied to the standard Unicode database file
'UnicodeData.txt' produces a file of entity declarations, 673922 bytes
in size, that declares 13789 entities with canonical names.
use strict;
while (<STDIN>)
{
my @fields = split(/;/, $_);
my $cpoint = $fields[0];
$cpoint =~ s/^0*//;
my $name = $fields[1];
next unless $name;
next if ($name =~ /</);
$name =~ s/ /_/g;
print "<!ENTITY $name '&#x$cpoint;'>\n";
}
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








