prefer $@ for eval errors
[sheet.git] / writing.plp
index 9f49a0ec371729071f23a10673f488cec3b1b61a..e26b6550de3d2656f6a464ef55f4429c46aa5d1d 100644 (file)
@@ -19,7 +19,9 @@ Html({
 :>
 <h1>Writing systems</h1>
 
-<p>Also see <a href="/charset">charsets</a>
+<p>
+Comparison of Unicode letters in related alphabets.
+Also see <a href="/charset">charsets</a>
 and <a href="/unicode">common chars</a>.</p>
 
 <div class="section">
@@ -30,7 +32,7 @@ my $glyphs = Shiar_Sheet::FormatChar->new;
 unless (exists $get{v}) {
        $glyphs->{unicode}--;
        $glyphs->{anno}  = [];
-       $glyphs->{style} = 0;
+       $glyphs->{style} = 'univer';
 }
 
 my $scriptname = do 'writing-script.inc.pl';
@@ -44,7 +46,7 @@ for (
        my @table = do "writing-$source.inc.pl";
        if ($! or $@) {
                print "<h2>$title</h2>\n";
-               printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
+               printf "<p>Table data not found: <em>%s</em>.</p>\n", $@ || $!;
                next;
        }
        $glyphs->print($title => [map {
@@ -58,3 +60,14 @@ for (
 
 <hr>
 
+<div class="legend">
+       <table class="glyphs"><tr>
+       <td class="X l5">unicode 1.1
+       <td class="X l4">20th century
+       <td class="X l3">in 6.0 (2010)
+       <td class="X l2">recent assignments
+       <td class="X l1">proposed
+       <td class="ex">irregular
+       </table>
+</div>
+