X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/c6516cb90abcb0a444a6b795f42ebf8a47e008fd..d22e7febda8720bc38069f7061adb43b98143c48:/latin.plp diff --git a/latin.plp b/latin.plp index b79e33a..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,79 +17,9 @@ Html({ :> @@ -123,6 +57,15 @@ 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++; @@ -168,5 +115,7 @@ else { :> - +
# ASCII − 64'; @@ -130,12 +73,16 @@ else { say '
', $title; + my ($id, $info) = @{$row}; + + printf '