ph_gujarati 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // Phonemes for gujarati
  2. // This inherits from ph_hindi
  3. phoneme aI
  4. vwl lng starttype #@ endtype #i
  5. length 240
  6. lng
  7. FMT(vdiph/@i_4)
  8. endphoneme
  9. phoneme aI~
  10. vwl lng starttype #@ endtype #i
  11. length 270
  12. lng
  13. FMT(vnasal/ai_n)
  14. endphoneme
  15. phoneme aU
  16. vwl lng starttype #a endtype #u
  17. length 240
  18. lng
  19. FMT(vdiph/a#u)
  20. endphoneme
  21. phoneme aU~
  22. vwl lng starttype #a endtype #u
  23. length 300
  24. lng
  25. FMT(vnasal/au_n)
  26. endphoneme
  27. phoneme V
  28. vwl flag1 starttype #@ endtype #@
  29. length 140
  30. IF thisPh(isWordStart) THEN
  31. FMT(vowel/V_2)
  32. RETURN
  33. ENDIF
  34. IF thisPh(isNotStressed) THEN
  35. length 130
  36. IF thisPh(isWordEnd) AND NOT thisPh(isFirstVowel) THEN
  37. ChangePhoneme(NULL)
  38. ENDIF
  39. IF prev2PhW(isVowel) AND NOT nextVowel(isFlag1) THEN
  40. IF nextPhW(isNotVowel) AND nextPh(isWordEnd) THEN
  41. // don't delete schwa before a word-final consonant
  42. ELSE
  43. ChangePhoneme(NULL)
  44. ENDIF
  45. ENDIF
  46. IF prevPh(isPalatal) AND NOT nextPh(H) THEN
  47. ChangePhoneme(@3)
  48. ELSEIF prevPh(r) THEN
  49. ChangePhoneme(@2)
  50. ELSE
  51. ChangePhoneme(@)
  52. ENDIF
  53. ENDIF
  54. IF prevPh(w) THEN
  55. FMT(vowel/V_4)
  56. ENDIF
  57. FMT(vowel/V_2)
  58. endphoneme
  59. phoneme o:
  60. vwl lng starttype #o endtype #o
  61. length 227
  62. FMT(vowel/o)
  63. endphoneme