unicode: ipa tones and contours tables
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 23 Apr 2017 23:39:55 +0000 (01:39 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 May 2017 16:51:17 +0000 (18:51 +0200)
Shiar_Sheet/FormatChar.pm
unicode-table.inc.pl
unicode.plp

index b2e4d09..9a00276 100644 (file)
@@ -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 '_' ? '&nbsp;' : $cell
                );
        }
index 73d27d6..f93a8d8 100644 (file)
@@ -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 => {
index 245be47..c724fda 100644 (file)
@@ -110,6 +110,8 @@ my @config = qw(
                ipa/cons
                        consco
                        vowels
+                       tones
+                       contours
        ?Japanese
                ?japanese/hira
                        ?hiraderiv