diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-21 09:57:52 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-21 09:57:52 +0800 |
commit | 68e20601ce0ffc391171686ad7f0e2f17866fe13 (patch) | |
tree | 7e7efcdc8236da9bdb78d07d09926aa787797d95 /scripts/genpinyintable.py | |
parent | 2c97eb4bdb4f4e121cc8618b639aa574387e99c1 (diff) | |
download | libpinyin-68e20601ce0ffc391171686ad7f0e2f17866fe13.tar.gz libpinyin-68e20601ce0ffc391171686ad7f0e2f17866fe13.tar.xz libpinyin-68e20601ce0ffc391171686ad7f0e2f17866fe13.zip |
handle v in gen pinyin table
Diffstat (limited to 'scripts/genpinyintable.py')
-rw-r--r-- | scripts/genpinyintable.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/genpinyintable.py b/scripts/genpinyintable.py index 7dd6823..27b1a17 100644 --- a/scripts/genpinyintable.py +++ b/scripts/genpinyintable.py @@ -32,6 +32,7 @@ def filter_pinyin_list(): for (correct, wrong, bopomofo, flags, chewing) in gen_pinyin_list(): flags = '|'.join(flags) chewing = "ChewingKey({0})".format(', '.join(chewing)) + correct = correct.replace("v", "ΓΌ") content_table.append((correct, bopomofo, chewing)) if "IS_PINYIN" in flags: pinyin_index.append((wrong, flags, correct)) |