root/lang/perl/Encode-JP-Mobile/trunk/tools/props-rangify.pl
| Revision 5111, 315 bytes (checked in by miyagawa, 7 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/usr/bin/perl |
| 2 | use strict; |
| 3 | use warnings; |
| 4 | use Number::Rangify qw( rangify ); |
| 5 | use YAML; |
| 6 | |
| 7 | my($dat, $key) = @ARGV; |
| 8 | |
| 9 | my $r = YAML::LoadFile($dat); |
| 10 | my @code; |
| 11 | for my $row (@$r){ |
| 12 | my $hex = $row->{$key || 'unicode'}; |
| 13 | push @code, hex $hex; |
| 14 | } |
| 15 | |
| 16 | for my $range (rangify @code) { |
| 17 | printf "%X\\t%X\n", $range->Size; |
| 18 | } |
| 19 |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)