@@ -58,17 +58,17 @@ def unicode(s): return s
58
58
}
59
59
english_ibm_fixes = {
60
60
#Prevents the synth from spelling out everything if a punctuation mark follows a word.
61
- re .compile (br"([a-z]+)([\x7e\x23\x24\x25\x5e\x2a\x28\x7b\x7c\x5c\x5b\x3c\x25 \x95])" , re .I ): br"\1 \2" ,
61
+ re .compile (br"([a-z]+)([~#$%^*({|\\[<% \x95])" , re .I ): br"\1 \2" ,
62
62
#Don't break phrases like books).
63
63
re .compile (br"([a-z]+)\s+(\(s\))" , re .I ): br"\1\2" ,
64
64
#Removes spaces if a string is followed by a punctuation mark, since ViaVoice doesn't tolerate that.
65
- re .compile (br"([a-z]+|\d+|\W+)\s+([\x3a\x2e\x21\x3b\x2c ])" , re .I ): br"\1\2" ,
65
+ re .compile (br"([a-z]+|\d+|\W+)\s+([:.!;, ])" , re .I ): br"\1\2" ,
66
66
re .compile (br"(http://|ftp://)([a-z]+)(\W){1,3}([a-z]+)(/*\W){1,3}([a-z]){1}" , re .I ): br"\1\2\3\4 \5\6" ,
67
- re .compile (br"(\d+)([\x2d\x2b\x2a\x5e\x2f ])(\d+)(\.)(\d+)(\.)(0{2,})" , re .I ): br"\1\2\3\4\5\6 \7" ,
68
- re .compile (br"(\d+)([\x2d\x2b\x2a\x5e\x2f ])(\d+)(\.)(\d+)(\.)(0\W)" , re .I ): br"\1\2\3\4 \5\6\7" ,
69
- re .compile (br"(\d+)([\x2d\x2b\x2a\x5e\x2f ]+)(\d+)([\x2d\x2b\x2a\x5e\x2f ]+)([\x2c\x2e +])(0{2,})" , re .I ): br"\1\2\3\4\5 \6" ,
70
- re .compile (br"(\d+)(\.+)(\d+)(\.+)(0{2,})\s*\.*([\x2d\x2b\x2a\x5e\x2f ])" , re .I ): br"\1\2\3\4 \5\6" ,
71
- re .compile (br"(\d+)\s*([\x2d\x2b\x2a\x5e\x2f ])\s*(\d+)(,)(0{2,})" , re .I ): br"\1\2\3\4 \5" ,
67
+ re .compile (br"(\d+)([-+*^/ ])(\d+)(\.)(\d+)(\.)(0{2,})" , re .I ): br"\1\2\3\4\5\6 \7" ,
68
+ re .compile (br"(\d+)([-+*^/ ])(\d+)(\.)(\d+)(\.)(0\W)" , re .I ): br"\1\2\3\4 \5\6\7" ,
69
+ re .compile (br"(\d+)([-+*^/ ]+)(\d+)([-+*^/ ]+)([,. +])(0{2,})" , re .I ): br"\1\2\3\4\5 \6" ,
70
+ re .compile (br"(\d+)(\.+)(\d+)(\.+)(0{2,})\s*\.*([-+*^/ ])" , re .I ): br"\1\2\3\4 \5\6" ,
71
+ re .compile (br"(\d+)\s*([-+*^/ ])\s*(\d+)(,)(0{2,})" , re .I ): br"\1\2\3\4 \5" ,
72
72
}
73
73
spanish_fixes = {
74
74
# Euros
0 commit comments