X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/01d61f72fed7ac041786ea69d1b080f45a4c49d1..a6bad536d7682c7932125500bb9e04a4cb8cb351:/digraphs.plp diff --git a/digraphs.plp b/digraphs.plp index aca0766..24eb8f5 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -1,7 +1,6 @@ <(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({ @@ -15,7 +14,7 @@ Html({ character char glyph table unicode vim xorg x11 x '], stylesheet => [qw'light'], - data => [qw( digraphs.inc.pl )], + data => [qw( data/digraphs.inc.pl )], }); :> @@ -39,7 +38,7 @@ say '

Unofficial proposals', :> <: -my $di = do 'digraphs.inc.pl' +my $di = do 'data/digraphs.inc.pl' or die "Error loading digraphs data: ", $@ // $!; if (exists $get{v}) { @@ -94,11 +93,11 @@ if ($mode) { for my $colchars (@columns) { print ''; print qq'' for map {scalar @$_} @{$colchars}; -print "\n"; +say ''; for my $section (qw{thead tfoot}) { print "<$section>'; @@ -127,10 +126,10 @@ for my $c1group (@chars) { printf "\n".'
↳"; print '', EscapeHTML($_) for map {@$_} @{$colchars}; - print " \n"; + say ' '; } for my $c1group (@chars) { print '
%s', join(' ', @class), EscapeHTML($desc), $glyph; } - print "\n", EscapeHTML($c1), "\n"; + say "\n", EscapeHTML($c1); } } -print "
\n"; +say ''; print '


' if exists $get{split}; }