latin: plain html output instead of FormatChar module
[sheet.git] / latin.plp
index a83bc0dbe57fecdd552308a8cd20fd9208ab33fd..8ad53c0de1db251c6f0e20993874f5e887c41a01 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -20,7 +20,7 @@ Html({
                font-family: Suetterlin; /* R. G. Arens */
                src: url("/suetterlin.ttf");
        }
-       .glyphs tr:first-child+tr td { font-family: Suetterlin }
+       .glyphs tr:first-child+tr+tr td { font-family: Suetterlin }
 </style>
 
 <h1>Latin alphabet</h1>
@@ -31,43 +31,14 @@ and <a href="/unicode">common chars</a>.</p>
 <div class="-diinfo">
 
 <:
-use Shiar_Sheet::FormatChar;
-my $glyphs = Shiar_Sheet::FormatChar->new;
-unless (exists $get{v}) {
-       $glyphs->{unicode}--;
-       $glyphs->{anno}  = [];
-       $glyphs->{style} = 0;
-}
-
-my %scriptname = (
-       latn     => 'Latin',
-       latnuc   => 'Uppercase',
-       latnlc   => 'Lowercase',
-       latfsuet => 'Sütterlin',
-       asl      => '<abbr title="American Sign Lanugage">ASL</abbr>', # American manual alphabet
-       brai     => 'Braille',
-       morse    => 'Morse',
-       tap      => 'Tap code',
-       taps     => 'Tap simplified',
-       ics      => 'Maritime flags', # International Code of Signals
-       sem      => 'Flag semaphore',
-       semc     => 'Chappe semaphore',
-       pigpen   => 'Pigpen',
-       wingdings=> 'Wingdings',
-       code39   => 'Code 39', # ISO/IEC 16388
-       rm4scc   => '<abbr title="Royal Mail 4-State Customer Code">RM4SCC</abbr>',
-       colour   => 'Chromacons', # Colour Alphabet by Paul Green-Armytage (2010)
-);
-
 my @table = do 'writing-latn.inc.pl';
 if ($! or $@) {
        printf "<p class=error>Table data not found: <em>%s</em>.</p>\n", $@ || $!;
 }
 else {
-       print $glyphs->table([map {
-               ref $_ ne 'ARRAY' ? ".>$scriptname{$_}"
-                       : exists $get{uc} ? map {uc} @$_ : @$_
-       } @table]);
+       print '<table class="glyphs">';
+       print ref $_ ne 'ARRAY' ? "<tr><th>$_" : map {"<td>$_"} @$_ for @table;
+       print "</table>\n\n";
 }
 
 print "</div>\n";