File: make-nofallbacks.pl

package info (click to toggle)
console-data 2%3A1.12-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,388 kB
  • sloc: sh: 3,272; pascal: 472; makefile: 233; perl: 168
file content (22 lines) | stat: -rwxr-xr-x 594 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl

($PATTERN, $HOPEFULL_PATTERN) = @ARGV;

UNICODE: while (<STDIN>) {
#     ($code, $label, $categ, $comClass,
#      $bidiClass, $decompos, $decDigit, $digit, 
#      $numeric, $mirror, $oldName, $comment,
#      $upper, $lower, $title) = split (/;/);

    ($code, $label, $categ, undef,
     undef, undef, undef, undef,
     undef, undef, undef, undef,
     undef, undef, undef) = split (/;/);
    
    # skip control chars
    next UNICODE if (index ($categ, "C") == 0);

    if (($label =~ m/$HOPEFULL_PATTERN/) and ($label !~ m/$PATTERN/)) {
	print "$code;$label\n";
    }
}