Skip to content

[Request] Improve (Di/Tri)phthong and Tone Contour Support in trans_list for Vietnamese #224

Description

@jade-bejide

I've noticed that trans_list and xsampa_list tends to break up tone contours from their associated phoneme and that diphthongs and triphthongs are split into monophthongs.

Set Up pip install git+https://github.com/dmort27/epitran.git

Issue

>>> import epitran
>>> epi=epitran.Epitran('vie-Latn', tones=True)
>>> epi.transliterate("iã")
'ʔiə˧˥'
>>> epi.trans_list("iã")
['ʔ', 'i', 'ə', '˧', '˥'] # a desirable output is something like ['ʔ', 'iə˧˥'] or at least ['ʔ', 'i', 'ə˧˥']
>>> epi.xsampa_list("iã")
['?', 'i', '@', '_M', '_T'] # a desirable output is something like ['?', 'i@_M_T'] or at least ['?', 'i', '@_M_T']

Is it possible to add support for multiphthongs and tone contours?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions