cldf-clts / clts-legacy

Cross-Linguistic Transcription Systems
Apache License 2.0
4 stars 3 forks source link

Tones on vowels are not properly handled #96

Closed LinguList closed 5 years ago

LinguList commented 6 years ago

Our fundamental check is the reverse generation of sounds, but this does not work with vowels + tones:

In [3]: bipa['ê']
Out[3]: <pyclts.models.Vowel: unrounded close-mid front with_falling_tone vowel>

In [4]: bipa['ê'].s
Out[4]: 'ê'

In [5]: bipa['unrounded close-mid front with_falling_tone vowel'].s
Out[5]: '<?>̂'

Our requirement is that the ".s" attribute is identical with the ".name" attribute when generating sounds from the name or from the grapheme.

LinguList commented 5 years ago

Here's the solution: In models.py, add tonal features to the EXCLUDE FEATURES:

EXCLUDE_FEATURES = ['apical', 'laminal', 'ejective', 
        'with_falling_tone',
        'with_extra_low_tone',
        'with_extra-high_tone',
        'with_falling_tone',
        'with_low_tone',
        'with_global_fall',
        'with_global_rise',
        'with_high_tone',
        'with_mid_tone',
        'with_rising_tone',
        'with_upstep'
        ]
tresoldi commented 5 years ago

Do you want me to include it in the PR I am preparing?

LinguList commented 5 years ago

Yes, please. Maybe also correct the "with_extra-high_tone" into "with_extra_high_tone"