From 96d4179bbb7f393fb12609f9a41d6000c8a33b5e Mon Sep 17 00:00:00 2001 From: "Silas S. Brown" <ssb22@cam.ac.uk> Date: Fri, 18 Jun 2010 18:23:27 +0000 Subject: [PATCH] Gradint update git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@825 29193198-4895-4776-b068-10539e920549 --- gradint-build/src/synth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gradint-build/src/synth.py b/gradint-build/src/synth.py index 5b6212a..4d2aec0 100644 --- a/gradint-build/src/synth.py +++ b/gradint-build/src/synth.py @@ -473,7 +473,8 @@ class ESpeakSynth(Synth): if type(t)==type([]): indexList.append(len(retList)) retList.append(None) # result not filled in yet - write_to_espeak.append(fix_commas(pinyin_uColon_to_V(t[0])).replace(split_token," ")) # NB fix_compatibility has already been done (as has preprocess_chinese_numbers), by simpleZhTransliterator above + write_to_espeak.append(fix_commas(pinyin_uColon_to_V(t[0].replace("-","/"))).replace(split_token," ")) # NB fix_compatibility has already been done (as has preprocess_chinese_numbers), by simpleZhTransliterator above + # (replacing - with / because espeak zh voice treats / as a silent word separator but - is ignored; - is used as a word separator in MeiLing etc. so if you want to write the hanzi for wei2ren2 but you want it to be wei4+ren2, you can hack in this way. TODO document?) else: retList.append(t) else: retList.append(None) if keepIndexList: self.lastIndexList = indexList -- GitLab