summaryrefslogtreecommitdiffstats
path: root/scripts/genspecialtable.py
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-08 16:35:56 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-08 16:35:56 +0800
commit9532617ce6542916b8eb5e30153f09aeeb5a54fa (patch)
tree508e4df120887338b20816481e074ad0eb5e9425 /scripts/genspecialtable.py
parent3b030513e61763bd5dbf197517ed9be7bc070884 (diff)
downloadlibpinyin-9532617ce6542916b8eb5e30153f09aeeb5a54fa.tar.gz
libpinyin-9532617ce6542916b8eb5e30153f09aeeb5a54fa.tar.xz
libpinyin-9532617ce6542916b8eb5e30153f09aeeb5a54fa.zip
add comments
Diffstat (limited to 'scripts/genspecialtable.py')
-rw-r--r--scripts/genspecialtable.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/genspecialtable.py b/scripts/genspecialtable.py
index c7384b5..9abe0e4 100644
--- a/scripts/genspecialtable.py
+++ b/scripts/genspecialtable.py
@@ -41,12 +41,12 @@ def get_chewing_string(pinyin):
#handle shengmu
if pinyin not in pinyin_list:
if pinyin in shengmu_list:
- (initial, middle, final) = get_shengmu_chewing(pinyin)
+ chewing_key = get_shengmu_chewing(pinyin)
else:
assert False, "Un-expected pinyin string."
else:
- (initial, middle, final) = get_chewing(pinyin)
- chewing_str = 'ChewingKey({0}, {1}, {2})'.format(initial, middle, final)
+ chewing_key = get_chewing(pinyin)
+ chewing_str = 'ChewingKey({0})'.format(', '.join(chewing_key))
return chewing_str