root/lang/perl/Encode-JP-Mobile/trunk/tools/props-rangify.pl

Revision 5111, 315 bytes (checked in by miyagawa, 7 months ago)

added props-rangify tool to create In*Pictograms sub content

  • Property svn:executable set to *
Line 
1#!/usr/bin/perl
2use strict;
3use warnings;
4use Number::Rangify qw( rangify );
5use YAML;
6
7my($dat, $key) = @ARGV;
8
9my $r = YAML::LoadFile($dat);
10my @code;
11for my $row (@$r){
12    my $hex = $row->{$key || 'unicode'};
13    push @code, hex $hex;
14}
15
16for my $range (rangify @code) {
17    printf "%X\\t%X\n", $range->Size;
18}
19
Note: See TracBrowser for help on using the browser.