charset: omit unassigned half of ascii table
[sheet.git] / digraphs.plp
index 4fff67d48d5046b375df08587858dddc864acf52..44f93e67c719c7e06d69f5eecf25dfd7f0bf7f26 100644 (file)
@@ -1,12 +1,11 @@
 <(common.inc.plp)><:
-use 5.010;  # state
 
-my $mode = ($ENV{PATH_INFO} // '') eq '/xorg' || exists $get{xorg};
+my $mode = ($Request // '') eq 'xorg' || exists $get{xorg};
 my $modename = $mode ? 'X.Org' : 'RFC-1345';
 
 Html({
        title => 'digraph cheat sheet',
-       version => '1.1',
+       version => '1.2',
        description => [
                "Complete table of digraph characters from $modename.",
        ],
@@ -94,11 +93,11 @@ if ($mode) {
 for my $colchars (@columns) {
 print '<table class="glyphs dimap"><col>';
 print qq'<colgroup span="$_">' for map {scalar @$_} @{$colchars};
-print "</colgroup><col>\n";
+say '</colgroup><col>';
 for my $section (qw{thead tfoot}) {
        print "<$section><tr><th>↳";
        print '<th>', EscapeHTML($_) for map {@$_} @{$colchars};
-       print "<th>&nbsp;\n";
+       say '<th>&nbsp;';
 }
 for my $c1group (@chars) {
        print '<tbody>';
@@ -127,10 +126,10 @@ for my $c1group (@chars) {
                        printf "\n".'<td class="%s" title="%s">%s',
                                join(' ', @class), EscapeHTML($desc), $glyph;
                }
-               print "\n<th>", EscapeHTML($c1), "\n";
+               say "\n<th>", EscapeHTML($c1);
        }
 }
-print "</table>\n";
+say '</table>';
 print '<hr>' if exists $get{split};
 }
 
@@ -171,6 +170,7 @@ if ($mode) {
        <table class="glyphs"><tr>
        <td class="X u-l4">full support
        <td class="X u-l3">vim extension
+       <td class="X u-l3 ex">vim v8.0
        <td class="X u-l2">proposal
        <td class="X u-l1">not in vim
        </table>