X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/c0cc7ea9c5b3a270b1b594a682b0e71b9e500dcf..0f1264a15b66ff3682c5ebe2b9af8d2936a302f9:/latin.plp?ds=sidebyside
diff --git a/latin.plp b/latin.plp
index 687e082..578d858 100644
--- a/latin.plp
+++ b/latin.plp
@@ -2,7 +2,7 @@
Html({
title => 'latin alphabet cheat sheet',
- version => '1.3',
+ version => '1.7',
description => [
],
keywords => [qw'
@@ -17,13 +17,6 @@ Html({
:>
@@ -49,36 +47,41 @@ 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 '# ASCII â 64';
- print ' | ', $_ for 1 .. 26;
- say ' |
';
-
- for my $row (pairs @table) {
- my ($id, $info) = @{$row};
+my %VOWELCOLS = (map { ($_ => 1) } 0, 4, 8, 14, 20, 24);
+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;
- say '', $info->{title} // ucfirst $id;
+ my $th = 'th';
+ $th .= sprintf ' title="%s"', $_ for $info->{title} || ();
+ say "<$th>", $info->{name} // ucfirst $id;
my $colspan = 1;
my $col = 0;
@@ -109,11 +112,11 @@ else {
say;
}
}
- say " |
\n";
}
-:>
-
+:>
-
+