summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-17 18:33:27 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-17 18:33:27 +0800
commitba69d0ee731ce6ea857a7dfe224d735e01a952e7 (patch)
tree8f66355b8ebf48aefdc88b3c20ee0c25b15485eb /scripts
parenta36b1dbc6877b6df76ef2e86d0552e826c50b657 (diff)
downloadlibpinyin-ba69d0ee731ce6ea857a7dfe224d735e01a952e7.tar.gz
libpinyin-ba69d0ee731ce6ea857a7dfe224d735e01a952e7.tar.xz
libpinyin-ba69d0ee731ce6ea857a7dfe224d735e01a952e7.zip
update python scripts
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genspecialtable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/genspecialtable.py b/scripts/genspecialtable.py
index d109b57..df0c30f 100644
--- a/scripts/genspecialtable.py
+++ b/scripts/genspecialtable.py
@@ -60,7 +60,7 @@ def gen_divided_table():
if orig_freq >= new_freq:
assert orig_freq > 0, "Expected orig_freq > 0 here."
- entry = '{{{0}, {1}, {2}, {3}, {4}}}'.format \
+ entry = '{{{0}, {1}, {{{2}, {3}}}, {4}}}'.format \
(pinyin_key, orig_freq, first_key, second_key, new_freq)
entries.append(entry)
return ',\n'.join(entries)
@@ -76,7 +76,7 @@ def gen_resplit_table():
if orig_freq >= new_freq:
assert orig_freq > 0, "Expected orig_freq > 0 here."
- entry = '{{{0}, {1}, {2}, {3}, {4}, {5}}}'.format \
+ entry = '{{{{{0}, {1}}}, {2}, {{{3}, {4}}}, {5}}}'.format \
(orig_first_key, orig_second_key, orig_freq,\
new_first_key, new_second_key, new_freq)
entries.append(entry)