# 3-letter language code as used in user dictionaries

[header]
language = FRC
charset = utf-8

[data]
#
# avoid '.' at the end when an audio file is inserted
!(audio=\".*\"\\)+(\.)! --> "$1"
#
# Correct pronunciation of Août when preceded and followed by digits, and add a pause after Août to improve pronunciation.
!(\d+\s+)[Aa]oût(\s+\d+)!   -->   "$1\x1b/+'ut\x1b/+ \x1b\\pause=10\\ $2"
#
# Correct pronunciation of 8 in front of consonants
#!(\s+)8(\s+[bcdfgjklmnpqrstvwxyzBCDFGJKLMNPQRSTVWXYZ])!   -->   $1\x1b/+'h\\i\x1b/+$2
#
# no silence after digits in address mode when preceded by 'de', 'des', 'du', 'de la'
!(\x1b\\tn=address\\.+?\s+[Dd])(es{0,1}|u|e\s+la)(\s+)(\d+)(\.{0,1})(\s+\D)!   -->   "$1$2$3\x1b\\tn=normal\\$4\x1b\\tn=address\\$6"
#
# Avoid E to pronounced as Est when followed by numbers
!(\b)E(\d+)!   -->   $1e$2
# Avoid that slash is read literally, and add phrase boundary
!\b([A-Ze]\d+)/([A-Ze]\d+)!   -->   "$1 \\pause=100\\ $2"
!(\b[A-Ze]\d+)/([A-Ze]\d+)!   -->   "$1 \\pause=100\\ $2"
#
# replace the second Dr(.) by drive if there's a second Dr furter in the input.
!(\b[Dd]r\.{0,1}\s+[A-Z].+?\s+)[Dd]r(\b)!   -->   "$1drive$2"
#
# broken abbreviation because of expansion of st to street or saint
/\bst\.{0,1}\s+coop\.{0,1}\s+agr\.{0,1}\s+elev\b/i   -->   "société coopérative agricole d'élevage"
#
# replace 'St' followed by N, W, S, E, NE, NW, SE or SW by 'street'
# avoid missing end of sentence detection (non final abbreviation) in case of a '.' following N,W,S or E
!\b[Ss][tT](\.*)(\s+[NSEW]\b)!   -->   " street$2"
!\b[Ss][tT](\.*)(\s+[NS][EW])!   -->   " street$2"
# Replace 'St' followed by a capital letter by 'saint'
!\b[Ss][tT](\.*)(\s+[A-Z])!   -->   " saint$2"
#
# support for 1.5 and 2.5 in active prompts (now 1,5 and 2,5)
!(\b[Aa]près\s+[12])\.5\s+(kilomètre|mille)!   -->   "$1,5 $2"
#
# Am. expands to Amiral only with the trailing dot
/\bAm\./   -->   "Amiral"
#
#hte followed by consonant, followed by vowel covered by user dictionary
/\bhte\s([bcdfgjklmnpqrstvwxz])/i   -->   "haut $1"
#a/s followed by consonant, next line covers de vowels (remove space)
/\ba\/s\s([bcdfgjklmnpqrstvwxz])/i   -->   "au soin de $1"
/\ba\/s\s/   -->   "au soin d'"
#correct pronunciation, cannot be done with user dictionary because of the dot
/\blouis-h\.-lafontaine\b/i   -->   "/+'lwi_?i.pO.'lIt_la.fo%~.'tEn/+"
/\bj\.-octave-lebel\b/i   -->   "jean-octave-lebel"
/\bj\.-s\.-archambault\b/i   -->   "jean-s-archambault"
/\bjeanne-m\.-chavoin\b/i   -->   "/+'Zan_ma.'Ri_Sa.'vw@%~/+"
/\bm\.-o\.-david\b/i   -->   "/+'maRk_O.li.'vje_'da.vIt/+"
# j. c
/\bj\.\s+c\b/   -->   "Jésus Christ"
# replace multiword abbreviations by single word, correct expansion is in user dictionary
/\bz\.?[ ]*a\b/   -->   "za"
/\bz[ ]+d[ ]+activites\b/   -->   "za"
/\bz[ ]+d'[ ]*activite\b/   -->   "za"
/\bz[ ]+artisanale\b/   -->   "zart"
/\bz[ ]+cciale\b/   -->   "zone_commerciale"
/\bz[ ]+commerciale\b/   -->   "zone commerciale"
/\bz[ ]+d'amenagement[ ]+concerte\b/   -->   "zac"
/\bz([ ]+de[ ]+la[ ]+prairie)\b/   -->   "zone $1"
/\bz([ ]+espale)\b/   -->   "zone $1"
/\bz([ ]+d'aviation)\b/   -->   "zone $1"
/\bz([ ]+portuaire)\b/   -->   "zone $1"
/\bz[ ]+indust\b/   -->   "zi"
/\bz\.?[ ]*i\b/   -->   "zi"
/\bzne[ ]+ind\b/   -->   "zi"
/\bzone[ ]+industr\b/   -->   "zi"
