~ubuntu-branches/ubuntu/oneiric/espeak/oneiric

« back to all changes in this revision

Viewing changes to src/tr_languages.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2008-08-26 09:37:23 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080826093723-lwblp0nwfd93sggb
Tags: 1.38-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
                }
152
152
                break;
153
153
 
 
154
        case L('d','a'):  // Danish
 
155
                {
 
156
                        static const unsigned char stress_amps_da[] = {16,16, 20,20, 20,24, 24,22 };
 
157
                        static const short stress_lengths_da[8] = {160,140, 200,200, 0,0, 220,210};
 
158
                        tr = new Translator();
 
159
                        SetupTranslator(tr,stress_lengths_da,stress_amps_da);
 
160
 
 
161
                        tr->langopts.stress_rule = 0;
 
162
                        SetLetterVowel(tr,'y');
 
163
//                      tr->langopts.numbers = 0x11849;
 
164
                }
 
165
                break;
 
166
 
 
167
 
154
168
        case L('d','e'):
155
169
                {
156
170
                        static const short stress_lengths_de[8] = {150,130, 190,190,  0, 0, 260,275};
282
296
 
283
297
        case L('f','r'):  // french
284
298
                {
285
 
                        static const short stress_lengths_fr[8] = {190, 170,  190, 200,  0, 0,  235, 235};
286
 
                        static const unsigned char stress_amps_fr[8] = {18,16, 20,20, 20,22, 22,22 };
 
299
                        static const short stress_lengths_fr[8] = {190, 170,  190, 200,  0, 0,  235, 240};
 
300
                        static const unsigned char stress_amps_fr[8] = {18,16, 20,20, 20,22, 22,21 };
287
301
 
288
302
                        tr = new Translator();
289
303
                        SetupTranslator(tr,stress_lengths_fr,stress_amps_fr);
580
594
                        SetupTranslator(tr,stress_lengths_pt,stress_amps_pt);
581
595
                        tr->langopts.length_mods0 = tr->langopts.length_mods;  // don't lengthen vowels in the last syllable
582
596
 
583
 
//                      tr->langopts.vowel_pause = 1;
584
597
                        tr->langopts.stress_rule = 3;        // stress on final syllable
585
598
                        tr->langopts.stress_flags =  0x6 | 0x10 | 0x20000; 
586
 
                        tr->langopts.numbers = 0x269 + 0x2000 + NUM_ROMAN;
 
599
                        tr->langopts.numbers = 0x269 + 0x4000 + NUM_ROMAN;
587
600
                        SetLetterVowel(tr,'y');
 
601
                        ResetLetterBits(tr,0x2);
 
602
                        SetLetterBits(tr,1,"bcdfgjkmnpqstvxz");      // B  hard consonants, excluding h,l,r,w,y
588
603
                }
589
604
                break;
590
605
 
651
666
 
652
667
                        SetLetterVowel(tr,'y');
653
668
                        SetLetterVowel(tr,'r');
654
 
                        ResetLetterBits(tr,0x2);
 
669
                        ResetLetterBits(tr,0x20);
655
670
                        SetLetterBits(tr,5,sk_voiced);
656
671
                }
657
672
                break;