From: Mischa POSLAWSKY Date: Mon, 24 Apr 2017 00:22:31 +0000 (+0200) Subject: unicode: secondary ipa header with place categories X-Git-Tag: v1.10~71 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/887c3bf51abe9f83b4892c48437a7947ebb7fa5d unicode: secondary ipa header with place categories Support multiple > prefixes in header cells to span multiple columns. --- diff --git a/Shiar_Sheet/FormatChar.pm b/Shiar_Sheet/FormatChar.pm index d7c59c1..71dadfe 100644 --- a/Shiar_Sheet/FormatChar.pm +++ b/Shiar_Sheet/FormatChar.pm @@ -248,11 +248,15 @@ sub table { my @colheads; while ($digraphs->[0] !~ /^\./) { my $cell = shift @$digraphs or last; + if ($cell eq '>') { + push @colheads, ''; + next; + } push @colheads, join('', '<', $cell =~ s/^-// ? 'td' : 'th', $cell =~ s/:(.*)// && qq{ title="$1"}, - $cell =~ s/^>// && ' colspan=2', + $cell =~ s/^(>+)// && ' colspan='.(length($1) + 1), '>', $cell eq '_' ? ' ' : $cell ); diff --git a/unicode-table.inc.pl b/unicode-table.inc.pl index f93a8d8..64f3e23 100644 --- a/unicode-table.inc.pl +++ b/unicode-table.inc.pl @@ -172,6 +172,7 @@ latin => { ipa => { cons => [qw{ + - >Labial >>>Coronal >>Dorsal >>Laryngeal > - BiL:Bilabial LD:Labiodental D:Dental Alv:Alveolar PA:Postalveolar Rf:Retroflex Pal:Palatal Vel:Velar Uv:Uvular Ph:Pharyngeal EG:Epiglottal Gl:Glottal