summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-15 13:42:41 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-15 13:42:41 +0800
commitba0fe0bfcd3d37f86fad9e7cdf44c511352eca08 (patch)
tree6bd605b40cb61df7489127b74778495ca27c38ee /scripts
parentaa88ca0ec666553b1a79b632ecaf9ef32049840f (diff)
downloadlibpinyin-ba0fe0bfcd3d37f86fad9e7cdf44c511352eca08.tar.gz
libpinyin-ba0fe0bfcd3d37f86fad9e7cdf44c511352eca08.tar.xz
libpinyin-ba0fe0bfcd3d37f86fad9e7cdf44c511352eca08.zip
update gen pinyin table
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genpinyintable.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/genpinyintable.py b/scripts/genpinyintable.py
index eafbf5e..7dd6823 100644
--- a/scripts/genpinyintable.py
+++ b/scripts/genpinyintable.py
@@ -43,6 +43,8 @@ def sort_all():
global content_table, pinyin_index, bopomofo_index
#remove duplicates
content_table = list(set(content_table))
+ pinyin_index = list(set(pinyin_index))
+ bopomofo_index = list(set(bopomofo_index))
#define sort function
sortfunc = operator.itemgetter(0)
#begin sort