Changeset 5328 for lang/perl/Encode-JP-Mobile
- Timestamp:
- 01/23/08 10:00:44 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Encode-JP-Mobile/trunk/tools/softbank-convert.pl
r5327 r5328 14 14 15 15 my @table; 16 my %conv; 16 17 for (split /\n/, $text) { 17 18 next unless /^\d/; … … 31 32 for my $c ( qw( softbank kddi docomo )) { 32 33 warn "[$c] $_" unless defined $map{$c}; 34 my $key = $c eq 'kddi' ? 'unicode_auto' : 'unicode'; 33 35 if ($map{$c} =~ m!/!) { 34 36 my @code = split '/', $map{$c}; 35 $map{$c} = join " ", map $from_number->{$c}{$_}{unicode}, @code;37 $map{$c} = join "", map $from_number->{$c}{$_}{$key}, @code; 36 38 } else { 37 39 my $info = $from_number->{$c}{$map{$c}}; 38 40 if ($info) { 39 $map{$c} = $info->{ unicode};41 $map{$c} = $info->{$key}; 40 42 } elsif ($map{$c} ne '〓' && $map{$c} !~ /^\[/) { 41 43 warn "$c: $map{$c}"; … … 45 47 46 48 push @table, \%map; 49 $conv{$map{softbank}} = { 50 kddi => $map{kddi}, 51 docomo => $map{docomo}, 52 }; 47 53 } 48 54 49 55 binmode STDOUT, ":utf8"; 50 print Dump \@table; 56 #print Dump \@table; 57 print Dump \%conv; 51 58 52 59 sub setup_table {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)