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

[data]

# Avoid that slash is read literally, and add phrase boundary
!(E\d+)/(A\d+)! --> "$1 \\pause=100\\ $2 "
!(E\d+)/(\d+)! --> "$1 \\pause=100\\ $2 "
!(E\d+)/(E\d+)! --> "$1 \\pause=100\\ $2 "

# replace 1a for firts, 2a for second, ...
!\s+1a\s+! --> " primeira "
!\s+2a\s+! --> " segunda "
!\s+3a\s+! --> " terceira "


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

# handle dot as "vírgula"  i.e.: After 2.5 mile ... 
!(Após\s\d)\.(\d\s)! --> "$1 vírgula $2"

# correct pronunciation of highway name starting with E
/\bE(\d+)/   -->   "\x1b/+'e\x1b/+ $1"
# Add a space between leading letter and digits of a highway number
/\b([A-Z])(\d+)/   -->   "$1 $2"
# Avoid end of sentence detection for a German ordinal number (1 or 2 digits) followed by a capital letter.
/(\s+[Dd]es\s+\d{1,2})\.(\s+[A-Z])/   -->   "$1 $2"
#Fix abbreviation Pq. D.
/\b[Pp]q\.\s+[Dd]\./   -->   " parque dom"
# correct pronunciation for C Branco
/\bC[ ]*[Bb]ranco\b/   -->   "Castello Branco"
# Correct pronunciation for 0.1 and 0.2 milhas
/\b0[\.\,]1[ ]*[Mm]ilha\b/   -->   "zero vírgula uma milha"
/\b0[\.\,]2[ ]*[Mm]ilhas\b/   -->   "zero vírgula duas milha"
