diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-17 18:33:27 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-17 18:33:27 +0800 |
commit | ba69d0ee731ce6ea857a7dfe224d735e01a952e7 (patch) | |
tree | 8f66355b8ebf48aefdc88b3c20ee0c25b15485eb /scripts | |
parent | a36b1dbc6877b6df76ef2e86d0552e826c50b657 (diff) | |
download | libpinyin-ba69d0ee731ce6ea857a7dfe224d735e01a952e7.tar.gz libpinyin-ba69d0ee731ce6ea857a7dfe224d735e01a952e7.tar.xz libpinyin-ba69d0ee731ce6ea857a7dfe224d735e01a952e7.zip |
update python scripts
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genspecialtable.py | 4 |
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) |