diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-11-05 10:18:48 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-11-08 08:09:34 -0700 |
commit | 89cf10ccc096bcaa44576e1297905bd50f2915c7 (patch) | |
tree | 724eafb89f98d08345accb8f1caad92ec55ee25c /lib | |
parent | 01da8b8592f4f46c16e5a5b77955e5d9338cb982 (diff) | |
download | perl-89cf10ccc096bcaa44576e1297905bd50f2915c7.tar.gz |
mktables: Add %file_to_swash_name to utf8_heavy.pl
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicore/mktables | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/unicore/mktables b/lib/unicore/mktables index e8010b91b7..b6194e8b9c 100644 --- a/lib/unicore/mktables +++ b/lib/unicore/mktables @@ -1248,6 +1248,8 @@ my %loose_to_file_of; # loosely maps table names to their respective # files my %stricter_to_file_of; # same; but for stricter mapping. my %loose_property_to_file_of; # Maps a loose property name to its map file +my %file_to_swash_name; # Maps the file name to its corresponding key name + # in the hash %utf8::SwashInfo my %nv_floating_to_rational; # maps numeric values floating point numbers to # their rational equivalent my %loose_property_name_of; # Loosely maps (non_string) property names to @@ -12606,6 +12608,9 @@ sub register_file_for_name($$$) { $loose_property_to_file_of{standardize($name)} = $file; } + # And a way for utf8_heavy to find the proper key in the SwashInfo + # hash for this property. + $file_to_swash_name{$file} = "To" . $table->swash_name; return; } @@ -13989,6 +13994,9 @@ sub make_Heavy () { = simple_dumper(\%loose_property_to_file_of, ' ' x 4); chomp $loose_property_to_file_of; + my $file_to_swash_name = simple_dumper(\%file_to_swash_name, ' ' x 4); + chomp $file_to_swash_name; + my @heavy = <<END; $HEADER $INTERNAL_ONLY_HEADER @@ -14039,6 +14047,11 @@ $caseless_equivalent_to $loose_property_to_file_of ); +# Files to the swash names within them. +\%utf8::file_to_swash_name = ( +$file_to_swash_name +); + 1; END |