X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/a9f9b6054445a839cecdb10949adbd9dccbd7682..94fea8c0e6ba8cea67d69dd0e49142811bba1611:/digraphs.plp?ds=sidebyside diff --git a/digraphs.plp b/digraphs.plp index e66ec8f..24eb8f5 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -1,12 +1,11 @@ <(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({ title => 'digraph cheat sheet', - version => '1.1', + version => '1.2', description => [ "Complete table of digraph characters from $modename.", ], @@ -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 ' | ', 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 " |
---|