X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/bac74b5934f22cc3d0e971d26fe0275f7f5db7b3..72d7fa29bef747722a947e079ceac1a21e12acc6:/latin.plp diff --git a/latin.plp b/latin.plp index 9dd8fe9..671d6d7 100644 --- a/latin.plp +++ b/latin.plp @@ -21,7 +21,16 @@ Html({ font-family: Suetterlin; /* R. G. Arens */ src: url("/suetterlin.ttf"); } - .glyphs tr:first-child+tr+tr td { font-family: Suetterlin } + #sütterlin td { font-family: Suetterlin } + #tap-code td, + #tap-simplified td { + line-height: 1ex; + } + #old-roman-cursive { + stroke-width: 3; + stroke-linecap: round; + stroke-linejoin: round; + } svg path:not([fill]) { stroke: currentColor; @@ -46,14 +55,33 @@ and common chars.

<: +use List::Util qw( pairs ); + my @table = do 'writing-latn.inc.pl'; if ($! or $@) { - printf "

Table data not found: %s.

\n", $@ || $!; + Alert("Table data not found", $@ || $!); } else { say ''; - print ref $_ ne 'ARRAY' ? "', (lc $title) =~ s/<[^>]+>//gr =~ s/\s+/-/gr; + say '
$_\n" : map {/^$_\n"} @$_ - for @table; + for my $row (pairs @table) { + my ($title, $cells) = @{$row}; + printf '
', $title; + my $colspan = 1; + for (@{$cells}) { + if ($_ eq '>') { + $colspan++; + next; + } + print "\t 1) { + print " colspan=$colspan"; + $colspan = 1; + } + print '>' unless s/^\n"; }