font: mkfontinfo: strip whitespace from support arrays
[sheet.git] / tools / mkdigraphs-shiar
index 4f2b75abb88a65879f8ee2e10324859ef59c5065..05399b0aecb12fa911f952f3566173a918452e85 100755 (executable)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 use open IN => ':utf8', ':std';
 
-our $VERSION = '1.00';
+our $VERSION = '1.01';
 
 my $di = do "data/digraphs-rfc.inc.pl"
        or warn "official digraphs not included for comparison: ", $@ // $!;
@@ -14,8 +14,8 @@ say '+{';
 for (readline) {
        my ($mnem, $chr) = m{^([!"%'-Z_a-z]{2}) (.)} or next;
        warn("$mnem already defined"), next if defined $di->{$mnem};
-       my $chrnum = ord $chr;
-       say "q{$1} => $chrnum,";
+       my $chrstr = sprintf '"\x{%x}"', ord $chr;
+       say "q{$mnem} => $chrstr,";
 }
 say '}';