summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-08-07 14:04:03 +0800
committerPeng Wu <alexepico@gmail.com>2013-08-07 14:04:03 +0800
commit440bb43c605bfba48e14686e3f7a198381c32a88 (patch)
tree2dc339adfeba95a488d488c71a6985d9135e5e54 /scripts
parent193cea02bd4d281a83532ef0b7249dc49d9d2409 (diff)
downloadlibzhuyin-440bb43c605bfba48e14686e3f7a198381c32a88.tar.gz
libzhuyin-440bb43c605bfba48e14686e3f7a198381c32a88.tar.xz
libzhuyin-440bb43c605bfba48e14686e3f7a198381c32a88.zip
remove get_sheng_yun
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genpinyintable.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/genpinyintable.py b/scripts/genpinyintable.py
index cc60034..574f513 100644
--- a/scripts/genpinyintable.py
+++ b/scripts/genpinyintable.py
@@ -58,6 +58,7 @@ def sort_all():
pinyin_index = sorted(pinyin_index, key=sortfunc)
bopomofo_index = sorted(bopomofo_index, key=sortfunc)
+'''
def get_sheng_yun(pinyin):
if pinyin == None:
return None, None
@@ -70,12 +71,12 @@ def get_sheng_yun(pinyin):
if s in shengmu_list:
return s, pinyin[i:]
return "", pinyin
+'''
def gen_content_table():
entries = []
for ((correct, bopomofo, chewing)) in content_table:
- (shengmu, yunmu) = get_sheng_yun(correct)
- entry = '{{"{0}", "{1}", "{2}", "{3}", {4}}}'.format(correct, shengmu, yunmu, bopomofo, chewing)
+ entry = '{{"{0}", "{1}", {2}}}'.format(correct, bopomofo, chewing)
entries.append(entry)
return ',\n'.join(entries)