UCD.pm: Use traditional casing for script names
authorKarl Williamson <public@khwilliamson.com>
Fri, 4 Mar 2011 01:00:08 +0000 (18:00 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 4 Mar 2011 02:26:17 +0000 (19:26 -0700)
For some reason UCD.pm has lowercased the first letters of the
non-first word in script names.  For backwards compatibility, continue
to do so.

lib/Unicode/UCD.pm

index debb240..86aaa74 100644 (file)
@@ -553,6 +553,7 @@ my %SCRIPTS;
 sub _charscripts {
     @SCRIPTS =_read_table("unicore/To/Sc.pl") unless @SCRIPTS;
     foreach my $entry (@SCRIPTS) {
+        $entry->[2] =~ s/(_\w)/\L$1/g;  # Preserve old-style casing
         push @{$SCRIPTS{$entry->[2]}}, $entry;
     }
 }