digraphs: indicate direction order
[sheet.git] / digraphs.plp
index d339b094001200692dc1e8b94a1ffe1cfdbe732e..cec6406e3caf6a96178ef829ce525869a6f944a0 100644 (file)
@@ -2,6 +2,7 @@
 use utf8;
 use strict;
 use warnings;
+no  warnings 'qw';  # to quote or not to quote, that is the question
 use open IO => ':utf8';
 
 our $VERSION = '1.0';
@@ -24,6 +25,9 @@ $header{content_type} = 'text/html; charset=utf-8';
 <p>i^k in <a href="/">Vim</a>.
 Also see <a href="/unicode">common digraphs</a>.</p>
 
+<p style="font-size:72%">Unofficial <span class="Xz">proposals</span>
+are available as <a href="/digraphs.vim">ex commands</a>.</p>
+
 <:
 my $di = do 'digraphs.inc.pl';
 
@@ -41,13 +45,13 @@ my @chars = (
        ['A'..'M'], ['N'..'Z'],
        ['a'..'m'], ['n'..'z'],
 );
-my @chars2 = (@chars, ['_']);  # trailing character (extended set)
+my @chars2 = (['_'], @chars);  # trailing character (extended set)
 
-print '<table><col>';
+print '<table class="glyphs dimap"><col>';
 print qq'<colgroup span="$_">' for map {scalar @$_} @chars2;
 print "</colgroup><col>\n";
 for my $section (qw{thead tfoot}) {
-       print "<$section><tr><th>&nbsp;";
+       print "<$section><tr><th>";
        print '<th>', quote($_) for map {@$_} @chars2;
        print "<th>&nbsp;\n";
 }
@@ -84,7 +88,7 @@ for my $c1group (@chars) {
 print "</table>\n";
 :>
 <div id="legend">
-       <table><tr>
+       <table class="glyphs"><tr>
        <td class="X Cc">control
        <td class="X Zs"><span>spacing</span>
        <td class="X Mn">modifier
@@ -105,7 +109,7 @@ print "</table>\n";
        <td class="X Bopomofo">chinese
        </table>
 
-       <table><tr>
+       <table class="glyphs"><tr>
        <td class="X">unicode
        <td class="X Xl">latin1
        <td class="X Xa">ascii