Debian Codegraph @

phsource/ph_konkani

raw
1
2 //====================================================
3 // kankani
4 //====================================================
5
6 phoneme :0
7 virtual
8 length 25
9 endphoneme
10
11 phoneme :1
12 virtual
13 length 50
14 endphoneme
15
16 phoneme : // Lengthen the previous vowel by "length"
17 virtual
18 length 100
19 endphoneme
20
21 phoneme @
22 vwl flag1 starttype #@ endtype #@
23 length 130
24
25 ChangeIfDiminished(@-)
26 IF nextPh(H) OR prevPh(H) THEN
27 FMT(vowel/@_low)
28 ENDIF
29 IF nextPh(j) THEN
30 FMT(vowel/V_3)
31 ENDIF
32 FMT(vowel/@_bck)
33 endphoneme
34
35
36 phoneme V
37 vwl flag1 starttype #@ endtype #@
38 length 140
39
40 IF thisPh(isWordStart) THEN
41 FMT(vowel/V_3)
42 RETURN
43 ENDIF
44
45 IF thisPh(isNotStressed) THEN
46 length 130
47
48 IF thisPh(isWordEnd) AND NOT thisPh(isFirstVowel) THEN
49 ChangePhoneme(NULL)
50 ENDIF
51
52 IF prevPh(H) THEN
53 ChangePhoneme(@)
54 ENDIF
55
56 IF prev2PhW(isVowel) AND NOT nextVowel(isFlag1) THEN
57 IF thisPh(isFinalVowel) AND nextPhW(isNotVowel) THEN
58 // don't delete schwa before a word-final consonant
59 ELSE
60 ChangePhoneme(NULL)
61 ENDIF
62 ENDIF
63
64 IF prevPh(isPalatal) AND NOT nextPh(H) THEN
65 ChangePhoneme(@3)
66 ELSEIF prevPh(r) THEN
67 ChangePhoneme(@2)
68 ELSE
69 ChangePhoneme(@)
70 ENDIF
71 ENDIF
72
73 IF nextPh(H) OR prevPh(H) THEN
74 FMT(vowel/@_low)
75 ENDIF
76
77 IF prevPh(w) THEN
78 FMT(vowel/V_4)
79 ENDIF
80
81 FMT(vowel/V_3)
82 endphoneme
83
84
85 phoneme @2
86 vwl flag1 starttype #@ endtype #@
87 length 130
88 FMT(vowel/@_low)
89 endphoneme
90
91 phoneme @3
92 vwl flag1 starttype #@ endtype #@
93 length 130
94 ChangeIfDiminished(@-)
95 FMT(vowel/@_3)
96 endphoneme
97
98
99
100
101 phoneme i:
102 vwl lng starttype #i endtype #i
103 length 250
104 IF thisPh(isUnstressed) THEN
105 ChangePhoneme(i)
106 ENDIF
107 IfNextVowelAppend(;)
108 FMT(vowel/i_fnt)
109 endphoneme
110
111 phoneme i // as [i:] but not marked as 'long'
112 vwl starttype #i endtype #i
113 length 230
114 IfNextVowelAppend(;)
115 FMT(vowel/ii_6)
116 endphoneme
117
118 phoneme I
119 vwl starttype #i endtype #i
120 length 150
121 IfNextVowelAppend(;)
122 FMT(vowel/ii_3)
123 endphoneme
124
125 phoneme e:
126 vwl lng starttype #e endtype #e
127 length 240
128 FMT(vowel/e_2)
129 endphoneme
130
131 phoneme e
132 vwl starttype #e endtype #e
133 length 165
134 FMT(vowel/e_2)
135 endphoneme
136
137 phoneme E:
138 vwl lng starttype #e endtype #e
139 length 230
140 FMT(vdiph/ee-e)
141 endphoneme
142
143 phoneme E
144 vwl starttype #e endtype #e
145 length 175
146 FMT(vowel/e_mid)
147 endphoneme
148
149 phoneme &:
150 vwl lng starttype #a endtype #a
151 length 230
152 FMT(vowel/&)
153 endphoneme
154
155
156 phoneme a:
157 vwl lng starttype #a endtype #a
158 length 220
159 IF nextPhW(j) THEN
160 FMT(vowel/a_5)
161 ENDIF
162 FMT(vowel/aa_9)
163 endphoneme
164
165 phoneme a
166 vwl lng starttype #a endtype #a
167 length 165
168 FMT(vowel/a#_3)
169 endphoneme
170
171
172 phoneme o:
173 vwl lng starttype #o endtype #o
174 length 240
175 FMT(vowel/o_2)
176 endphoneme
177
178 phoneme o
179 vwl starttype #o endtype #o
180 length 165
181 FMT(vowel/o)
182 endphoneme
183
184 phoneme O:
185 vwl lng starttype #o endtype #o
186 length 225
187 FMT(vowel/oo_4)
188 endphoneme
189
190
191 phoneme O
192 vwl starttype #o endtype #o
193 length 165
194 FMT(vowel/0)
195 endphoneme
196
197
198 phoneme U
199 vwl starttype #u endtype #u
200 length 165
201 FMT(vowel/uu_bck)
202 endphoneme
203
204
205 phoneme u:
206 vwl lng starttype #u endtype #u
207 length 250
208 FMT(vowel/u_bck)
209 endphoneme
210
211
212 // Nasal vowels
213 //=============
214
215 phoneme i~
216 vwl lng starttype #i endtype #i
217 length 220
218 FMT(vnasal/i_n2)
219 endphoneme
220
221 phoneme I~
222 vwl lng starttype #i endtype #i
223 length 170
224 FMT(vnasal/ii_n)
225 endphoneme
226
227 phoneme e~
228 vwl lng starttype #e endtype #e
229 length 220
230 FMT(vnasal/e_n)
231 endphoneme
232
233 phoneme E~
234 vwl lng starttype #e endtype #e
235 length 220
236 FMT(vnasal/ee_n2)
237 endphoneme
238
239 phoneme a~
240 vwl lng starttype #a endtype #a
241 length 240
242 FMT(vnasal/a_n)
243 endphoneme
244
245 phoneme V~
246 vwl lng starttype #@ endtype #@
247 length 220
248 FMT(vnasal/V_n)
249 endphoneme
250
251 phoneme O~
252 vwl lng starttype #o endtype #o
253 length 220
254 FMT(vnasal/oo_n2)
255 endphoneme
256
257 phoneme o~
258 vwl lng starttype #o endtype #o
259 length 220
260 FMT(vnasal/o_n)
261 endphoneme
262
263 phoneme U~
264 vwl starttype #u endtype #u
265 length 170
266 FMT(vnasal/u_n)
267 endphoneme
268
269 phoneme u~
270 vwl lng starttype #u endtype #u
271 length 220
272 FMT(vnasal/u_n)
273 endphoneme
274
275
276 // Diphthongs
277 //===========
278
279
280 phoneme aI
281 vwl lng starttype #@ endtype #i
282 length 240
283 lng
284 FMT(vdiph/&i)
285 endphoneme
286
287 phoneme aU
288 vwl lng starttype #a endtype #u
289 length 240
290 lng
291 FMT(vdiph/aau_3)
292 endphoneme
293
294
295
296 // CONSONANTS
297 //===========
298
299 phoneme v // approximant, not fricative
300 import_phoneme base1/v#
301 voicingswitch f
302 endphoneme
303
304
305 phoneme w#
306 liquid
307 lengthmod 7
308 FMT(w/w2)
309 endphoneme
310
311
312 phoneme H // use for full "h"
313 import_phoneme base1/h
314 endphoneme
315
316
317
318 // bilabial plosives
319 //==================
320
321 phoneme p
322 import_phoneme consonants/p-
323 endphoneme
324
325
326 phoneme p#
327 import_phoneme consonants/ph
328 endphoneme
329
330
331 phoneme b // this is [b]
332 import_phoneme base1/b
333 endphoneme
334
335
336 phoneme b#
337 vcd blb stp
338 lengthmod 5
339 voicingswitch p#
340 Vowelin f1=0 f2=1000 -50 -100 f3=-200 80
341 Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=30
342
343 IF PreVoicing THEN
344 FMT(b/xb)
345 ENDIF
346
347 FMT( b/b@2) addWav(ustop/p_asp, 70)
348 endphoneme
349
350
351
352
353 // dental plosives
354 //==================
355
356 phoneme t // dental variant of /t/
357 import_phoneme base1/t[
358 voicingswitch d
359 endphoneme
360
361
362 phoneme t# // dental variant of /t/
363 vls dnt stp
364 lengthmod 2
365 voicingswitch d
366 Vowelin f1=0 f2=1500 -300 300 f3=-100 80 amp=16
367 Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20
368 IF nextPh(isPause2) THEN
369 WAV(ustop/t_dnt, 35)
370 ENDIF
371 WAV(ustop/t_dnt, 50)
372 endphoneme
373
374
375 phoneme d // dental variant of /d/
376 import_phoneme base1/d[
377 voicingswitch t
378 endphoneme
379
380
381 phoneme d#
382 vcd dnt stp
383 lengthmod 5
384 voicingswitch t#
385 Vowelin f1=0 f2=1500 -300 300 f3=-100 80
386 Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20
387
388 IF PreVoicing THEN
389 FMT(d/xd)
390 ENDIF
391
392 FMT(d/xd3) addWav(ustop/t_dnt, 40)
393 endphoneme
394
395
396
397
398 // retroflex plosives
399 //===================
400
401 phoneme t.
402 vls rfx stp
403 lengthmod 2
404 ipa ʈ
405 voicingswitch d.
406 Vowelin f1=0 f2=1800 -300 300 f3=-400 80
407 Vowelout f1=0 f2=1800 -300 250 f3=-400 80 rms=20 colr=2
408 WAV(ustop/t_short)
409 endphoneme
410
411 phoneme t.#
412 vls rfx stp
413 lengthmod 2
414 ipa ʈU+02B0
415 voicingswitch d.#
416 Vowelin f1=0 f2=1800 -300 300 f3=-200 80
417 Vowelout f1=0 f2=1800 -300 250 f3=-400 80 rms=20 colr=2
418
419 IF nextPhW(t.#) THEN
420 ChangePhoneme(t.)
421 ENDIF
422 WAV(ustop/th_rfx2, 80)
423 endphoneme
424
425 phoneme d.
426 vcd rfx stp
427 lengthmod 5
428 voicingswitch t.
429 ipa ɖ
430 Vowelin f1=1 f2=1800 -300 300 f3=-400 80
431 Vowelout f1=1 f2=1800 -300 300 f3=-400 80 colr=2
432
433 IF PreVoicing THEN
434 FMT(d/xdr)
435 ENDIF
436
437 IF nextPh(isPause2) THEN
438 FMT(d/d_) addWav(x/d_)
439 ENDIF
440
441 FMT(d/dr) addWav(x/d)
442 endphoneme
443
444
445 phoneme d.#
446 vcd rfx stp
447 lengthmod 5
448 ipa ɖU+02B0
449 voicingswitch t.#
450 Vowelin f1=1 f2=1800 -300 300 f3=-400 80
451 Vowelout f1=1 f2=1800 -300 300 f3=-400 80 colr=2
452
453 IF PreVoicing THEN
454 FMT(d/xdr)
455 ENDIF
456
457 FMT(d/dr) addWav(ustop/t)
458 // FMT(d/dr) addWav(ustop/th_rfx)
459 endphoneme
460
461
462
463
464 // palatal plosives
465 //=================
466
467 // also try [tS] and [dZ]
468
469 phoneme c
470 vls pla afr sib
471 voicingswitch dZ
472 lengthmod 2
473 Vowelin f1=0 f2=2300 200 400 f3=-100 80
474
475 IF nextPh(isPause2) THEN
476 WAV(ustop/tsh_)
477 ENDIF
478 WAV(ustop/tsh_unasp)
479 endphoneme
480
481
482
483 phoneme c#
484 CALL base1/tS;
485 ipa cU+02B0
486 endphoneme
487
488
489 phoneme J
490 import_phoneme base1/J
491 endphoneme
492
493
494 phoneme J#
495 vcd pal afr sib
496 lengthmod 5
497 voicingswitch c#
498 Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70
499 Vowelout f1=0 f2=2700 400 600 f3=300 80 colr=1
500
501 IF PreVoicing THEN
502 FMT(dzh/xdz_pzd)
503 ENDIF
504
505 FMT(dzh/xdz_pzd) addWav(ustop/ts_pzd)
506 endphoneme
507
508
509
510
511
512 // velar plosives
513 //==================
514
515
516 phoneme k
517 import_phoneme consonants/k-
518 voicingswitch g
519 endphoneme
520
521 phoneme k#
522 import_phoneme consonants/k#
523 voicingswitch g#
524 endphoneme
525
526
527 phoneme g
528 import_phoneme base1/g
529 voicingswitch k
530 endphoneme
531
532
533 phoneme g#
534 vcd dnt stp
535 lengthmod 5
536 voicingswitch k#
537 Vowelin f1=1 f2=2300 200 300 f3=-150 80 rms=20
538 Vowelout f1=0 f2=2300 300 400 f3=-150 80 rms=20
539
540 IF PreVoicing THEN
541 FMT(g2/xg)
542 ENDIF
543
544 IF nextPh(isPause2) THEN
545 FMT(g2/xg) addWav(ustop/k_asp, 35)
546 ENDIF
547 FMT(g2/xg) addWav(ustop/k_asp, 50)
548 endphoneme
549
550 //================
551
552 phoneme #X2 // click, use for indicating combining long vowels
553 vls alv frc sib
554 lengthmod 3
555 WAV(ustop/percus02, 60)
556 endphoneme
557
558
559 phoneme r
560 liquid rhotic
561 lengthmod 3
562
563 IF thisPh(isWordEnd) THEN
564 CALL base1/r/
565 ELSE
566 IF prevPhW(isVowel) THEN
567 IF nextPhW(isNotVowel) THEN
568 IF nextPhW(v) THEN
569 ChangePhoneme(**) // test for lang=ta
570 ENDIF
571
572 IF nextPhW(isUStop) OR nextPhW(isVStop) THEN
573 ChangePhoneme(*)
574 ENDIF
575 ENDIF
576
577 IF nextPhW(V) THEN // [V] may be removed by ChangePhoneme(NULL)
578 IF next2PhW(isUStop) OR next2PhW(isVStop) THEN
579 ChangePhoneme(*)
580 ENDIF
581 ELSE
582 IF nextPhW(isVowel) THEN
583 ChangePhoneme(*)
584 ENDIF
585 ENDIF
586 ENDIF
587
588 CALL base1/r
589 ENDIF
590 ipa ɾ
591 endphoneme
592
593