[header]
# 3-letter language code as used in user dictionaries
language = ITI
charset = utf-8

[data]

# 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 after highway name
!\s+([A-Z]\d+)\s+! --> " $1 \\pause=200\\ " 

# Add pause after direction on head command
!\s+Andare\s+verso\s+Nord\s+(\.*)! --> " Andare verso Nord \\pause=300\\ $1" 
# Add pause after direction on head command
!\s+Andare\s+verso\s+Sud\s+(\.*)! --> " Andare verso Sud \\pause=300\\ $1" 
# Add pause after direction on head command
!\s+Andare\s+verso\s+Est\s+(\.*)! --> " Andare verso Est \\pause=300\\ $1" 
# Add pause after direction on head command
!\s+Andare\s+verso\s+Ovest\s+(\.*)! --> " Andare verso Ovest \\pause=300\\ $1" 
# Add pause after direction on head command
!\s+Andare\s+verso\s+Nord-Est\s+(\.*)! --> " Andare verso Nord-Est \\pause=300\\ $1" 
# Add pause after direction on head command
!\s+Andare\s+verso\s+Sud-Est\s+(\.*)! --> " Andare verso Sud-Est \\pause=300\\ $1" 
# Add pause after direction on head command
!\s+Andare\s+verso\s+Sud-Ovest\s+(\.*)! --> " Andare verso Sud-Ovest \\pause=300\\ $1" 
# Add pause after direction on head command
!\s+Andare\s+verso\s+Nord-Ovest\s+(\.*)! --> " Andare verso Nord-Ovest \\pause=300\\ $1" 

# replace unknown abbreviations by known abbreviations, instead of simply expanding them
# this way, the trailing '.' can be retained to keep the end of sentence detection if the abbreviation was at the end of a sentence
# replace abbreviation 'ter' by 'terr' ('terrace')
!\s+[Tt]er(\.*)\s+! --> " terr$1 "

# replace abbreviation 'pkw' by 'pkwy' ('parkway')
!\s+[Pp]kw(\.*)\s+! --> " pkwy$1 "

# replace abbreviation 'br' by 'brg' ('bridge')
!\s+[Bb]r(\.*)\s+! --> " brg$1 "

# replace abbreviation Int'L by 'International' 
!\s+[I]nt'L(\.*)\s+! --> " International$1 "

# replace abbreviation III by '3' 
!\s+[Ii][Ii][Ii]\s+! --> " 3 "
# replace abbreviation III by '3' 
!\s+[Ii][Ii][Ii].! --> " 3 "

# replace abbreviation 'Cir' by 'Cir' ('circle')
!\s+[C]ir(\.*)\s+! --> " Circle$1 "

# replace I-[0-9]  by Interstate followed by the number
!\s+I-([0-9])! --> "Interstate $1"

# replace [N]  followed by street name by North followed by street name
!\s+[N](\.*)(\s+\.*)! --> "North$2"

# replace [S]  followed by street name by South followed by street name
!\s+[S](\.*)(\s+\.*)! --> "South$2"

# replace [W]  followed by street name by West followed by street name
!\s+[W](\.*)(\s+\.*)! --> "West$2"

# replace [E]  followed by street name by West followed by street name
!\s+[E](\.*)(\s+\.*)! --> "East$2"

# replace 'St' followed by NE, NW, SE or SW by 'street' i.o. 'saint'
![Ss][tT](\.*)(\s+[NS][EW])! --> "street$2"

# replace 'St' followed by N, W, S or E by 'street' i.o. 'saint' and
# avoid missing end of sentence detection (non final abbreviation) in case of a '.' following N,W,S or E
![Ss][tT](\.*)(\s+[NSEW])([\s+\.,;\!\?])! --> "street$2 $3"

# Spell capital letter followed by 3 digits (not zero)
!(\s+[A-Z]\d)([1-9])([1-9][\s+\.,;\!\?])! --> "$1 $2 $3"

# Use 'double oh' if the middle 2 digits are zero of a 4 digit number following a capital letter
!(\s+[A-Z]\d)00([1-9][\s+\.,;\!\?])! --> "$1 double oh $2"

# Pronounce 0 in 2nd position of a 4 digit number following a capital letter as 'Oh' 
!(\s+[A-Z]\d)0([1-9])([1-9][\s+\.,;\!\?])! --> "$1 oh $2 $3"

# Pronounce 0 in 3rd position of a 4 digit number following a capital letter as 'Oh', 
# knowing that a 3 digit number with 0 in the middle is pronounced correctly in address mode
!(\s+[A-Z]\d)([1-9]0[1-9][\s+\.,;\!\?])! --> "$1 $2"

# Spell capital letter followed by 4 digits if the last digit is non zero
!(\s+[A-Z]\d)(\d)(\d)([1-9][\s+\.,;\!\?])! --> "$1 $2 $3 $4"

# Ignore parenthesis around M if following a capital letter and one or more digits
!(\s+[A-Z]\d+)\(M\)([\s+\.,;\!\?])! --> "$1 M$2"

# Avoid expansion of "Alt" into "alternative" when followed by a hyphen and a capital letter and non white spaces
!(\s+)Alt\-([A-Z]\S+)! --> "$1/+Alt/+ $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+)(\.*)(\.*\s*|\s+)(\D)! --> "$1$2$3\x1b\\tn=normal\\$4\x1b\\tn=address\\$6"

# avoid '.' at the end when an audio file is inserted
!(audio=\".*\"\\)+(\.)! --> "$1"



