countries: rename ez title to eurozone
[sheet.git] / tools / mkttfinfo
index 988fcdccdf51adfd8aa33e3daf77eed864985299..2523b8f9f0c5531a5df7746ba4bafdf0987ea0e1 100755 (executable)
@@ -61,6 +61,17 @@ for ($outfile || ()) {
        $meta{abbr} = lc join '', $meta{name} =~ s/ MS$//r =~ m{
                (?!Sans) (?<! [0-9]) ([[:upper:]0-9])
        }gx;
+       $meta{os} = $_ for "@ttfext[0 .. $#ttfext-1]" || (
+               $meta{copyright} =~ /\bGoogle\b/ ? "Android" :
+               $ttfname eq 'arialuni' ? 'win2k' :
+               ()
+       );
+       $meta{oscorp} = (
+               s/^mac10/OS X 10./ ? 'Apple' :
+               s/^win(.+)/'Windows '.($1 eq '2k' ? 2000 : $1)/e ? 'Microsoft' :
+               m/^Android/ ? 'Google' :
+               undef
+       ) for $meta{os} || ();
 
        say "# automatically generated by $0";
        say '+', pp(\%meta), ',';