X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/f4202b592c541333b3cd4aca471025dea8cb18fd..d22e7febda8720bc38069f7061adb43b98143c48:/latin.plp diff --git a/latin.plp b/latin.plp index 897fe0a..199a49c 100644 --- a/latin.plp +++ b/latin.plp @@ -2,7 +2,7 @@ Html({ title => 'latin alphabet cheat sheet', - version => '1.3', + version => '1.5', description => [ ], keywords => [qw' @@ -17,76 +17,9 @@ Html({ :> @@ -120,15 +57,32 @@ if ($! or $@) { Alert("Table data not found", $@ || $!); } else { + say '\n"; + my %VOWELCOLS = (map { ($_ => 1) } 0, 4, 8, 14, 20, 24); say ''; + say ''; + for my $row (pairs @table) { - my ($title, $cells) = @{$row}; - printf '', (lc $title) =~ s/<[^>]+>//gr =~ s/\s+/-/gr; - say '', $id; + my $th = 'th'; + $th .= sprintf ' title="%s"', $_ for $info->{title} || (); + say "<$th>", $info->{name} // ucfirst $id; + my $colspan = 1; my $col = 0; - for (@{$cells}) { + for (@{ $info->{list} }) { $col++; if ($_ eq '>') { $colspan++; @@ -161,5 +115,7 @@ else { :> - +
# ASCII − 64'; + print '', $_ for 1 .. 26; + say '
', $title; + my ($id, $info) = @{$row}; + + printf '