X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/c544fb231402a1111fbc42dd7bae87aed6b0f4dc..58725794d72361cc70cb082476a32d08e22d21d0:/latin.plp?ds=inline
diff --git a/latin.plp b/latin.plp
index bbd256b..cac0e92 100644
--- a/latin.plp
+++ b/latin.plp
@@ -2,7 +2,7 @@
Html({
title => 'latin alphabet cheat sheet',
- version => '1.3',
+ version => '1.6',
description => [
],
keywords => [qw'
@@ -17,83 +17,9 @@ Html({
:>
@@ -117,16 +47,21 @@ 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';
@@ -134,12 +69,16 @@ else {
say ' |
';
for my $row (pairs @table) {
- my ($title, $cells) = @{$row};
- printf '', (lc $title) =~ s/<[^>]+>//gr =~ s/\s+/-/gr;
- say '', $title;
+ my ($id, $info) = @{$row};
+
+ printf ' |
', $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++;
@@ -166,11 +105,12 @@ else {
say;
}
}
- say "
\n";
+ say "
";
}
-:>
-
+:>
-
+