
//====================================================
//  Bengali, inherits from Hindi
//====================================================


phoneme V  // inherent vowel, can be [O] or [o]
  vowel flag1 starttype #o  endtype #o
  length 200

  IF thisPh(isWordEnd) AND prevPhW(isNotVowel) AND prev2PhW(isVowel) THEN
    ChangePhoneme(NULL)
  ENDIF

  IF thisPh(isFirstVowel) THEN
    IF nextVowel(i) OR nextVowel(u) THEN
      ChangePhoneme(o)
    ENDIF
    
    IF prevPhW(r) THEN
      ChangePhoneme(o)
    ENDIF  
  ENDIF

  ChangePhoneme(O)
endphoneme


phoneme a
  vowel starttype #a endtype #a
  length 225
  FMT(vowel/a_3)
endphoneme


phoneme i
  vowel starttype #i endtype #i
  length 210
  FMT(vowel/i_6)
endphoneme


phoneme u
  vowel starttype #u endtype #u
  length 210
  FMT(vowel/u)
endphoneme


phoneme e
  vowel starttype #e endtype #e
  length 210
  FMT(vowel/e)
endphoneme


phoneme &
  vowel starttype #a endtype #a
  length 210
  FMT(vowel/&_2)
endphoneme


phoneme o
  vowel starttype #o endtype #o
  length 210
  IF nextPhW(w) THEN
    length 170
  ENDIF
  FMT(vowel/o)
endphoneme


phoneme O
  vowel starttype #o endtype #o
  length 200
  FMT(vowel/oo_5)
endphoneme


phoneme tS
  import_phoneme base/tS
endphoneme


phoneme tS#
  import_phoneme base/tS
endphoneme


phoneme ~
  virtual
endphoneme

