diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-13 17:13:10 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-13 17:13:10 +0800 |
commit | 4d43f63b30bcb97b7e0f3761df5c7902d4575bc5 (patch) | |
tree | d989fd8eb8a404ac97c72a5fa05f02a26545c17b /scripts/genpinyintable.py | |
parent | c922c671b78d176c372eb323cacde33dba24b93b (diff) | |
download | libpinyin-4d43f63b30bcb97b7e0f3761df5c7902d4575bc5.tar.gz libpinyin-4d43f63b30bcb97b7e0f3761df5c7902d4575bc5.tar.xz libpinyin-4d43f63b30bcb97b7e0f3761df5c7902d4575bc5.zip |
gen chewing key to table index map
Diffstat (limited to 'scripts/genpinyintable.py')
-rw-r--r-- | scripts/genpinyintable.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/genpinyintable.py b/scripts/genpinyintable.py index 5af4e91..4f4e64f 100644 --- a/scripts/genpinyintable.py +++ b/scripts/genpinyintable.py @@ -21,6 +21,7 @@ import operator from pinyintable import * +from chewingkey import gen_table_index content_table = [] @@ -83,6 +84,10 @@ def gen_bopomofo_index(): return ',\n'.join(entries) +def gen_chewing_key_table_index_map(): + return gen_table_index(content_table) + + #init code filter_pinyin_list() sort_all() @@ -90,5 +95,6 @@ sort_all() ### main function ### if __name__ == "__main__": - s = gen_content_table() + gen_pinyin_index() + gen_bopomofo_index() + #s = gen_content_table() + gen_pinyin_index() + gen_bopomofo_index() + s = gen_chewing_key_table_index_map() print(s) |