[header]
# 3-letter language code as used in user dictionaries
language = TRT
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 "

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

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

# replace the first Dr(.) by Doctor if there's a second Dr furter in the input.
![Dd]r\.{0,1}\s+([A-Z].+?\s+[Dd]r[\s+\.,;\!\?])! --> "Doctor  $1"

# 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
!\b[Ss][tT](\.*)(\s+[NSEW])([\s+\.,;\!\?])! --> " street$2 $3"

# Add a . after N, W, S or E if this letter is followed by 1 to 3 words beginning with a capital letter, and followed by 
# St, Rd, Ave, Blvd, Dr or Bay
!(\b)([NSEW])(\s+)(([A-Z]\w+\s+){1,3})([Ss]t|[Rr]d|[Aa]ve|[Dd]r|[Bb]ay|[Bb]lvd)! --> "$1$2.$3$4$6"

# 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"



