Beispiel #1
0
        public Phone(Phonation phonation, Symbol symbol = null, int diacriticImpact = 0)
        {
            this.Phonation = phonation;
            this.Symbol    = symbol;

            this.DiacriticImpact = diacriticImpact;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Phone"/> struct.
        /// </summary>
        /// <param name="type">the phone type (consonant or vowel)</param>
        /// <param name="phonation">the phonation (voice intensity)</param>
        /// <param name="place">the place of articulation for consonants.</param>
        /// <param name="manner">the manner of articulation for consonants.</param>
        /// <param name="height">the vowel height.</param>
        /// <param name="backness">the horizontal vowel position.</param>
        /// <param name="roundedness">the vowel roundedness.</param>
        /// <param name="isRhotic">a value indicating whether the phone is rhotic.</param>
        /// <param name="isSyllabic">a value indicating whether the phone is syllabic.</param>
        public Phone(
            PhoneType type,
            Phonation phonation,
            PlaceOfArticulation place,
            MannerOfArticulation manner,
            VowelHeight height,
            VowelBackness backness,
            VowelRoundedness roundedness,
            bool isRhotic,
            bool isSyllabic)
        {
            this.Type       = type;
            this.Phonation  = phonation;
            this.IsSyllabic = isSyllabic;

            if (type == PhoneType.Vowel)
            {
                this.Height      = height;
                this.Backness    = backness;
                this.Roundedness = roundedness;
                this.IsRhotic    = isRhotic;
                this.Place       = null;
                this.Manner      = null;
            }
            else
            {
                this.Height      = null;
                this.Backness    = null;
                this.Roundedness = null;
                this.IsRhotic    = null;
                this.Place       = place;
                this.Manner      = manner;
            }
        }
Beispiel #3
0
        public Vowel(Frontness frontness, Height height, Nasality nasality, Symbol symbol, Roundness roundness, Phonation phonation = Phonetics.Phonation.voiced, Rhoticity rhoticity = Phonetics.Rhoticity.nonRhotic, MannerOfArticulation mannerOfArticulation = Enums.MannerOfArticulation.vowel)
            : base()
        {
            this.MannerOfArticulation = mannerOfArticulation;

            this.Frontness = frontness;
            this.Height    = height;
            this.Nasality  = nasality;
            this.Phonation = phonation;
            this.Rhoticity = rhoticity;
            this.Roundness = roundness;
            this.Symbol    = symbol;
        }