~ubuntu-branches/ubuntu/vivid/cicero/vivid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
# This file is part of Cicero TTS.
#   Cicero TTS: A Small, Fast and Free Text-To-Speech Engine.
#   Copyright (C) 2003-2008 Nicolas Pitre  <nico@cam.org>
#   Copyright (C) 2003-2008 Stéphane Doyon <s.doyon@videotron.ca>
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License version 2.
#   See the accompanying COPYING file for more details.
#
#   This program comes with ABSOLUTELY NO WARRANTY.

# Les filtres préparent le texte de sorte qu'il ne contient plus
# de caractères étranges (non-printables, tabs, newlines, etc),
# ni de chiffres,
# ni de tirets...
# Les ponctuations qui restent dans le texte après les filtres, et
# qui sont gérées par les règles: , . ; : ! ?
# L'apostrophe y reste aussi.
# Les autres symboles doivent être éliminés par les filtres:
#     #"/$%&*()-_=+[]{}<>^` et autres.
# Le dernier filtre compresse les suites de plusieurs espaces en un seul.
# Dans les patterns des filtres et des règles, _ est un caractère spécial
# qui est remplacé par un espace, à moins d'être précédé de \.
# Les règles doivent conserver les séparations de mot. Toute règle
# qui consomme un _ (espace) doit produire un _ ou & ou -.
# En sortie, le phonème _ délimite les mots séparés "ordinairement", tandis
# que & est un séparateur "virtuel" pour montrer le passage à un autre
# mot lorsqu'il y a liaison.
# - introduit une pause pour le h aspiré.


# phonem	type	duration
PHO	@	V	60
PHO	a	V	83
PHO	a~	V	111
PHO	b	C	75
PHO	d	C	68
PHO	e	V	86
PHO	e~	V	96
PHO	E	V	82
PHO	f	C	123
PHO	g	C	55
PHO	H	C	58
PHO	i	V	79
PHO	j	C	61
PHO	k	C	81
PHO	l	C	50
PHO	m	C	77
PHO	n	C	64
PHO	N	C	72
PHO	o	V	83
PHO	o~	V	111
PHO	O	V	95
PHO	p	C	97
PHO	R	C	54
PHO	s	C	90
PHO	S	C	120
PHO	t	C	88
PHO	u	V	87
PHO	v	C	78
PHO	w	C	65
PHO	y	V	74
PHO	z	C	87
PHO	Z	C	80
PHO	2	V	107
PHO	9	V	99
PHO	9~	V	102

PHO	_	P	0
# Les suivantes servent pour la prosodie et les indexes mais ne se rendent
# pas jusqu'à MBROLA.
PHO	&	P	0
PHO	-	P	14
PHO	.	P	190
PHO	,	P	150
PHO	:	P	170
PHO	!	P	200
PHO	?	P	200

PROSO_SPEED _ 0, 0
PROSO_PITCH _ [1] {"0 100"}
PROSO_PITCH _ [2] {"100 110", "100 100"}
PROSO_PITCH _ [3] {"0 120", "100 110", "100 100"}
PROSO_PITCH _ [4] {"0 120", "", "100 110", "100 100"}

PROSO_SPEED & 0, 7
PROSO_PITCH & [1] {"0 100"}
PROSO_PITCH & [2] {"100 110", "100 100"}
PROSO_PITCH & [3] {"0 120", "100 110", "100 100"}
PROSO_PITCH & [4] {"0 120", "", "100 110", "100 100"}

PROSO_SPEED - 0, 7
PROSO_PITCH - [1] {"0 100"}
PROSO_PITCH - [2] {"100 110", "100 100"}
PROSO_PITCH - [3] {"0 120", "100 110", "100 100"}
PROSO_PITCH - [4] {"0 120", "", "100 110", "100 100"}

PROSO_SPEED , -20, 10
PROSO_PITCH , [1] {"100 135"}
PROSO_PITCH , [2] {"100 115", "100 135"}
PROSO_PITCH , [3] {"0 110", "100 115", "100 135"}
PROSO_PITCH , [4] {"0 120", "100 110", "100 130", "100 135"}

