X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/f213c32b75192ca0f7ffe6ad8ee410d130c00fa5..HEAD:/latin.plp diff --git a/latin.plp b/latin.plp index 6af6647..578d858 100644 --- a/latin.plp +++ b/latin.plp @@ -2,7 +2,7 @@ Html({ title => 'latin alphabet cheat sheet', - version => '1.4', + version => '1.7', description => [ ], keywords => [qw' @@ -17,13 +17,6 @@ Html({ :> @@ -49,33 +47,36 @@ or 'mercan) letters A–Z. Also see related alphabets and font comparison.

-
- <: -use List::Util qw( pairs ); - -my @table = do 'writing-latn.inc.pl'; -if ($! or $@) { - Alert("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 ''; - - for my $row (pairs @table) { - my ($id, $info) = @{$row}; +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 "
"; + +sub printtr { + for my $id (@_) { + my $info = $table->{$id}; + + if (ref $info eq 'ARRAY') { + printtr(@{$info}); + next; + } printf '', $id; my $th = 'th'; @@ -111,11 +112,9 @@ else { say; } } - say "\n"; } -:>
- +:>