Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2011-07-12 19:25:30 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2011-07-12 19:25:30 (GMT)
commitc58fe3fa2d05ce86656d6d259a0881e89f69ca15 (patch)
tree403b6896d751faa2afa848e71a5daeaaa8b180a9
parente243648ae170b3650bc5570f332a0ea382e3a6ed (diff)
friendlyname for english-wmids (not yet in combo)
-rw-r--r--voice.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/voice.py b/voice.py
index cb21765..14e3756 100644
--- a/voice.py
+++ b/voice.py
@@ -87,7 +87,7 @@ class Voice:
friendlynameRP = name #friendlyname for RP
friendlynameRP = friendlynameRP.replace('english_rp', 'rp')
-
+ friendlynameRP = friendlynameRP.replace('english_wmids', 'wmids')
parts = re.split('[ _-]', friendlyname)
partsRP = re.split('[ _]', friendlynameRP) #RE for english_RP
@@ -107,6 +107,13 @@ class Voice:
if friendlyname == 'us':
friendlynameUS = 'English (USA)'
print friendlynameUS
+
+ friendlynameWMIDS = None
+ if friendlynameRP == 'wmids':
+ friendlynameWMIDS = 'English (West Midlands)'
+ print friendlynameWMIDS
+
+
def __cmp__(self, other):
return cmp(self.friendlyname, other.friendlyname if other else '')