PROSO_SPEED . -30, 10
PROSO_PITCH . [1] {"100 70"}
PROSO_PITCH . [2] {"100 110", "100 70"}
PROSO_PITCH . [3] {"0 120", "100 100", "100 70"}
PROSO_PITCH . [4] {"0 110", "100 120", "100 100", "100 70"}

PROSO_SPEED ! -200, 10
PROSO_PITCH ! [1] {"0 110 30 180 100 110"}
PROSO_PITCH ! [2] {"100 130", "20 180 100 110"}
PROSO_PITCH ! [3] {"100 120", "100 130", "20 180 100 110"}
PROSO_PITCH ! [4] {"0 120", "100 110", "100 130", "30 180 100 110"}

PROSO_SPEED ? -30, 10
PROSO_PITCH ? [1] {"0 110 100 170"}
PROSO_PITCH ? [2] {"100 120", "100 170"}
PROSO_PITCH ? [3] {"0 110", "100 120", "100 170"}
PROSO_PITCH ? [4] {"0 120", "100 110", "100 130", "100 170"}

PROSO_SPEED : -20, 10
PROSO_PITCH : [1] {"0 100 100 135"}
PROSO_PITCH : [2] {"100 115", "100 135"}
PROSO_PITCH : [3] {"0 110", "100 115", "100 135"}
PROSO_PITCH : [4] {"0 120", "100 110", "100 130", "100 135"}


