latin: classify old roman w as invalid
[sheet.git] / latin.plp
index 6d23534414ceef6883a09bc46508b0eb9c17ae1c..d51b91bf0e595cd602d3394c6ca0b900cd384c9d 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -26,6 +26,10 @@ Html({
        #tap-simplified td {
                line-height: 1ex;
        }
+       #old-roman-cursive {
+               stroke-linecap: round;
+               stroke-linejoin: round;
+       }
 
        svg path:not([fill]) {
                stroke: currentColor;
@@ -62,7 +66,21 @@ else {
                my ($title, $cells) = @{$row};
                printf '<tr id="%s">', (lc $title) =~ s/<[^>]+>//gr =~ s/\s+/-/gr;
                say '<th>', $title;
-               say "\t", '<td>' x !/^<td/, $_ for @{$cells};
+               my $colspan = 1;
+               for (@{$cells}) {
+                       if ($_ eq '>') {
+                               $colspan++;
+                               next;
+                       }
+                       print "\t<td";
+                       if ($colspan > 1) {
+                               print " colspan=$colspan";
+                               $colspan = 1;
+                       }
+                       print ' class=', $_ ? 'ex' : 'u-invalid' if s/^-//;
+                       print '>';
+                       say;
+               }
        }
        say "</table>\n";
 }