Debian Codegraph @

phsource/ph_danish

raw
1 // PB General rules for vowels:
2 // Short vowels
3 // ACC: Short "pille" [p?el@-], "andre" [AndRV]
4 // AC[V]: Short "piler" [p?ilV] - verbs, not nouns, which is a problem
5 // A[N]: Short "bange" [b?AN@-]
6 // Long vowels
7 // A + @- OR V: Long "ae" "aer" [&:@-]
8 // AC + @- OR V: Long "pile" [pi:l@-]
9 // AC[i]: Long "smidig" [smi:Di]
10
11 // Vowel length changed by eSpeak
12 // Between two voiced consonants
13 // After [l/3]
14 // Before [l/3]
15 // After an "r" sound
16 // Before [N]
17 // Before voiced consonant + [i]
18
19 // PROCEDURES
20
21 // Change the length of SHORT vowels (?+vowel)
22 procedure ShortVowelLength
23 // "endelig", "ånder", "ynde" - Short initial vowel sounds too short TEST
24 IF thisPh(isWordStart) AND nextPhW(n) THEN
25 IF next2PhW(@-) OR next2PhW(V) THEN
26 IF next2PhW(isWordEnd) THEN // NOT "ondeste"
27 length 170
28 RETURN
29 ENDIF
30 ENDIF
31 ENDIF
32
33 // "blod" "slutte", "løn" l/3 makes the vowel too long
34 // NOT "mel'oner"
35 IF prevPhW(l/3) AND thisPh(isFirstVowel) THEN
36 IF thisPh(isStressed) THEN
37 length 100
38 IF nextPhW(N) THEN // [N] makes it even longer - "længden"
39 LengthAdd -20
40 ENDIF
41 // Don't shorten it further if it comes after an "r" sound
42 // Exit the procedure
43 RETURN
44 ENDIF
45 // "transplantation" - the second a - between 2 voiced consonants
46 IF nextPhW(isVoiced) AND nextPhW(isNotVowel) THEN
47 length 100
48 RETURN
49 ENDIF
50 ENDIF
51
52 // "bygge", "bygget", "byggede" - consonant + [@-] makes the vowel too long
53 IF NOT thisPh(?V) THEN // NOT "fjollet"
54 IF prevPhW(isVoiced) AND nextPhW(isVoiced) THEN
55 IF next2PhW(@-) THEN //AND next3PhW(D) THEN
56 IF thisPh(isFirstVowel) THEN // NOT "cellof'anet"
57 length 100
58 RETURN
59 ENDIF
60 ENDIF
61 ENDIF
62 ENDIF
63
64 // "byttet", "lyttet", "flyttet"
65 IF prevPhW(isVoiced) AND prevPhW(isNotVowel) THEN
66 IF nextPhW(isNotVowel) AND next2PhW(@-) AND next3PhW(D) THEN
67 length 100
68 ENDIF
69 ENDIF
70
71 // "firmaet", "politiet - 140 sounds too short
72 IF nextPhW(@-) AND next2PhW(D) AND next2PhW(isWordEnd) THEN
73 length 180
74 ENDIF
75
76 // "forsøgte" stressed second vowel too long TEST
77 IF thisPh(isMaxStress) AND thisPh(isSecondVowel) THEN
78 IF nextPhW(isVoiced) AND nextPhW(isNotVowel) THEN // NOT "papirer"
79 // 2 voiced consonants seem to add further length ([gd] in "forsøgte")
80 IF next2PhW(isVoiced) AND next2PhW(isNotVowel) THEN // NOT "moral"
81 length 110
82 RETURN
83 ENDIF
84 ENDIF
85 ENDIF
86
87 // "bygge", "forbandelse", "lynlås", "centralen" vowel between 2 voiced consonants - too long
88 IF prevPhW(isVoiced) AND nextPhW(isVoiced) THEN // voiced
89 IF prevPhW(isNotVowel) AND nextPhW(isNotVowel) THEN // consonants
90 IF NOT nextPhW(isWordEnd) THEN // NOT "smil"
91 IF NOT next2PhW(j) AND NOT prevPhW(R) THEN // NOT "vilje", "krympe"
92 IF NOT nextPhW(r) AND NOT nextPhW(3-) THEN // NOT "moderne" - vowel + r/3-
93 IF thisPh(isStressed) THEN // NOT [W] in "f'indelønnen"
94 IF thisPh(isFirstVowel) THEN
95 // IF NOT nextPhW(@-) THEN // NOT "væbne"
96 IF NOT nextPhW(isNotVowel) AND NOT next2PhW(isNotVowel) THEN // NOT "væbne"
97 length 110
98 RETURN
99 ENDIF
100 ENDIF
101 ENDIF
102 ENDIF
103 ENDIF
104 IF prevPhW(R) THEN // "krympe" R makes the vowel longer than other voiced consonants
105 // NOT [o] in "rod'eo", NOT [æ] in "trængte"
106 IF thisPh(isMaxStress) AND NOT nextPhW(N) THEN
107 length 90
108 RETURN
109 ENDIF
110 // "trængte" - [N] after the vowel makes it even longer
111 IF thisPh(isMaxStress) AND nextPhW(N) THEN
112 length 75
113 RETURN
114 ENDIF
115 ENDIF
116 ENDIF
117 ENDIF
118 ENDIF
119
120 // "buske" - only sg/sk? TEST
121 IF prevPhW(isNotVowel) AND nextPhW(s) AND next2PhW(isNotVowel) AND next3PhW(@-) THEN
122 length 100
123 ENDIF
124
125 // "projektet"
126 IF prevPhW(S) AND nextPhW(isVoiced) AND nextPhW(isNotVowel) THEN
127 length 100
128 ENDIF
129
130 // "rigtigt", "fred", "frem", "frikvarter" - R makes the vowel too long
131 IF prevPhW(R) OR prevPhW(3-) OR prevPhW(r) THEN
132 IF nextPhW(isNotVowel) THEN // NOT "krigen"
133 IF thisPh(isFirstVowel) THEN // NOT the a in "moral"
134 length 110
135 RETURN
136 ENDIF
137 ENDIF
138
139 // R makes the vowel too long
140 IF thisPh(isWordEnd) THEN // "maleri"
141 length 120
142 RETURN
143 ENDIF
144
145 // "forbrydelse" between 2 voiced consonants
146 IF nextPhW(isVoiced) AND nextPhW(isNotVowel) THEN
147 length 110
148 RETURN
149 ENDIF
150 ENDIF
151
152 // "ring", "ringe", "fængsel", "spinkel", "vindspejl", "enke"
153 IF nextPhW(N) THEN
154 length 100
155 ENDIF
156
157 // "sigte", "henter" t/d + @-/V makes the vowel too long
158 // ?? is this just between 2 voiced consonants ??
159 // ?? does [h] act as a voiced consonant ??
160 IF nextPhW(isNotVowel) AND next2PhW(t) OR next2PhW(d) THEN
161 IF next3PhW(@-) OR next3PhW(V) OR next3PhW(?V) THEN
162 IF thisPh(isFirstVowel) THEN // NOT [i] in "forsp'ildte"
163 length 110
164 RETURN
165 ENDIF
166 ENDIF
167 ENDIF
168
169 // "himlen", "pøblen" l/3 makes the vowel too long
170 IF nextPhW(isNotVowel) AND next2PhW(l/3) AND next3PhW(@-) OR next3PhW(V) THEN
171 length 110
172 ENDIF
173
174 // "filmen" vowel + l/3 makes the vowel too long
175 // Probably due to 2 voiced consonants (lm) - Change the condition?
176 IF nextPhW(l/3) AND next3PhW(@-) THEN
177 IF NOT next2PhW(j) THEN // NOT "vilje"
178 IF next2PhW(isVoiced) THEN // NOT [e] in "folkevogn"
179 length 100
180 ENDIF
181 ENDIF
182 ENDIF
183
184 //"musikken", "piggen", "trafikken" consonant + [@-] makes the vowel too long
185 // Probably wrong. Only k and g? Only [i]?
186 // Could this be due to an English word like "physique" [fIz'i:k]?
187 IF nextPhW(k) OR nextPhW(g)AND next2PhW(@-) THEN
188 IF thisPh(?i) THEN
189 length 100
190 RETURN
191 ENDIF
192 ENDIF
193
194 // "rodeo", lianen" abnormal stress sounds too short
195 IF thisPh(isMaxStress) AND NOT thisPh(isFirstVowel) THEN
196 IF NOT nextPhW(k) AND NOT nextPhW(g) THEN // NOT "ant'ikt" - Like "physique" above?
197 IF NOT nextPhW(N) AND NOT next2PhW(isNotVowel) THEN // NOT "omkr'ing", "eks'empel"
198 IF NOT nextPhW(isVoiced) AND NOT next2PhW(isVoiced) THEN // NOT "bestemme" TEST
199 length 170
200 ENDIF
201 ENDIF
202 ENDIF
203 ENDIF
204 endprocedure
205
206 //--------------------------------------------------------------------
207
208 // Change the length of NORMAL vowels (without ? in front of them)
209 procedure LongVowelLength
210 // "guldmine" [ul/3] makes the vowel extremely short
211 IF prevVowel(l/3) AND prev2PhW(u) THEN
212 length 350
213 RETURN
214 ENDIF
215
216 // "guldur" [ul/3] makes the vowel extremely short
217 IF prev2PhW(u) AND prevPhW(l/3) THEN
218 IF NOT thisPh(isWordEnd) THEN // NOT "umulig"
219 IF NOT nextPhW(t) AND NOT nextPhW(d) THEN // NOT "umuligt"
220 IF NOT nextPhW(s) AND NOT nextPhW(S) THEN // NOT Drakulas, spekulationer ???
221 length 325
222 RETURN
223 ENDIF
224 ENDIF
225 ENDIF
226 ENDIF
227
228 // "dage", "dagevis", fødselsdage" STRANGE BEHAVIOUR - too short at 240
229 IF prevPhW(d) AND nextPhW(@-) THEN
230 IF NOT next2PhW(D) THEN
231 length 350
232 RETURN
233 ENDIF
234 ENDIF
235
236 // "tjeneste" TEST
237 IF prevPhW(tS) AND nextPhW(isVoiced) AND nextPhW(isNotVowel) THEN
238 length 180
239 RETURN
240 ENDIF
241
242 // "havet", "lavet"
243 IF nextPhW(isVoiced) AND next2PhW(@-) AND next3PhW(D) THEN
244 length 180
245 RETURN
246 ENDIF
247
248 // "videre"
249 IF prevPhW(isVoiced) AND nextPhW(isVoiced) THEN // voiced
250 IF prevPhW(isNotVowel) AND nextPhW(isNotVowel) THEN // consonants
251 IF NOT prevPhW(R) AND NOT prevPhW(r) AND NOT prevPhW(3-) THEN
252 length 180
253 RETURN
254 ELSE // [A] in "begravelse" - "r" adds extra length
255 length 120
256 RETURN
257 ENDIF
258 ENDIF
259 ENDIF
260
261 // "alene" - Short initial vowel sounds too short at length 140
262 IF thisPh(isWordStart) THEN
263 length 160
264 // "år? [O] - The word is only 1 vowel: make it long
265 IF thisPh(isWordEnd) THEN
266 length 180
267 ENDIF
268 // "ønske" The vowel should have been made short becauce of 3 x consonant.
269 // Take care of it here
270 IF nextPhW(isNotVowel) AND next2PhW(isNotVowel) AND next3PhW(isNotVowel) THEN
271 length 140
272 ENDIF
273 // "ære"
274 IF nextPhW(V) AND nextPhW(isFinalVowel) THEN
275 length 240
276 ENDIF
277 // "øge", "øgede"
278 IF nextPhW(isNotVowel) AND next2PhW(@-) THEN
279 length 225
280 ENDIF
281 // RETURN
282 ENDIF
283
284 // "døre" vowel + vowel: long
285 IF nextPhW(@-) OR nextPhW(?V) THEN
286 length 225
287 ENDIF
288
289 // "pæne" vowel + consonant + [@-]: long
290 IF nextPhW(isNotVowel) AND next2PhW(@-) THEN
291 IF thisPh(isFirstVowel) THEN
292 IF prevPhW(isVoiced) AND nextPhW(isVoiced) THEN // "vide"
293 length 180
294 ELSE // "pæne"
295 length 225
296 ENDIF
297 RETURN
298 ENDIF
299 // Stressed second syllable in words with initial be- and for-
300 IF NOT thisPh(isSecondVowel) AND thisPh(isMaxStress) THEN // "beb'ude", "form'ode"
301 length 140
302 RETURN
303 ENDIF
304 ENDIF
305
306 // "vildrede"
307 IF nextPhW(D) AND next2PhW(@-) THEN
308 IF NOT thisPh(isMaxStress) THEN
309 length 225
310 RETURN
311 ENDIF
312 ENDIF
313
314 // "guderne", "møde"
315 IF nextPhW(isNotVowel) AND next2PhW(?V) OR next2PhW(V) OR next2PhW(@-) THEN
316 length 225
317 ENDIF
318
319 // "mødes", "vred", "møve", "mene", "dele" - vowel too long between 2 voiced consonants
320 IF prevPhW(isVoiced) AND nextPhW(isVoiced) THEN
321 IF prevPhW(isNotVowel) AND nextPhW(isNotVowel) THEN
322 IF NOT prevPhW(R) AND NOT prevPhW(r) AND NOT prevPhW(3-) AND NOT prevPhW(l/3) THEN
323 IF NOT next2PhW(isVoiced) THEN // NOT "bælte", "bomben"
324 length 180 // mødes, dele
325 RETURN
326 ENDIF
327 IF next2PhW(isNotVowel) THEN // bælte, svælge
328 length 120
329 ENDIF
330 ELIF NOT prevPhW(l/3) AND thisPh(isMaxStress) THEN
331 IF NOT prevPhW(R) AND NOT prevPhW(r) AND NOT prevPhW(3-) THEN
332 length 120 // "vred", "vrede"
333 RETURN
334 ENDIF
335 ENDIF
336 IF prevPhW(R) AND prevPhW(isWordStart) THEN // "råderet"
337 length 180
338 RETURN
339 ENDIF
340 ENDIF
341 ENDIF
342
343 // "huske" - hACC@- vowel too long
344 // 2 consonants - should have been short in da_rules
345 // 140 too long because of [h]??
346 IF prevPhW(h) AND nextPhW(isNotVowel) AND next2PhW(isNotVowel) AND next3PhW(@-) THEN
347 length 110
348 RETURN
349 ENDIF
350
351 // PB long vowel followed by [@-] or [V](vowel+vowel) - "pigen" [p'i@-n]
352 IF nextPhW(@-) OR nextPhW(V) THEN
353 IF thisPh(isFirstVowel) THEN // NOT "best'yrelse", "geb'yrer"
354 length 225
355 ENDIF
356 ENDIF
357
358 // "lydig"
359 IF prevPhW(l/3) AND nextPhW(isVoiced) AND nextPhW(isNotVowel) THEN
360 length 180
361 RETURN
362 ENDIF
363
364 // PB "enig", "enige", "evig", "stædig" - vowel+consolant+[i]
365 IF nextPhW(isNotVowel) AND next2PhW(i) THEN
366 length 225
367 RETURN
368 ENDIF
369
370 // "føden"
371 IF nextPhW(D) AND next2PhW(@-) AND next3PhW(n) THEN
372 IF thisPh(isFirstVowel) THEN
373 length 180
374 ENDIF
375 ENDIF
376
377 // l/3 + vowel makes the vowel too long
378 IF prevPhW(l/3) AND nextPhW(isNotVowel) THEN
379 // "klub", "klud", "slut"
380 // The vowel should have been short but we fix it here
381 IF NOT next2PhW(@-) AND NOT next2PhW(V) AND NOT next2PhW(?V) THEN // NOT "slæde"
382 length 100
383 ELSE
384 // "slæde", "lader", "forlader"
385 length 160
386 ENDIF
387 ENDIF
388
389 // l/3 + vowel + voiced consonant makes the vowel too long
390 IF prevPhW(l/3) AND nextPhW(isVoiced) AND nextPhW(isNotVowel) THEN
391 length 130
392 ENDIF
393
394 // "fryser", "rige"
395 IF prevPhW(r) OR prevPhW(R) OR prevPhW(3-) THEN
396 length 130
397 IF nextPhW(@-) THEN // "rige" [@-] seems to cancel the "r" effect
398 length 240
399 ENDIF
400 ENDIF
401
402 // "længe" - short - 2 consonants => 1 consonant (ng => [N])
403 // Don't use isNasal here!
404 IF nextPhW(N) THEN
405 IF NOT prevPhW(R) AND NOT prevPhW(r) AND NOT prevPhW(3-) THEN
406 length 140
407 ENDIF
408 ENDIF
409
410 // "buskene", "krøbling" The vowel should have been made short becauce og 2 x consonant.
411 // Take care of it here
412 IF nextPhW(isNotVowel) AND next2PhW(isNotVowel) THEN
413 IF NOT nextPhW(l/3) THEN
414 IF NOT nextPhW(r) AND NOT prevPhW(R) AND NOT prevPhW(3-) THEN // NOT "Maria"
415 length 110
416 ENDIF
417 ENDIF
418 ENDIF
419 endprocedure
420 //----------------------------------------------------------------------
421
422 // PHONEMES
423
424 // A bit longer than [@-]
425 phoneme @
426 vwl starttype #@ endtype #@
427 unstressed
428 length 60
429 IfNextVowelAppend(_!)
430 FMT(vowel/@_3)
431 endphoneme
432
433 phoneme @- // very short schwa
434 vwl starttype #@ endtype #@
435 unstressed nsy
436 ipa ə
437 IF nextPhW(*) OR nextPhW(r) THEN
438 ipa NULL // @-* is used to make 'r'
439 ENDIF
440 length 50
441 // "femten", "manden" - only a short "n" sound
442 IF nextPhW(n) THEN
443 length 15
444 ENDIF
445 IF prevPhW(isNotVowel) AND thisPh(isWordEnd) THEN
446 length 15
447 ENDIF
448 // "lige" [li@-]
449 IF prevPhW(i) AND thisPh(isWordEnd) THEN
450 length 15
451 ENDIF
452 IF nextPhW(isVowel) THEN
453 ChangePhoneme(@)
454 ENDIF
455 FMT(vowel/@-)
456 endphoneme
457
458 // ToDo: change [@] to [a#] if adjacent to [r] or [R]
459 phoneme 3
460 vwl starttype #a endtype #a
461 unstressed
462 length 40
463 FMT(vowel/a#_3)
464 endphoneme
465
466 // PB sort of schwa [ɐ] (0250+032F)
467 // "spurgt" [sp'o3-d] – ipa [spˈoɐ̯d]
468 phoneme 3- // used for 'r' after a vowel (to create a diphthong)
469 liquid
470 lengthmod 7
471 ipa ɐ̯
472 FMT(r/a_)
473 endphoneme
474
475 phoneme i
476 vwl starttype #i endtype #i
477 length 140
478 CALL LongVowelLength
479 FMT(vowel/i_4)
480 endphoneme
481
482 // PB short i
483 // sviret vs. svirret
484 phoneme ?i
485 vwl starttype #i endtype #i
486 length 140
487 CALL ShortVowelLength
488 // Don't link with the next vowel with [;] - vowel too short
489 // IfNextVowelAppend(;)
490 FMT(vowel/i_4)
491 endphoneme
492
493 // PB English i - Tim
494 phoneme I
495 vwl starttype #i endtype #i
496 length 130
497 IfNextVowelAppend(;)
498 FMT(vowel/ii_2)
499 endphoneme
500
501 phoneme e
502 vwl starttype #e endtype #e
503 length 140
504 CALL LongVowelLength
505 FMT(vowel/e)
506 endphoneme
507
508 // PB short e
509 // "skille" vs. "skele", "pille" vs. "pile"
510 phoneme ?e
511 vwl starttype #e endtype #e
512 length 140
513 CALL ShortVowelLength
514 FMT(vowel/e)
515 endphoneme
516
517 phoneme E
518 vwl starttype #e endtype #e
519 length 140
520 // no link with next vowel
521 IF thisPh(isWordEnd) THEN
522 IfNextVowelAppend(_!)
523 ENDIF
524 // "ære", "kærester", "ærefrygt" - vowel + vowel
525 IF nextPhW(V) THEN
526 length 225
527 ENDIF
528 // "dræber" TEST shortened by -70 in procedure because of the "r" sound
529 IF prevPhW(R) OR prevPhW(r) OR prevPhW(3-) AND next2PhW(V) THEN
530 length 225
531 ENDIF
532 CALL LongVowelLength
533 // "værelse" [v'E3-Vls@_!]
534 IF nextPhW(3-) AND next2PhW(V) THEN
535 length 100
536 ENDIF
537 FMT(vowel/e_mid2)
538 endphoneme
539
540 // PB short E
541 // "læsse" vs. "læse"
542 phoneme ?E
543 vwl starttype #e endtype #e
544 ipa ε
545 length 140
546 CALL ShortVowelLength
547 FMT(vowel/e_mid2)
548 endphoneme
549
550 phoneme &
551 vwl starttype #e endtype #e
552 ipa a
553 length 140
554 // "same", "sale", "bade" - consonant + @-: long
555 // but NOT "hinanden"
556 IF nextPhW(isNotVowel) AND next2PhW(@-) OR next2PhW(@) THEN
557 IF NOT next3PhW(n) THEN
558 length 225
559 ENDIF
560 ENDIF
561 // ThisPh + V or @-
562 // "ae", "aer" vowel + vowel: extra length
563 IF nextPhW(@-) OR nextPhW(V) THEN
564 length 260
565 ENDIF
566 CALL LongVowelLength
567 FMT(vowel/ee_2)
568 endphoneme
569
570 // Short &
571 // e.g. the last a in "staldkarl"
572 // "sale" vs. "sal"
573 phoneme ?&
574 ipa a
575 vwl starttype #e endtype #e
576 length 140
577 CALL ShortVowelLength
578 FMT(vowel/ee_2)
579 endphoneme
580
581 // Added for the æ in "dræbt"
582 phoneme &#
583 vwl starttype #e endtype #e
584 length 140
585 ipa a
586 CALL LongVowelLength
587 FMT(vowel/&)
588 endphoneme
589
590 // PB short &#
591 // "revl" vs. "tremme"
592 phoneme ?&#
593 vwl starttype #e endtype #e
594 ipa ?a
595 length 140
596 CALL ShortVowelLength
597 FMT(vowel/&)
598 endphoneme
599
600 phoneme A // PB changed to a_8
601 vwl starttype #a endtype #a
602 ipa ɑ
603 length 140
604 CALL LongVowelLength
605 // "fare" [f'A:A]
606 IF nextPhW(A) THEN
607 length 225
608 ENDIF
609 FMT(vowel/a_8)
610 endphoneme
611
612 // Short A
613 // "krabbe" vs. "drabelig"
614 phoneme ?A
615 vwl starttype #a endtype #a
616 ipa ?ɑ
617 length 140
618 CALL ShortVowelLength
619 FMT(vowel/a_8)
620 endphoneme
621
622 phoneme u
623 vwl starttype #u endtype #u
624 length 140
625 // "suge", "uge", "bluse", "julegave"
626 IF nextPhW(@-) OR nextPhW(V) OR next2PhW(@-) OR next2PhW(V)THEN
627 length 225
628 ENDIF
629 IF NOT thisPh(isWordStart) THEN // NOT "undøvendig"
630 CALL LongVowelLength
631 ENDIF
632 FMT(vowel/u_bck)
633 endphoneme
634
635 // Short u
636 // "tude" vs. "tuden" - [tuD3] [t?uD@n]
637 phoneme ?u
638 vwl starttype #u endtype #u
639 length 140
640 CALL ShortVowelLength
641 FMT(vowel/u_bck)
642 endphoneme
643
644 phoneme o
645 vwl starttype #o endtype #o
646 length 140
647 // "kone", "koner" o + consonant + V or @-
648 IF next2PhW(V) OR next2PhW(@-) THEN
649 length 225
650 ENDIF
651 CALL LongVowelLength
652 FMT(vowel/o_2)
653 endphoneme
654
655 // PB Short o
656 // "patron" vs. "kone"
657 phoneme ?o
658 vwl starttype #o endtype #o
659 length 140
660 CALL ShortVowelLength
661 FMT(vowel/o_2)
662 endphoneme
663
664 phoneme O
665 vwl starttype #o endtype #o
666 length 140
667 ipa ɒ // changed from ɔ - Den Danske Ordbog: ɒ
668 // "såre", "sårede" [s'O:?OD@-]
669 IF nextPhW(O) OR nextPhW(?O) THEN
670 length 225
671 ENDIF
672 CALL LongVowelLength
673 FMT(vowel/o_5)
674 endphoneme
675
676 // Short O
677 // "toget" vs. "tåget"
678 phoneme ?O
679 vwl starttype #o endtype #o
680 ipa ɒ // changed from ɔ - Den Danske Ordbog: ɒ
681 length 140
682 CALL ShortVowelLength
683 FMT(vowel/o_5)
684 endphoneme
685
686 phoneme V
687 vwl starttype #@ endtype #@
688 length 140
689 CALL LongVowelLength
690 FMT(vowel/V_4)
691 endphoneme
692
693 // PB Short V
694 // "forstår" vs. "kåre"
695 phoneme ?V
696 vwl starttype #@ endtype #@
697 length 140
698 CALL ShortVowelLength
699 FMT(vowel/V_4)
700 endphoneme
701
702 phoneme 0
703 vwl starttype #o endtype #o
704 length 140
705 ipa ɔ
706 CALL LongVowelLength
707 FMT(vowel/oo_2)
708 endphoneme
709
710 // Short 0 "sukker", "provst"
711 phoneme ?0
712 vwl starttype #o endtype #o
713 length 140
714 ipa ɔ
715 CALL ShortVowelLength
716 FMT(vowel/oo_2)
717 endphoneme
718
719 phoneme y
720 vwl starttype #i endtype #i
721 length 140
722 CALL LongVowelLength
723 FMT(vowel/y)
724 endphoneme
725
726 // PB Short y
727 // "kylling" vs. "kyle", "krybbe" vs. "krybe"
728 phoneme ?y
729 vwl starttype #i endtype #i
730 length 140
731 CALL ShortVowelLength
732 FMT(vowel/y)
733 endphoneme
734
735 phoneme Y
736 vwl starttype #i endtype #i
737 length 140
738 IF nextPhW(V) OR nextPhW(@-) THEN
739 length 225
740 ENDIF
741 CALL LongVowelLength
742 FMT(vowel/yy)
743 endphoneme
744
745 phoneme W
746 vwl starttype #@ endtype #@
747 length 140
748 CALL LongVowelLength
749 FMT(vowel/oe)
750 endphoneme
751
752 // Short W
753 // "prøv" vs. "prøve"
754 phoneme ?W
755 vwl starttype #@ endtype #@
756 length 140
757 CALL ShortVowelLength
758 FMT(vowel/oe)
759 endphoneme
760
761 // Added for the ø in "røv", "røg", "øje" instead of [V3]
762 phoneme W#
763 vwl starttype #@ endtype #@
764 length 140
765 CALL LongVowelLength
766 FMT(vowel/V)
767 endphoneme
768
769 // Short W#
770 // "rømme"
771 phoneme ?W#
772 vwl starttype #@ endtype #@
773 length 140
774 CALL ShortVowelLength
775 FMT(vowel/V)
776 endphoneme
777
778 phoneme aI
779 vwl starttype #a endtype #i
780 length 300
781 IF NOT next2Ph(3) AND NOT next2Ph(V) AND NOT next2Ph(@-) AND nextPhW(isNotVowel) THEN
782 glstop
783 length 225
784 ENDIF
785 // "dreje" [dR'aI@-_!]
786 IF nextPhW(3) OR nextPhW(V) OR nextPhW(@) OR nextPhW(@-) THEN
787 length 280
788 ENDIF
789 // PB "drej" vs. "dreje"
790 IF thisPh(isWordEnd) THEN
791 length 140
792 ENDIF
793 // "lejde" [l'aId@-_!], "lejder" [l'aIdV_!]
794 IF nextPhW(isNotVowel) AND next2PhW(@-) OR next2PhW(V) THEN
795 length 190
796 ENDIF
797 FMT(vdiph/ai)
798 endphoneme
799
800
801 // CONSONANTS
802
803 // PB added l/3
804 phoneme l
805 liquid
806 lengthmod 7
807 // [ll] => [-l] - avoid double l
808 IF nextPhW(l) THEN
809 // ChangePhoneme(NULL)
810 ENDIF
811 ChangePhoneme(l/3)
812 // CALL base1/l
813 endphoneme
814
815 phoneme l/3 // Replacement for [l/]
816 liquid
817 lengthmod 7
818 length 80
819 FMT(l/l_)
820 endphoneme
821
822 phoneme v // approximant, not fricative
823 import_phoneme base1/v#
824 voicingswitch f
825 endphoneme
826
827 // PB Actually a kind of schwa = [ɐ]? - "byder" [bˈyðɐʌ]
828 phoneme r // used for 'r' after a vowel (to create a diphthong)
829 liquid
830 lengthmod 7
831 ipa ɐ̯
832 IF nextPhW(isVowel) AND NOT nextPhW(?V) AND NOT nextPhW(V) AND NOT nextPhW(@-) THEN
833 ChangePhoneme(R)
834 ENDIF
835 // "generer" [Sen'e:Vr], "mysterier" - delete the r
836 IF prevPhW(V) OR prevPhW(?V) AND thisPh(isWordEnd) THEN
837 ChangePhoneme(_!)
838 ENDIF
839 // "plamagers" [pl&m'&SVrs] - delete the r
840 IF prevPhW(V) OR prevPhW(?V) AND nextPhW(s) AND nextPhW(isWordEnd) THEN
841 ChangePhoneme(NULL)
842 ENDIF
843 // "plamagerne" [pl&m'&SVrn@-] - delete the r
844 IF prevPhW(V) OR prevPhW(?V) AND nextPhW(n) AND next2PhW(@-) THEN
845 ChangePhoneme(NULL)
846 ENDIF
847 // "kreaturer" [kR,?E?&t'ur?V] - delete the r
848 // Previous vowel stressed by $alt rule
849 IF nextPhW(V) OR nextPhW(?V) AND nextPh(isWordEnd) THEN
850 IF prevPhW(isMaxStress) THEN
851 ChangePhoneme(NULL)
852 ENDIF
853 ENDIF
854 FMT(r/a_)
855 endphoneme
856
857 phoneme R
858 lengthmod 6
859 liquid
860 ipa ʁ
861 FMT(r/aa)
862 endphoneme
863
864 // don't weaken consonants at end of word or before a stop
865
866 phoneme s
867 vls alv frc sib
868 voicingswitch z
869 lengthmod 3
870 Vowelin f1=0 f2=1700 -300 300 f3=-100 80
871 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
872
873 IF nextPh(p) OR nextPh(t) OR nextPh(k) THEN
874 WAV(ufric/s!)
875 ENDIF
876 WAV(ufric/s)
877 endphoneme
878
879 phoneme p
880 vls blb stp
881 voicingswitch b
882 lengthmod 7
883 Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
884 Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
885
886 IF nextPh(isPause2) THEN
887 WAV(ustop/p_unasp)
888 ELIF nextPh(r) THEN
889 WAV(ustop/pr, 70)
890 ELIF nextPh(R) OR nextPh(R2) THEN
891 WAV(ustop/pr)
892 ELIF nextPh(@-) THEN
893 WAV(ustop/p_unasp)
894 ELIF nextPh(l) THEN
895 WAV(ustop/pl)
896 ENDIF
897 WAV(ustop/p)
898 endphoneme
899
900 phoneme t
901 vls alv stp
902 voicingswitch d
903 lengthmod 7
904 Vowelin f1=0 f2=1700 -300 300 f3=-100 80
905 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
906
907 IF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
908 WAV(ustop/tr)
909 ENDIF
910 // "respekt" [REsp'Egd]
911 IF thisPh(isWordEnd) THEN
912 // ChangePhoneme(d)
913 ENDIF
914 WAV(ustop/t, 90)
915 endphoneme
916
917 phoneme j
918 liquid pal
919 lengthmod 7
920 // no link with next vowel
921 IF thisPh(isWordEnd) THEN
922 IfNextVowelAppend(_!)
923 ENDIF
924 IF nextPhW(isVowel) THEN
925 NextVowelStarts
926 VowelStart(j/j@) // jøderne
927 VowelStart(j/ja)
928 VowelStart(j/je)
929 VowelStart(j/ji)
930 VowelStart(j/jo) // "kjole"
931 VowelStart(j/ju)
932 EndSwitch
933 Vowelout len=70
934 VowelEnding(j/xj, -30)
935
936 IF prevPh(isPause) THEN
937 FMT(j/_j)
938 ENDIF
939 ELSE
940 // no vowel follows
941 Vowelout len=70
942 FMT(j/j_)
943 ENDIF
944 endphoneme