font: show currency and mathematical unicode categories
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 5 Mar 2015 03:31:51 +0000 (04:31 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 9 Jun 2015 03:43:43 +0000 (05:43 +0200)
font.plp

index 98fff40ade1bc140b524e0758380cd64f4d58d0d..5e81234ecd4f750c578161b6edbbb9e51822ae00 100644 (file)
--- a/font.plp
+++ b/font.plp
@@ -50,7 +50,9 @@ my @rows = (
        'table/punctuation',
        'block/Dingbats',
        'table/symbols',
+       'category/Sc', # currency
        'table/math',
+       'category/Sm', # mathematical
        'table/arrows/single',
        'table/lines/single',
        'table/block',
@@ -58,7 +60,7 @@ my @rows = (
        'table/html',
 );
 
-for my $group ($ENV{PATH_INFO} || ()) {
+if (my $group = $ENV{PATH_INFO}) {
        $group =~ s{^/}{};
        my $grouprows = $cover->{$group}
                or die "Unknown character category $_\n";