style/mono: support vimperator and countries
[sheet.git] / unicode.plp
index f506fb59165df582096e3fbced9d105457adf9a6..70f13e6cd0cfb58150eeadb34e965ec132efdc39 100644 (file)
@@ -11,6 +11,7 @@ Html({
                unicode glyph char character reference common ipa symbol sign mark table digraph
        '],
        stylesheet => [qw'light dark red'],
+       data => [qw'digraphs.inc.pl'],
 });
 
 :>
@@ -28,8 +29,12 @@ i^k or i^vu respectively in <a href="/vi">Vim</a>.
 use Shiar_Sheet::FormatChar;
 my $glyphs = Shiar_Sheet::FormatChar->new;
 
+if (exists $get{di}) {
+       $glyphs->{digraph} = defined $get{di} ? ! !$get{di} : 1;
+       $glyphs->{unicode} = 1;
+}
 if (exists $get{q}) {
-       $glyphs->{unicode}--;
+       $glyphs->{unicode} = -1;
        $glyphs->{digraph}--;
 }
 
@@ -206,11 +211,13 @@ $verbose ? (
 
 <div class="legend">
        <table class="glyphs"><tr>
-       <td class="X di-a">ascii
-       <td class="X di-d">digraph
-       <td class="X di-prop">proposed
-       <td class="X di-b">other unicode
-       <td class="X di-rare">discouraged
+       <td class="X l5">ascii
+       <td class="X l4"><:= $glyphs->{digraph} ? 'digraph' : 'latin1' :>
+       <td class="X l2"><:= $glyphs->{digraph} ? 'proposed' : 'BMP' :>
+       <td class="X l0">other unicode
+       <td class="X ex">discouraged
        </table>
 </div>
 
+<script type="text/javascript" src="/clipboard.js"></script>
+