コード例 #1
0
        /// <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;
            }
        }
コード例 #2
0
 public Consonant(
     PlaceOfArticulation placeOfArticulation,
     MannerOfArticulation mannerOfArticulation,
     Nullable <Phonation> phonation,
     Nullable <Nasality> nasality,
     Symbol symbol,
     Roundness roundness = Phonetics.Roundness.unrounded,
     int diacriticImpact = 0)
     : base(symbol, diacriticImpact)
 {
     this.Symbol               = symbol;
     this.Roundness            = roundness;
     this.PlaceOfArticulation  = placeOfArticulation;
     this.Phonation            = phonation;
     this.Nasality             = nasality;
     this.MannerOfArticulation = mannerOfArticulation;
     this.DiacriticImpact      = diacriticImpact;
 }
コード例 #3
0
 public Consonant(PlaceOfArticulation placeOfArticulation, Symbol symbol = null, int diacriticImpact = 0) : base(symbol, diacriticImpact)
 {
     this.PlaceOfArticulation = placeOfArticulation;
 }