CLASS V [aeiouyàâéèêëîïôöùûü]			# voyelles
CLASS C [bcçdfghjklmnñpqrstvwxz]		# consonnes
CLASS L (?:V|C)					# toutes les lettres
CLASS P [\,\.\;\:\!\?]				# ponctuations
CLASS N \d					# chiffres
CLASS S (?:^|_|P|\')				# limite gauche d'un mot
CLASS T (?:$|_|P)				# limite droite d'un mot

# règles de substitutions

[[ à ]] -> a					## déjà
[[ â ]] -> a  					## pâte

[[ ae ]] T -> e					## reggae vitae
[[ aen ]] -> a a~				## caen
[[ ae ]] -> a e					## maestro 
[[ aî ]] -> E 					## maître
[[ aim ]] (C|T)	-> e~				## faim
[[ ain ]] (C|T)	-> e~				## pain
f [[ ai ]] sV	-> @				## faisons faisan
[[ a ]] il(l|s?T) -> a				## paille bail
[[ aie ]] me -> E				## paiement
[[ ai ]] -> E					## aile
[[ am ]] [bp] -> a~				## camp
[[ am ]] m -> a					## programmation
[[ am ]] n -> a m				## amnistie
[[ a ]] nn -> a					## manne
[[ an ]] (C|T)	-> a~				## ancien
[[ aoû ]]  -> u					## août
[[ au ]] lT -> O				## Paul
[[ au ]] -> o					## autruche
p [[ ay ]] s -> E i				## pays paysage
[[ ay ]] (C|T) -> E				## aymé
[[ ay ]] -> E j					## paye
[[ a ]] -> a					## bateau

S [[ b ]] T -> b e				## b
[[ byte ]] T -> b a i t			## byte
[[ bytes ]] T -> b a i t s			## bytes
[[ bb ]] -> b					## abbé
om [[ b ]] T ->					## plomb applomb
[[ b ]] -> b					## aube

S [[ c ]] T -> s e				## c
[[ c' ]] -> s					## c'est
[[ ç ]] -> s					## rançon
[[ cch ]] -> k 					## bacchanale
[[ cc ]] [eèéêiîy] -> k s 			## accéder
[[ cc ]] -> k 					## occuper
ar [[ ch ]] ét -> k 				## archétype architecte
or [[ ch ]] (?!es?T)V -> k 			## orchestre orchidée
sy [[ ch ]] (?!i)V -> k 			## psycho
S [[ ch ]] or -> k 				## chorale
(yn|(?<!C)) [[ ch ]] ([lnrst]|T) -> k 		## chrétien
[[ ch ]] -> S					## chien
[[ ck ]] -> k					## nickel
[[ cqu ]] -> k					## grecque
[[ cq ]] -> k					## pecq
[sx] [[ c ]] [eèéêiîy] ->			## scène
[[ c ]] [eèéêiîy] -> s 				## cède
(bl?an|cler|tchou|taba) [[ c ]] s?T ->		## banc blanc leclerc
se [[ c ]] ond -> g				## seconde secondaire
[[ c ]] -> k 					## recoin donc

S [[ d ]] T -> d e				## d
[[ dd ]] -> d					## addition
(S|C)[lst]an [[ d ]] s?T -> d			## stand land
(C|qu)[aeo]n [[ d_ ]] h?V -> t &	 	## grand ami, grand homme
(C|qu)[aeo]n [[ d ]] s?T ->	 		## grand marchand
[[ dt ]] T ->	 				## rembrandt
r [[ d ]] T ->					## lourd placard
[[ d ]] -> d					## don bled

S [[ e ]] T -> @				## e
[[ eau ]] -> o					## bateau cheveaux
j [[ e ]] a ->					## Jean Jeanne
sp [[ ect ]] s?T -> E				## aspect suspect
S(tré)?pi [[ ed ]] -> e				## pied
[[ ee ]] -> i					## meeting
Scl [[ ef ]] s?T -> e				## cle
[[ ein ]] (C|T) -> e~				## peindre
[[ e ]] il -> E					## vieille
[[ ei ]] -> E					## neige
[[ eî ]] -> E					## 
[[ ell ]] -> E l l				## selle
[[ el ]] (C|T) -> E l				## caramel celsius
[[ em ]] me -> a				## femme patiemment
[[ em ]] [bmp] -> a~				## emmencher décembre
S [[ en ]] T -> a~				## en
S [[ en ]] (h|V) -> a~ n			## enharmonique enivrer
(C|qu) [[ en ]] ds?T -> a~			## comprend dépend
pati [[ en ]] -> a~				## patient patience
S [[ en ]] nu -> a~				## ennui
[[ en ]] n -> E 				## penne mienne ennemi
[[ ent ]] sT -> a~				## dents couvents présents
éC [[ ent ]] T -> a~				## récent différent élément
(SC|cc) [[ ent ]] T -> a~			## cent vent lent dent accent
S(ja|vin)c [[ ent ]] T -> a~			## Vincent sous-jacent
[is]ci [[ ent ]] T -> a~			## conscient coefficient
[tv]i [[ ent ]] T -> e~ 			## revient
(al|xcell) [[ ent ]] T -> a~			## talent équivalent excellent
(m|e|mo|Lai|[cglr]u)m [[ ent ]] T -> a~	## prudemment vitement moment
(Ccid|Scli|Slaur|S(mé)?cont|mpét|prés|Ssouv) [[ ent ]] T -> a~ ## souvent compétent client
(s|qui)_couv [[ ent ]] T ->			## elles couvent
Scouv [[ ent ]] T -> a~				## le couvent
S(le|un|du|au|[mst]on)_présid [[ ent ]] T -> a~	## le président
[[ ent ]] T ->					## étaient mangent
(?<!c)i [[ en ]] ((?![cn])C|T) -> e~		## viendra tien
Sam [[ en ]] T -> E n				## amen
LL [[ en ]] s?T -> e~				## examen rien 
[[ en ]] (sT|CL) -> a~				## entre pentathlon 
Ss [[ ept ]] (T|iè) -> E t			## sept septième
S(Ch?|env|hiv?|trav|ti) [[ er ]] s?T -> E R	## fer cher hier hiver
(th|w) [[ er ]] s?T -> 9 R			## brother power
[[ er ]] s?T -> e		 			## parler léger
d [[ e ]] sso?usT -> @				## dessus dessous
Sd [[ es ]] [bjnq]V -> e			## Desjardins desquels
Sl [[ es ]] qV -> e				## lesquels
(S|V)m [[ es ]] [dn]V -> e			## mesdames Dumesnil
d [[ esh ]] V -> e z				## Deshormeaux
S [[ est_ ]] V -> E t &	 			# liaison: c'est ici
S [[ est ]] T -> E		 		## il est
Sr [[ es ]] V -> @ s				## resaisir resaluer
Sr [[ e ]] s(s|tr(?!i)) -> @			## ressembler restructurer
S[cdlmst] [[ es_ ]] h?V -> e z &		# liaison: mes amis, ces hommes
S[cdlmst] [[ es ]] T -> e		 	## les des tes
(Cr|rC) [[ es_ ]] C -> @ &			## fortes dames
LL [[ es ]] T -> 		 		## dames
S [[ et ]] T -> e				## et
S [[ eu ]] T -> y 				## eu
S [[ eus ]] T -> y 				## j'eus
S [[ eut ]] T -> y 				## il eut
[[ eu ]] rs?T -> 9				## peur tracteurs
[[ eu ]] [bfilnprv] -> @ 			## meuble neuf fieul jeune
[[ eu ]] -> 2  					## meute tueuse jeu gueuze
S [[ eû ]] -> y 				## eût
[[ eû ]] -> 2 					## jeûne
[[ e ]] x -> E 					## exact
[[ ey ]] (C|T) -> e				## dahomey ceylan
[[ ey ]] -> E j					## asseye
[[ ez_ ]] h?V -> e z &				## liaison: profitez-en
[[ ez ]] T -> e					## nez mangez chez
S(C+|qu) [[ e ]] T -> @				## je te que
(Cr|rC) [[ e_ ]] C -> @ &			## quatre pattes
[[ e ]] T ->					## montre
g [[ e ]] V ->	 				## mangeons
(V|en)(C|qu) [[ e ]] ment ->				## vitement sûrement
S[dr] [[ e ]] (ch|C[lr]) -> @			## retracer degré recherche
(Sl|tr) [[ e ]] C[hlr]?V -> @			## Leclerc Lebrun entreprise
[[ e ]] C(C|T) -> E				## infect pelle mettre
ll [[ e ]] C ->					## actuellement guillemets
V(ss?|v) [[ e ]] (g|p)V ->			## sauvegarde passeport
[[ e ]] -> @					## menue

u [[ ë ]] ->	 				## ambiguë
[[ ë ]] -> E           				## citroën noël
[[ é ]] -> e 					## été
[[ è ]] -> E 					## règle
[[ ê ]] -> E 					## fête

S [[ f ]] T -> E f				## f
[[ ff ]] -> f					## affaire
Sneu [[ f_ ]] (ans|heures)T -> v &		# liaison: neuf ans
[[ f ]] -> f					## feu

S [[ g ]] T -> Z e				## g
su [[ gg ]] [eéè] -> g Z			## suggérer suggestif
[[ gg ]] -> g					## agglomérer
ai [[ gni ]] -> n j				## craignions châtaignier
[[ gn ]] -> n j					## agneau
Squatre_?vin [[ gts_ ]] (V|h) -> z &		## quatre-vingts ans
Squatre_?vin [[ gt_ ]] -> &			## quatre-vingt-un
vin [[ gt_ ]] V -> t &				# liaison: vingt ans
vin [[ gt_ ]] (deux|trois|quatr|cinq|six|sept|huit|neuf) -> t &	# liaison: vingt-trois
[[ gt ]] s?T -> 				## vingt doigts
[[ gt ]] -> t					## vingtaine doigté
ai [[ gu ]] il -> g y				## aiguillage
in [[ gu ]] is -> g y				## linguiste
[[ g ]] (C|[auâoû]) -> g			## langage
S(ran|san|lon) [[ g ]] T -> 			## rang sang long
[[ g ]] T -> g					## grog gag goulag
[[ g ]] -> Z					## congé george

S [[ h ]] T -> a S				## h
[[ _h ]] T -> _ a S				## p h d
[dl] [[ _h ]] [uoô] -> _			## d'huitre aujourd'hui d'hôte
[[ _h ]] a -> -					## les haches
[[ h ]] ->					## ahuri

[[ ie ]] ment -> i				## remerciement balbutiement
[[ i ]] es?T -> i				## parties
[[ i ]] V -> j					## fermier portier patio renier
S [[ ill ]] -> i l l				## illégal
Sm [[ ill ]] -> i l				## mille
v [[ ill ]] -> i l				## village
u [[ ill ]] -> i j				## cuillière cueillir
V [[ ill ]] -> j				## caillou
[[ ill ]] -> i j				## famille
[aeu] [[ il ]] s?T -> j				## bail deuil
[[ imm ]] -> i m m				## immaculé
[[ im ]] T -> i m				## karim
[[ im ]] C -> e~				## timbre
[[ ing ]] s?T -> i N				## parking
[[ in ]] h -> i n				## inhumain
[[ inct ]] s?T -> e~				## distinct
[[ i ]] nn -> i					## innombrable
[[ in ]] (C|T) -> e~				## vin vingt
[[ i ]] -> i					## cri

[[ î ]] -> i					## abîme
[[ în ]] (C|T) -> e~				## vînimes

[[ ïn ]] (C|T) -> e~				## coïncider
a [[ ï ]] -> j					## aïeul
[[ ï ]] -> i					## ambiguïté

S [[ j ]] T -> Z i				## j
[[ j ]] -> Z					## adjoint joujoux

S [[ k ]] T -> k a				## k
[[ k ]] -> k					## képi

S [[ l ]] T -> E l 				## l
[[ ll ]] -> l					## aller
au [[ lt ]] ->					## hérault
outi [[ l ]] s?T ->				## outil
Sfi [[ ls ]] T -> s				## fils
[[ l ]] -> l					## lit

S [[ m ]] T -> E m				## m
[[ mm ]] -> m					## pomme
[[ monsieur ]] -> m @ s j 2			## monsieur
[[ montréal ]] -> m o~ R e a l			## Montréal
[[ m ]] -> m					## film

S [[ n ]] T -> E n 				## n
V [[ ng ]] T -> N				## parking meeting
[[ nn ]] -> n					## panne
[[ n ]] -> n					## une
[[ ñ ]] -> N i					## niño

cr [[ oc ]] s?T -> o 				## escroc
[[ o ]] ch -> o 				## cochon
[[ oe ]] ll -> w a 				## moelleux
S [[ oe ]] C -> 2				## oesophage 
[[ o ]] eu ->					## soeur oeuf
[[ o ]] eC -> o					## coefficient
S [[ oi ]] gnon -> O				## oignons
[[ o ]] ing -> u				## doing
[[ oin ]] (C|T) -> w e~				## coin
[[ oi ]] -> w a 				## poil
[[ oê ]] l -> w E 				## poêle
[[ oî ]] -> w a 				## boîte
S [[ ok ]] T -> o k e				## OK
[[ o ]] mm -> O					## comme
dr [[ o ]] meT -> o 				## vélodrome
[[ om ]] [bp] -> o~				## bombe
n [[ om ]] s?T -> o~				## nom noms 
[[ om ]] T -> O m				## www.web.com
[[ on ]] T -> o~				## mon
[[ o ]] nn -> O					## bonne
(z|chr) [[ o ]] nes?T -> o			## amazone
[[ on ]] (?!h)C -> o~				## donc
alc [[ oo ]] l -> O				## alcool
z [[ oo ]] -> o					## zoo
[[ oo ]] -> u					## pool
S[gs]al [[ op ]] s?T -> o			## galops salop
Ssir [[ op ]] s?T -> o				## sirop
Str [[ op ]] T -> o				## trop
[[ o ]] sT -> o					## gros dos
v [[ ost ]] T -> o				## Prévost
[[ o ]] sV -> o					## poser
[[ ot ]] s?T -> o				## mot dépots
[cl] [[ oup ]] s?T -> u				## loups beaucoup
[[ ou ]] -> u					## hibou brouillard
[[ où ]] -> u 					## où
[[ oû ]] -> u					## coûter
[[ oyes ]] T -> w a 				## troyes
[[ oy ]] V -> w a j				## noyer voyelles
[[ oy ]] -> w a					## roy
[[ o ]] z?T -> o				## zorro allégro berlioz
[[ o ]] [mn]o -> o				## nono
o[mn] [[ o ]] -> o				## monocorde
[[ o ]] -> O					## sobre notions émotions

[[ ôt ]] s?T -> o				## rôt
[[ ô ]] -> o 					## cône
[[ ö ]] -> O 					## angström

S [[ p ]] T -> p e				## p
[mr] [[ ps ]] T ->				## corps temps champs
ch?am [[ p ]] s?T ->				## camp contrechamp
dra [[ p ]] s?T ->				## draps sparadrap
(ba|com) [[ p ]] t ->				## baptiser compte
C [[ pt ]] s?T ->				## prompt exempt
[[ ph ]] -> f					## phrase
[[ pp ]] -> p					## appliquer
[[ p ]] -> p					## pas

S [[ q ]] T -> k y				## q
[[ qu' ]] -> k					## qu'il
[[ qu ]] -> k					## quatre
n [[ q_ ]] c -> &				## cinq cent
[[ q ]] -> k					## coq

S [[ r ]] T -> E R				## r
[[ right ]] -> R a j t				## copyright
Ssu [[ rr ]] -> R R				## surréaliste
ou [[ rr ]] -> R R				## courrai 
[[ rr ]] -> R					## erreur 
[[ r ]] -> R					## rien

S [[ s ]] T -> E s				## s
[[ s' ]] -> s					## s'amène
[[ sç ]] -> s					## immisça
[[ sch ]] (iz|ol|oo) -> s k			## schizophrène
[[ sch ]] -> S					## schéma
dé [[ sh ]] V -> z				## déshabiller
[[ sh ]] -> S					## shérif
[[ ss ]] -> s					## assez
ai [[ s ]] em -> s				## vraisemblable
ub [[ s ]] is -> z				## subsister
an [[ s ]] on -> s				## chanson
(V|CCan) [[ s ]] V -> z				## baiser transition
S(mi|il|[dnv]o|écu) [[ s_ ]] V -> z &  		# liaison
S(an?|[bcprv]a|e|dè|[dflmp]i|il|[dnv]o|écu|[dflpv]u|un) [[ s ]] T ->  ## cas dos pas vus ils
(S|[im])bu [[ s ]] T -> s			## bus nimbus
#([cimnp]|[lu]l|Vs)u [[ s ]] T -> s		## focus phallus cumulus minus
([cimnp]|[lu]l)u [[ s ]] T -> s		## focus phallus cumulus minus
[acio]tu [[ s ]] T -> s				## stratus cactus motus
S(mar|sen) [[ s ]] T -> s			## sens mars
Stou [[ s_ ]] (([lms]e|[nv]o|leur)s|ceux)T -> _	## à tous les jours pour tous
Stou [[ s ]] T -> s				## à tous les jours pour tous.
LLL [[ s_ ]] V -> z &	 			# liaison: arbres en avant
LLL [[ s ]] T ->	 			## grands mesdames objets
LLLs [[ _ ]] h?V -> z &	 			# liaison: les arbres en avant
[[ s ]] [bdgjv] -> z 				## sbire
[[ s ]] -> s 					## verser sien

S [[ t ]] T -> t e				## t
[[ t' ]] -> t					## t'amène
[[ tt ]] -> t					## attitude
s [[ th ]] m ->					## asthme
[[ th ]] -> t					## théorie
hui [[ t ]] (P|T(?!C)) -> t			## huit
aoû [[ t ]] T -> t				## août
S [[ t ]] -> t					## tien tiers
an [[ t ]] ia -> t				## Santiago
V[mn]?[cpr]?(?<!bu) [[ t ]] i[ao] -> s		## tertiaire initiation option
[[ t ]] ie[lm] -> s 				## partiel patiemment
(mar|i|pa) [[ t ]] ien -> s			## martien vénitienne
(Cu|cra|ner) [[ t ]] ies?T -> s			## minutie inertie démocratie
(ne|ru) [[ t ]] s?T -> t			## brut rut net
S(es|son|tou) [[ t_ ]] V -> t &			# liaison: c'est un tout autre
(a|[nrû]|V{2}|L{2}V|cha) [[ t ]] s?T -> 		## fort chats eût peut point
S(ra|[dfl]i|[lmps]o|[dfl]u) [[ t ]] s?T ->  ## rat lit mot
[[ t ]] -> t					## bataille

[cg] [[ ueill ]] -> 9 j				## orgueilleux
[cg] [[ ueil ]] T -> 9 j			## orgueil
parf [[ um ]] s?T -> 9~				## parfum
[[ um ]] s?T -> O m				## album
[[ um ]] [bp] -> 9~				## humble
[[ un ]] (C|T) -> 9~				## emprunt brun lundi
g [[ u ]] [aeioîâéèêy] ->			## fatigue
[[ u ]] i -> H					## huitre nuit huile
[[ u ]] -> y					## cruel nuage brut

[[ û ]] -> y					## fûtes
[[ ü ]] -> y					## bülcher

S [[ v ]] T -> v e				## v
[[ v ]] -> v					## cave

S [[ w ]] T -> d u b l @ v e			## w
LL [[ ware ]] T -> w E R			## hardware, software
[[ w ]] -> w					## watt

S [[ x ]] T -> i k s				## x
[[ xs ]] -> k s					## exsuder
Se [[ x ]] (V|h) -> g z				## exagérer exemple exhumer
[aor]i [[ x ]] T ->				## voix paix prix
Ssoi [[ x ]] V ->	s			## soixante
[aeo]u [[ x_ ]] V -> z &			# liaison: foux en
[aeo]u [[ x ]] T ->				## faux toux beaux foux jeux
Sau [[ x ]] quel ->				## auxquels
S[ds]i [[ x_ ]] (V|h) -> z &			# liaison: six ans
S[ds]i [[ x_ ]] neuf -> z &			# liaison: dix-neuf
S[ds]i [[ x_ ]] C -> &				# liaison: six persones
([ds]i|eu) [[ x ]] iè -> z			## dixième deuxième
S[ds]i [[ x ]] T -> s				## six, dix
[[ x ]] -> k s					## lexique lexicaux vox

[[ ym ]] [bp] -> e~				## tympan
[[ y ]] n(n|s?T) -> i				##
[[ yn ]] -> e~					## laryngite
[[ y ]] -> i					## cryogénique myope

S [[ z ]] T -> z E d				## z
[[ zz ]] -> z					## razzia
t [[ z ]] -> s 					## tzigane
[[ z ]] -> z					## zéro

S([eou]n|[mst]on) [[ _ ]] h?V -> n &		# liaison: un avion orange
Scent [[ _ ]] (une?|huit|onze?)(T|ièm) -> _	# !liaison: cent onze
Scent [[ _ ]] h?V -> t &			# liaison: cent ans

[[ _ ]] -> _					# espace
[[ ' ]] -> 					# apostrophe

[[ . ]] -> .
[[ , ]] -> ,
[[ ; ]] -> ,
[[ : ]] -> :
[[ ! ]] -> !
[[ ? ]] -> ?


# Filtres pré-phonétisation

# Attention: la partie "produite" n'est traitée que par les filtres
# subséquents.

# Attention: Lorsqu'on match S, T ou _ (espace) on le consomme.
# Les classes B et E sont des équivalents de S et T mais sans ce problème.

CLASS B (?:^|(?<=\s|P|\'))			# limite gauche d'un mot
CLASS E (?=$|\s|P)				# limite droite d'un mot

BciceroE		-> "cicéro"
BetcE			-> "ètcétéra"
Bm\.(?=_|$)		-> "monsieur"
BmbrolaE		-> "m brola"
BmmeE			-> "madame"
BmlleE			-> "mademoiselle"
Bp\.sE			-> "postscriptum"
Bst-			-> "saint "
Bste-			-> "sainte "
Bs\.t\.pE		-> "s'il te plait"
Bs\.v\.pE		-> "s'il vous plait"

Bquelqu'unE		-> "quelquun"
(?<=V)-t-(?=V)		-> "-t'"
(?<=V)(n?t)-(?=V)	-> "\1-t'"
B(à|de|vers)\sl'estE	-> "\1 l'èst"
BmailE			-> "mél"

# signe moins
B-(N)		-> "moins \1"
# format numéro de téléphone
(?<!N)(N)(N)(N)-(N)(N)(N)-(N)(N)(N)(N) -> " \1 \2 \3, \4 \5 \6, \7 \8 \9 \g<10> "
(?<!N)(N)(N)(N)-(N)(N)(N)(N) -> " \1 \2 \3, \4 \5 \6 \7 "
# Tiret entre chiffres
(?<=N)-(?=N)	-> " tiret "
# traduit les points/virgules décimales:
\s+\.(?=N) -> ", point "
\s+,(?=N) -> ", virgule "
\.(?=N)	-> " point "
,(?=N)	-> " virgule "
# rajoute un espace entre un chiffre et une lettre:
(\d)((?!_)\D)	-> "\1 \2"
((?!_)\D)(\d)	-> "\1 \2"
# Recombine les nombres écrits avec un espace comme séparateur
(?<!N)(N{1,3})_(?=N{3}T) -> "\1"
# autrement ajoute une virgule entre nombres séparés par des espaces
# pour entre autres éviter confusion entre "3 1234" et "3234"
(?<=N)\s+(?=N{2,})	-> ", "

# Nombres
(N)(?=N{12,})	-> "\1 "
B0		-> "zéro "
([1-9]N*)(?=N{9})	-> "\1 milliard "
([1-9]N*)(?=N{6})	-> "\1 million "
(?<!N)1(?=N{3}T)	-> "mille "
([1-9]N*)(?=N{3})	-> "\1 mille "
1(?=N{2}T)	-> "cent "
([2-9])00(?=T)	-> "\1 cents "
([1-9])(?=N{2})	-> "\1 cent "
9(?=N)		-> "quatre-vingt 1"
80		-> "quatre-vingts "
8(?=N)		-> "quatre-vingt "
71		-> "soixante et onze"
7(?=N)		-> "soixante 1"
61		-> "soixante et un"
6(?=N)		-> "soixante "
51		-> "cinqante et un"
5(?=N)		-> "cinquante "
41		-> "quarante et un"
4(?=N)		-> "quarante "
31		-> "trente et un"
3(?=N)		-> "trente "
21		-> "vingt et un"
2(?=N)		-> "vingt "
16		-> "seize "
15		-> "quinze "
14		-> "quatorze "
13		-> "treize "
12		-> "douze "
11		-> "onze "
10		-> "dix "
1(?=N)		-> "dix-"
9		-> "neuf "
8		-> "huit "
7		-> "sept "
6		-> "six "
5		-> "cinq "
4		-> "quatre "
3		-> "trois "
2		-> "deux "
1		-> "un "
0		-> ""

# ponctuations prononcées si pas suivi d'un espace
\.(?!($|\s))	-> " point "
\,(?!($|\s))	-> " virgule "
\?(?!($|\s))	-> " question "
\!(?!($|\s))	-> " exclamation "
\:(?!($|\s))	-> " deux points "
\;(?!($|\s))	-> " point virgule "

# prononce "tiret" quand il n'est pas entouré de lettres
# FIXME
#\-(?!L)		-> " tiret "
#(?!L)\-		-> " tiret "

# élimine les répétitions excessives (limite à 4 répétitions)
(.)(\1){4,}		-> "\1\1\1\1"

# noms des autres symboles
"		-> " guillemet "
\#		-> " dièze "
\$		-> " dollard "
\%		-> " pour-cent "
\&		-> " et "
\(		-> " ouvre parenthèse "
\)		-> " ferme parenthèse "
\*		-> " astérisque "
\+		-> " pluss "
\/		-> " slash "
<		-> " inférieur "
=		-> " égal "
>		-> " supérieur "
\@		-> " att "
\[		-> " ouvre crochet "
\\		-> " backslash "
\]		-> " ferme crochet "
\^		-> " circonflexe "
\_		-> " souligné "
`		-> " accent grâve "
\{		-> " ouvre accolade "
\|		-> " barre "
\}		-> " ferme accolade "
~		-> " tilde "
¢		-> " cennt "
¥		-> " yenns "
£		-> " livres "
°		-> " degré "
±		-> " plus ou moins "
×		-> " multiplié par "
÷		-> " divisé par "
¼		-> " un quart "
½		-> " un demi "
¾		-> " trois quarts "
©		-> " copyright "
®		-> " registred mark "

# If these get re-ordered, no production must include - after this one.
-		-> " "

# les successions de consonnes inprononçables doivent être épelées
B(C)(C)E	-> "\1 \2"
B(C)(C)(C)E	-> "\1 \2 \3"
B(C)(C)(C)(C)E	-> "\1 \2 \3 \4"
B(C)(C)(C)(C)(C)E	-> "\1 \2 \3 \4 \5"	## https
(C)(\1)(\1)	-> " \1 \1 \1 "
Br(C)(V)E	-> " r \1 \2 "

# enlève les espaces autour des ponctuations:
\s*([\.\!\?\:\;\,\'])\s* -> "\1"
# réduit les blancs
\s+		-> " "
# enlève les blancs à la fin
\s+$		-> ""