PageRenderTime 52ms CodeModel.GetById 44ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/native/external/espeak/dictsource/pt_rules

http://eyes-free.googlecode.com/
#! | 876 lines | 719 code | 157 blank | 0 comment | 0 complexity | 74d6ffb186ca26eb574694499a486f89 MD5 | raw file
  1// translation rules Brazilian
  2// This file is UTF-8 encoded
  3
  4// Options
  5// ?1  European Portuguese
  6// ?2  Brazilian Portuguese
  7// ?3  Epenthetic [I] between consonants
  8// ?4  Brazil mbrola voice
  9
 10// Letter groups
 11// A  a vowel
 12// B  a consonant, except h l r w y
 13// C  a consonant
 14// G  a voiced consonant
 15// K  not a vowel
 16
 17.group a
 18       _) a (_       a
 19       _) a (_W      'a       // in an acronym
 20          a          a
 21       &) a (_       =&       // in final unstressed syllable
 22       &) a (s_      =&
 23       &) a (_a      =&/      // ?? elide final a before a
 24       &) a (_Я      =&/
 25?1        a (_       =&       // in final unstressed syllable
 26?1        a (s_      =&
 27?1        a (_a      =&/      // ?? elide final a before a
 28?1        a (_Я      =&/
 29
 30          a (C_      &
 31          a (r_      'a
 32?1     p) a (d_      =E
 33          a (CC_     &
 34?1        a (l_      'A       // eg: Portugal, capital, etc.
 35?1        a (lK      ,A       // Algarve, Almerinda, etc...
 36?2        al (K      aU
 37          a (lh+     a
 38
 39          a (m       &~
 40          a (mAr_     &
 41          a (mA@     &
 42          a (n       &~
 43          a (nA@     &
 44          a (nAr_     &
 45          am (_      =&~N
 46          am (C      &~m
 47?4        am (C      &~N
 48          an (K+     &~N
 49          anh (A     &~n^
 50          am (_      =&U~
 51?1        a (z_      'a   //eg: paz, rapaz, capaz, etc...
 52?1     C) acу        'a's // eg: selecусo, etc...
 53
 54          ai         aI
 55          ai (s      aI
 56          a (iu_     a    // caiu
 57          a (iCK     a
 58          ay         aI
 59          ao         aU
 60          au         aU
 61          au (s      aU
 62          a (uCK     a
 63
 64
 65.group Р
 66          Р          ''&
 67          Р (m       ''&~
 68          Р (n       ''&~
 69          Рm (K      ''&~m
 70          Рn (K      ''&~N
 71          Рnh        ''&~n^
 72
 73
 74.group Я
 75          Я          a
 76       _) Я (s_      aI
 77
 78          Я (m       &~
 79          Я (n       &~
 80          Яm (K      &~m
 81          Яn (K      &~N
 82          Яnh (A     &~n^
 83
 84
 85.group р
 86          р          ''a
 87          рi         ''aI
 88          рi (s      ''aI
 89          р (iCK     ''a
 90          рy         ''aI
 91          рu         ''aU
 92          рu (s      ''aU
 93?1        рl         ''Al
 94          р (uCK     ''a
 95
 96
 97.group с
 98          с          &~
 99          сo         &U~
100
101
102.group b
103       _) b (_       be
104          b          b
105          b (b
106?3        b (B       bI
107?3        b (s       b
108?3        b (_C      b_
109
110
111.group c
112       _) c (_       se
113          c          k
114          c (Y       s         // ce ci
115?3        c (B       kI
116?3        c (s       k
117?3        c (t       k
118?3        c (_C      k_
119          ch         S
120          ck         k
121?1        c (c              //drop Њcћ in European Portuguese (eg: seleccionar)
122?1     A) ct         t      //drop Њcћ in European Portuguese (eg: exacto)
123?1     A) cу         s      //drop Њcћ in European Portuguese (eg: selecусo)
124?1 conta) ct (A      kt // eg: contacto, contactar, contactрvel, incontactрvel, etc...
125
126
127.group d
128       _) d (_       de
129          d          d
130          d (d
131?3        d (B       dZI
132?3        d (_C      d_
133?2        d (i       dZ
134?2        d (ь       dZ
135?2        d (e_      dZ
136
137
138.group e
139       _) e (_       E
140          e          e
141          e (_       =y
142          e (s_      =y
143?2        e (_AN     =i/      // ?? elide to [j] if next word starts with a vowel
144?2    &l) e (_AN     =i       //    but not after l or r
145?2    &r) e (_AN     =i
146?1        e (_iN     =i/      // drop final [i] is next word starts with another i
147
148?1        e (e       i //eg: candeeiro
149?2        ee         i
150?2        pr) ee (n        ee
151
152?2        el (K      EU
153          e (lh+     e
154       v) e (lhA_    E
155
156          e (be_     E
157          e (bem_    E
158
159          e (ca_     E
160          e (ce_     E
161          e (cem_    E
162
163          e (chA_     E
164          e (chAm_     E
165       r) e (cho_     e
166
167          e (clA_    E
168          e (clAm_   E
169          e (co_     E
170          e (ctA_     E
171          e (ctAm_     E
172
173          e (de_     E
174          e (dem_    E
175
176          e (fa_     E
177
178          e (gA_     E
179          e (gAm_    E
180
181          e (grA_    E
182          e (grAm_   E
183
184       h) e (gA_    e
185       h) e (gAm_   e
186
187          e (gue_    E
188          e (guem_   E
189
190          e (lA_     E
191          e (lo_     e
192          e (lAm_     E
193
194       i) e (r_     E
195      @s) e (r_     E
196       u) e (r_     E
197
198      ib) e (rA_     E
199       d) e (rA_     E
200      ed) e (rAm_     e
201       m) e (rA_     E
202      iv) e (rAm_     E
203     pod) e (rA_     e
204       d) e (rAm_    E
205      ib) e (rAm_     E
206      @s) e (rA_     E
207      @s) e (rAm_     E
208      sp) e (rA_     E
209      sp) e (rAm_     E
210
211          e (rdA_     E
212          e (rdAm_     E
213          e (rgA_     E
214          e (rgAm_     E
215
216          e (rsA_    E
217          e (rsAm_   E
218
219          e (se_     E
220          e (sem_    E
221
222          e (ssA_    E
223          e (ssAm_   E
224
225          e (stA_    E
226          e (stAm_   E
227          e (strA_   E
228
229          e (rnA_    E
230          e (rnAm_   E
231
232          e (rtA_    E
233          e (rtAm_   E
234
235          e (rrA_    E
236          e (rrAm_   E
237
238          e (rvA_    E
239          e (rvAm_   E
240
241          e (tA_     E
242      An) e (tA_    e
243     gaz) e (ta_     e
244          e (tAm_    E
245
246          e (vA_     E
247       t) e (ve_     e
248          e (vi_     e
249          e (vЖ_     e
250          e (vAm_    E
251
252          e (rrAs_   E
253
254          e (x_      E
255          e (xA_     E
256          e (xAm_    E
257?2    _n) e (t       E
258
259          em (C      eIm
260          en (K      eIN
261          enh        en^
262
263          em (_      =eIN
264          em (s_     =eIN
265          en (_      =eIN
266          en (s_     =eIN
267
268          ei         eI
269          ei (s      eI
270          e (iCK     e
271          ey         eI
272          eu         eU
273          eu (s      eU
274          e (uCK     e
275
276?1     d) e (CAA     y
277?1     d) e (CACAA   y
278?1     d) e (CACAC   y
279?1     d) e (CACC    y
280?1     d) e (CCAA    y
281?1     d) e (nCAA    ,e
282?1     d) e (CCACA   y
283?1     d) e (nCACA   ,e
284?1     d) e (CCACCA  y
285?1     d) e (nCACCA  ,e
286
287       j) e (tA_     E
288       j) e (tAm_    E
289
290?1     _) es (C@@     S   // drop initial "e".
291?1     _) e (f        i   // efectuar, etc.
292?1    _n) e (nhu      i   // eg: nenhum, nenhuma, nenhuns, nenhumas.
293?1        e (la_     'E   // eg: cadela, janela, vela, etc...
294?1     C) e (cC      ,E   // eg: seleccionar, efectuar, etc...
295?1     C) ecу        'E's // eg: selecусo, etc...
296?1     C) e (с        i   // leсo, panteсo, etc.
297?1     C) e (a        i   // oceano, etc.
298?1     C) e (o       'i   // eg: geologia, etc...
299?1     C) e (Щ        i   // conteЩdo, etc.
300?1    Cс) e           j   // cсes, mсe, etc...
301?1     c) e (rea      y   // cereais
302?1     d) e (fici     y   // deficiЖnte, deficiЖncia, etc...
303?1    _d) e (fini     y   //definiушes.
304?1    _d) e (slig     y   // desligar.
305?1    _d) e (sloc     y   // eg: deslocamento, etc...
306?1    _f) e (ch       y   // fechar
307?1    _p) e (rcentag  y   // percentagem
308?1     p) e (ssoa     y   //pessoal, pessoais, etc.
309?1    pr) e (cis      y   // precisar
310?1    pr) e (f        y   // preferЖncias, etc.
311?1    _r) e (cicl     y   // recicla, reciclagem, etc...
312?1     r) e (cor      y   // recorrer, recordar
313?1     r) e (luz      y   // eg: reluzir
314?1     r) e (lva     ,E   // eg: relvado
315?1     r) e (smung    y   // resmungar
316?1     r) e (ss       y   // eg: ressequidos
317?1     r) e (volv     y   // revolver
318?1     r) e (vel      y   // revelar
319?1    _t) e (rmin     y   // terminar.
320?1    _v) e (loci     y   // velocidade
321?1    _f) e (rramenta y   // ferramenta, ferramentas.
322?1    _p) e (squ      y   // pesquisar
323?1   hip) e (r       ,E   // eg: hiper
324?1   sup) e (r       ,E   // super
325?1    _m) e (ga      ,E   // mega
326?1  _int) e (rn      ,E   // Interno
327?1     n) e (t       'E   // eg: net
328?1        e (l_      'E   // eg: possьvel, manuel, etc...
329?1     v) e (l_      ,E   // eg: possьvel, amovьvel, disponьvel, etc...
330?1     l) e (ta      'E   // eg: bicicleta, atleta.
331
332
333.group ж
334          ж          ''E
335          жi         ''EI
336          жi (s      ''EI
337          ж (iCK     ''E
338          жy         ''eI
339          жu         ''EU
340          жu (s      ''EU
341          ж (uCK     ''E
342          жm (_      ''eIN
343          жm (s_     ''eIN
344          жn (_      ''eIN
345          жn (s_     ''eIN
346
347
348.group Ж
349          Ж          ''e
350          Жm (_      ''eIN
351          Жm (C      ''eIm
352          Жn (K      ''eIN
353          Жnh        ''en^
354          Жm (_      ''eIN
355
356
357.group f
358?1     _) f (_W      Ef;     // within an acronym
359?1     _) f (_       Ef      // individual letter or end-of-acronym
360       _) f (_       'Efe
361          f          f
362          f (f
363?3        f (B       fI
364?3        f (_C      f_
365
366
367.group g
368?1     _) g (_       ge
369?1     _) g (_W      Ze     // within an acronym
370       _) g (_       Ze
371          g          g
372          g (g
373?3        g (B       gI
374?3        g (_C      g_
375          g (Y       Z      // ge gi
376          gu (Y      g
377?1        guen (C    gw'eIN    // aguenta, etc.
378?1     n) gu (A      gw     // eg: lьngua, etc.
379?1   man) gu (ei     g   // mangueira
380?1        gu (жm_    g   // eg: alguжm, ninguжm, etc...
381
382
383.group h
384       _) h (_       ag'a
385          h              // silent
386
387
388.group i
389       _) i (_       i
390          i          i
391          i (A       j
392      Cr) i          i
393      Cl) i          i
394          i (_       'i
395
396?2        il (K      iU
397          i (lh+     i
398
399          im (_      iN
400          im (C      im
401?4        im (C      iN
402          in (C      iN   // ?4  ??
403          in (g      iN
404          in (k      iN
405          inh        in^
406
407          i (A_      'i
408          i (am_      'i
409          io (_      iU
410          io (s_     iU
411          i (oCK     i
412          iu (_      iU
413          iu (s_     iU
414          i (uCK     i
415
416      рC) i (A_       j
417     рCC) i (A_       j
418      РC) i (A_       j
419     РCC) i (A_       j
420      жC) i (A_       j
421     жCC) i (A_       j
422      ЖC) i (A_       j
423     ЖCC) i (A_       j
424      ьC) i (A_       j
425     ьCC) i (A_       j
426      зC) i (A_       j
427     зCC) i (A_       j
428      ЗC) i (A_       j
429     ЗCC) i (A_       j
430      ЩC) i (A_       j
431     ЩCC) i (A_       j
432
433?1     _) i (ntern     'i  //inter
434?1     @) ing (_      _^_EN
435?1     @) ings (_     _^_EN
436
437
438.group ь
439          ь          ''i
440          ь (m       ''i
441          ь (n       ''i
442          ьm (_      ''iN
443          ьm (C      ''im
444          ьn (K      ''iN
445          ьnh        ''in^
446
447
448.group j
449       _) j (_       Z'Ot&
450          j          Z
451?3        j (B       ZI
452?3        j (_C      Z_
453
454
455.group k
456?1     _) k (_       k'ap&
457?2     _) k (_       ka
458          k          k
459          k (k
460?3        k (B       kI
461?3        k (s       k
462?3        k (t       k
463?3        k (_C      k_
464
465
466.group l
467?1     _) l (_W      El;       // within an acronym
468?1     _) l (_       El
469       _) l (_       'Ele
470          l          l
471       l) l
472          lh         l^
473       A) lh         lj
474?1     A) lh         l^
475?4     A) lh         l^
476
477
478.group m
479?1     _) m (_W      Em;
480?1     _) m (_       Em
481       _) m (_       'eme
482          m          m
483          m (m
484?3        m (B       mI
485?3        m (_C      m_
486
487
488.group n
489?1     _) n (_W      En;
490?1     _) n (_       En
491       _) n (_       'ene
492          n          n
493          n (n
494?3        n (B       nI
495?3        n (_C      n_
496          nh         n^
497?1     A) nn         n     //drop Њnћ (eg: connosco).
498
499
500.group o
501          o          o
502       @) o (_       =U
503          o (s_      =U
504          ou         ow
505          oi         oI
506          oi (s      oI
507          o (iCK     o
508          oo         u
509          oon        u~N
510       c) oo         oo
511?1     C) oo (_      ow // eg: voo, enjoo, etc...
512          oy         OI
513
514          o (cA_     O
515          o (cAm_    O
516
517          o (que_    O
518          o (quem_   O
519
520       p) o (dA_     O
521       p) o (dAm_    O
522
523          o (g_      O
524          o (gs_      O
525
526          o (ge_     O
527          o (gem_    O
528
529          o (jA_     O
530          o (jAm_    O
531
532          o (ldA_    O
533          o (ldAm_   O
534
535          o (lA_    O
536          o (lAm_    O
537
538          o (ltA_    O
539          o (ltAm_   O
540
541          o (sA_     O
542          o (so_     o
543          o (sAm_    O
544
545          o (ssA_    O
546          o (ssAm_   O
547
548          o (va_     O
549          o (vAm_    O
550          o (ve_     O
551       m) o (va_     o
552       m) o (vam_     o
553          o (veCs_   O
554
555?1        o (l_      'O
556?2        ol (_      Ow
557          o (lh+     o
558?2     _) o (lhA_     O
559?2     _) o (lhAm_     O
560          om (_      oN
561          o (ma_     o
562
563          om (C      om
564?4        om (C      oN
565          on (K      oN
566          o (na_     o
567          onh        on^
568
569          o (brA_    O
570          o (brAm_   O
571          o (dA_    O
572          o (dAm_    O
573       t) o (dA_    o
574
575          o (rCA_    O
576          o (rCo_    o
577          o (rCAm_   O
578
579          o (stA_    O
580          o (sto_    o
581          o (stAm_   O
582          o (strA_    O
583          os (trAm_    O
584
585          o (tA_     O
586          o (tAm_    O
587
588?2        o (x_      O
589?1        oz (_      Os#
590?2        oz (_      Oz
591          o (zes_    O
592          o (rA_     O
593       b) o (re_     o
594       c) o (re_     o
595       d) o (re_     o
596       l) o (re_     o
597       t) o (re_     o
598       v) o (re_     o
599          o (rAm_     O
600       b) o (rA_    O
601      @@) o (rA_     o
602
603          o (p_     O
604?1     _) o (C       O     // eg: olр, orla, opусo, etc...
605?1    _C) o (CACAC   u     // Documento, documentaусo, localizar, etc.
606?1     f) o (rmat    u     // formatar, formato.
607?1    _p) o (rtuC    u     // Portugal, Portucalense, etc...
608?1    pr) o (f       u
609?1    _s) o (lu      u     // soluусo, soluушes.
610?1  interr) o (g     u     // eg: interrogaусo
611?1     f) o (rmulр   u     // eg: formulрrio, formulрrios.
612?1     v) o (lt      O
613
614
615.group З
616          З          ''o
617          Зm (_      ''oN
618          Зm (C      ''om
619          Зn (K      ''oN
620          Зnh        ''on^
621
622
623.group з
624          з          ''O
625
626          зi         ''OI
627          зi (s      ''OI
628          з (iCK     ''O
629          зu         ''Ow 
630          зy         ''OI
631
632
633.group ш
634          ш          o~
635          шe         o~j
636
637
638.group p
639       _) p (_       pe
640          p          p
641          p (p
642?3        p (B       pI
643?3        p (s       p
644?3        p (t       p
645?3        p (_C      p_
646?1        ph         f     //Didnњt use in European Portuguese (eg: English)
647?1        ple (_     _^_EN
648
649
650.group q
651       _) q (_       ke
652          q          k
653?3        q (B       kI
654          qu         kw
655          qЧ         kw
656          qu (Y      k
657          qu (K      ku
658?1     _) qua        kwa     // quatro, etc.
659?1     _) que        ke      // quente, etc.
660?1     _) quei (C    k'eI   // queira, queima, etc
661?1     C) quen (C    kw'eIN     // cinquenta, etc.
662?1     A) quen (C    kw'eIN     // frequЖncia, etc.
663?1        quec       kes     // esquece, etc.
664?1        queу       kes     // esqueуa.
665?1     A) que (nA_   ke      // pequeno, etc.
666?1     C) quЖ (_     ke      // porquЖ, etc.
667?1        que (l     ke      // aquele, etc.
668?1        que (r_    kE      // qualquer, etc.
669?1        qui        ki      // quinta, esquilo, etc.
670?1     _) quind      kuind   // quindecрgono, etc.
671?1  tran) qui        kui     // tranquilo, etc.
672?1     _) quo        kuo     // quoficiente, etc.
673
674 
675.group r
676?1     _) r (_W     'Err;    // within an acronym
677?1     _) r (_      'Err
678       _) r (_       'Exe
679       _) r (_\$     xe'aU    // currency
680          r          r
681       A) r (A       *
682       A) r (_A      *
683          rr         x
684       C) r (A       R        // for "pt-pt" [R] is the same as [r]
685       _) r          x
686       l) r          x
687       n) r (+         x
688       s) r          x
689?1     A) r (_       r-       // [r-] is English linking-r
690
691
692.group s
693?1     _) s (_W      Es|;    within an acronym  [s]+[;] not [s;] phoneme
694?1     _) s (_       Es
695?2     _) s (_       'Ese
696          s          s
697          ss         s
698          sc (Y      s
699          sу         s
700          sh         S
701?4     _) s (C       Is
702       A) s (A       z
703?1     @) s (_       s#
704?2        s (_       s#
705       @) s (_A      z     // next word starts with vowel
706?!4    @) s (_G      z     // next word starts with voiced consonant
707
708       A) s (_S1     s
709       A) s (_AS1    z     // next word starts with vowel
710     ese) s (_       s
711?!4    A) s (_GS1    z     // next word starts with voiced consonant
712
713?1     A) s (C       s#
714?1     A) ss         s
715?1     A) s (G+      Z
716?1     A) s (_KS1    s#
717?1     A) s (_G+S1   Z
718
719
720.group t
721       _) t (_       te
722          t          t
723          t (t
724?3        t (B       tSI
725?3        t (_C      t_
726?2        t (i       tS
727?2        t (ь       tS
728?2        t (e_      tS
729?1        th         _^_EN
730?1        tion (_    _^_EN
731
732
733.group u
734       _) u (_       u
735          u          u
736          u (A       w
737          u (_A      w
738       r) u (A       u
739       r) u (_A      u
740          u (A_      'u
741
742          ui         'uI
743          ui (_      uI
744          ui (s      'uI
745          u (iCK     u
746          uy         uI
747
748          um (_      u~N
749          um (C      u~m
750?4        um (C      u~N
751          un (K      u~N
752          unh        u~n^
753
754       g) u (Y
755
756
757.group Щ
758          Щ          ''u
759          Щm (_      ''u~N
760          Щm (C      ''u~m
761?4        Щm (C      ''u~N
762          Щn (K      ''u~N
763          Щnh        ''u~n^
764
765.group v
766          v          v
767          v (v
768?3        v (B       vI
769?3        v (_C      v_
770
771
772.group w
773?1     _) w (_       d'&bl,iu
774?2     _) w (_       d'ablju
775          w          w
776?1        w (_       _^_EN
777?4     _) w          u
778
779
780.group x
781          x (A       S
782       A) x (A       ks
783      _e) x (A       z
784       e) x (A       ks
785?1     e) x (CA      S
786      ai) x (A       S
787      ei) x (A       S
788      au) x          s
789      ou) x          s
790          x (C       s
791          x (s
792          x (_       ks
793     ale) x (a       S
794     _fa) x (i     S
795     _li) x (A     S
796     _lu) x (A    S
797      mр) x (im     s // mрximo, mрximas, etc.
798      me) x (A     S
799     pro) x (i       s  // aproximado, aproximadamente, aproximar, etc.
800     prз) x (i       s  // prзximo, etc.
801      pu) x (A     S // verb "puxar" and all its conjugations
802    rela) x (A     S
803     _xi) x (A     S
804?1     i) x (a_      S
805?1     i) x (as_     S
806
807
808
809
810.group y
811?1     _) y (_       'ips,ilON
812?2     _) y (_       'ipsiloN
813          y          i
814          y (A       j
815
816
817.group z
818       _) z (_       ze
819          z          z
820          z (z
821?3        z (B       zI
822?3        z (_C      z_
823?1     @) z (_       S
824?2     @) z (_       s
825       @) z (_A      z
826       @) z (_G      z
827
828?1     A) z (C       S
829?1     A) z (G+      Z
830?1     A) z (_C      S
831?1     A) z (_G+     Z
832
833
834.group
835          у          s
836       _) у (_       s'esed'il^&
837
838          Ч          u
839          ▀          s
840
841          %          pors'eINtU
842          $          sifR'&U~
843     _r_) $
844	?          m'enUs
845	+          maIs#
846	&	'e
847	@	&x'ob&
848	ц	'eU*U
849	ђ	'eU*U
850	Д	p&*'agRafU
851
852    D_) ║       %o      // ordinal
853    D_) ф       %a      // ordinal
854
855
856    // don't speak multiple occurances of these symbols
857          , (D       v'irgul&
858          .          p'oNtU
859          . (.       _:
860      \.) .
861
862          *          &ste*'iskU
863      *)  * (*
864          ** 
865     **)  * (_       _::
866
867     __)  - (_D      m'enUs
868     A_)  - (_D      _
869     C_)  - (_D      _
870      --) -
871
872          =            __igw'&l_
873          = (==        
874      =)  = (=         
875     ==)  = (_         _::
876