# 3-letter language code as used in user dictionaries

[header]
language = FRF
charset = utf-8

[data]
#
# 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"
#
# replace slash with 100ms pause to avoid slash being read out literally (Bug JIRA: GI-704)
!(\D\d+)\/(\D\d+)!    -->   " $1 \\pause=100\\ $2 "
!(\D[-]\d+)\/(\D\d+)!    -->   " $1 \\pause=100\\ $2 "
!(\D\d+)\/(\d+)!    -->   " $1 \\pause=100\\ $2 "
!(\D[-]\d+)\/(\d+)!    -->   " $1 \\pause=100\\ $2 "
!(\D\d+)\/(\D[-]\d+)!    -->   " $1 \\pause=100\\ $2 "
!(\D[-]\d+)\/(\D[-]\d+)!    -->   " $1 \\pause=100\\ $2 "
#
# Add pause between letter and digits of highway name
!\b(E|A)(\d+)\b!   -->   "$1 \\pause=30\\ $2"
#
# replace the second Dr(.) by drive if there's a second Dr furter in the input.
!([Dd]r\.{0,1}\s+[A-Z].+?\s+)[Dd]r(\b)!   -->   "$1drive$2"
#
# 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
![Ss][tT](\.*)(\s+[NSEW]\b)!   -->   "street$2"
![Ss][tT](\.*)(\s+[NS][EW])!   -->   "street$2"
#
# Replace 'St' followed by a capital letter by 'saint'
![Ss][tT](\.*)(\s+[A-Z])!   -->   "saint$2"
#
# Correct pronunciation of 91, add a pause between 80 and 11
#!91(\D|$)!  -->  "80\x1b\\pause=5\\onze$1"
#
# support for 1.5 and 2.5 in active prompts (now 1,5 and 2,5)
!([Dd]ans\s+[12])\.5\s+(kilomètres|miles)!   -->   "$1,5 $2"

# 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

# avoid '.' at the end when an audio file is inserted
!(audio=\".*\"\\)+(\.)! --> "$1"
#
# The first 'St'='Saint', otherwise 'St'='Street'
!([A-Z].+?\s+)[Ss]t\.{0,1}\s+([A-Z].+?\s+)!   -->   "$1 Street $2"
![Ss]t\.{0,1}\s+([A-Z].+?\s+)!   -->   "Saint $1"
!([A-Z].+?)\b[Ss]t\.{0,1}\b([\s+\.,;\!\?])!   -->   "$1Street  $2"
#
