X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/88048e2c00e3e9a9c172e788722354017cd401ec..HEAD:/latin.plp diff --git a/latin.plp b/latin.plp index a86f2ca..578d858 100644 --- a/latin.plp +++ b/latin.plp @@ -2,7 +2,7 @@ Html({ title => 'latin alphabet cheat sheet', - version => '1.6', + version => '1.7', description => [ ], keywords => [qw' @@ -48,31 +48,35 @@ Also see related alphabets and font comparison.

<: -use List::Util qw( pairs ); - -my @table = do 'writing-latn.inc.pl'; -if ($! or $@ or !@table) { - die ["Table data not found", $@ || $!]; -} -else { +my $table = Data('writing-latn'); +{ say '
'; say '\n"; +} - my %VOWELCOLS = (map { ($_ => 1) } 0, 4, 8, 14, 20, 24); - say ''; - say ''; +my %VOWELCOLS = (map { ($_ => 1) } 0, 4, 8, 14, 20, 24); +say '
# ASCII − 64'; - print '', $_ for 1 .. 26; - say '
'; +say ''; +printtr('order'); +say ''; +printtr('default'); +say "
"; - for my $row (pairs @table) { - my ($id, $info) = @{$row}; +sub printtr { + for my $id (@_) { + my $info = $table->{$id}; + + if (ref $info eq 'ARRAY') { + printtr(@{$info}); + next; + } printf '', $id; my $th = 'th'; @@ -108,7 +112,6 @@ else { say; } } - say ""; } :>