common: enable perl v5.14 features everywhere
[sheet.git] / chars.plp
index 775674ec62e98157571912f885dc5e46132657b6..a637eae8528f89b119a46fccd4c93ae1d6c3e944 100644 (file)
--- a/chars.plp
+++ b/chars.plp
@@ -2,7 +2,7 @@
 
 Html({
        title => 'character support sheet',
-       version => 'v1.0',
+       version => '1.0',
        keywords => [qw'
                unicode glyph char character reference common ipa symbol sign mark table digraph
        '],
@@ -10,7 +10,6 @@ Html({
        data => [qw( unicode-cover.inc.pl ttfsupport unicode-char.inc.pl )],
 });
 
-use 5.010;
 use Shiar_Sheet::FormatChar;
 my $glyphs = Shiar_Sheet::FormatChar->new;
 
@@ -89,7 +88,7 @@ for (map { split /[^\d-]/ } $query) {
 # output character list
 
 say '<div>';
-print '<table class=mapped>';
+print '<table class="mapped cover">';
 print '<col>' x 3;
 print "<colgroup span=$_>"
        for 2, map { scalar @{ $groupinfo->{os}->{$_} } } @ossel;
@@ -104,8 +103,10 @@ print '<tr>';
 print '<td colspan=2>unicode';
 print '<td>name';
 print '<td><a href="/digraphs" title="digraph">di</a><td>html';
-printf '<td title="%s">%s', $font{$_}->{-name}, $font{$_}->{-abbr}
-       for @fontlist;
+printf('<td title="%s">%s', map { EscapeHTML($_) }
+       join("\n", $font{$_}->{-name}, $font{$_}->{-description}),
+       $font{$_}->{-abbr},
+) for @fontlist;
 say '</thead>';
 
 for my $chr (@chars) {