From: Mischa POSLAWSKY Date: Sun, 23 Apr 2017 23:39:55 +0000 (+0200) Subject: unicode: ipa tones and contours tables X-Git-Tag: v1.10~73 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/e20a73e69afd8061db197eb607700ce66ac70552 unicode: ipa tones and contours tables --- diff --git a/Shiar_Sheet/FormatChar.pm b/Shiar_Sheet/FormatChar.pm index b2e4d09..9a00276 100644 --- a/Shiar_Sheet/FormatChar.pm +++ b/Shiar_Sheet/FormatChar.pm @@ -248,10 +248,12 @@ sub table { my @colheads; while ($digraphs->[0] !~ /^\./) { my $cell = shift @$digraphs or last; - push @colheads, sprintf( - '<%s%s>%s', + push @colheads, join('', + '<', $cell =~ s/^-// ? 'td' : 'th', - $cell =~ s/:(.*)// ? qq{ title="$1"} : '', + $cell =~ s/:(.*)// && qq{ title="$1"}, + $cell =~ s/^>// && ' colspan=2', + '>', $cell eq '_' ? ' ' : $cell ); } diff --git a/unicode-table.inc.pl b/unicode-table.inc.pl index 73d27d6..f93a8d8 100644 --- a/unicode-table.inc.pl +++ b/unicode-table.inc.pl @@ -206,6 +206,22 @@ ipa => { .>Near-open æ - ɐ - - - .>Open a ɶ -ä -ɒ̈ ɑ ɒ }], + tones => [qw{ + .>Upstep > ꜛ + .>Higher Ë¥ ̋ + .>High ˦ ́ + .>Mid ˧ ̄ + .>Low ˨ ̀ + .>Lower Ë© ̏ + .>Downstep > ꜜ + }], + contours => [qw{ + - >Rising >Falling + .>High ˧˥ ᷄ ˥˧ ᷇ + .>Rising Ë©Ë¥ ̌ ˧˦˩ ᷈ + .>Falling ˨˩˦ ᷉ ˥˩ ̂ + .>Low ˩˧ ᷅ ˧˩ ᷆ + }], #TODO: annotate Rising-Falling as Peaking, Falling-Rising as Dipping }, japanese => { diff --git a/unicode.plp b/unicode.plp index 245be47..c724fda 100644 --- a/unicode.plp +++ b/unicode.plp @@ -110,6 +110,8 @@ my @config = qw( ipa/cons consco vowels + tones + contours ?Japanese ?japanese/hira ?hiraderiv