update gen pinyin table
authorPeng Wu <alexepico@gmail.com>
Tue, 15 Nov 2011 05:42:41 +0000 (13:42 +0800)
committerPeng Wu <alexepico@gmail.com>
Tue, 15 Nov 2011 05:42:41 +0000 (13:42 +0800)
scripts/genpinyintable.py

index eafbf5e..7dd6823 100644 (file)
@@ -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