summaryrefslogtreecommitdiffstats
path: root/data/db/google/create_valid_hanzi.py
blob: de889216468c27c698e8c8379717f854dbfa292c (plain)
1
2
3
4
5
6
7
8
9
import create_db_from_google
hanzi = create_db_from_google.get_validate_hanzi()
hanzi = list(hanzi)
hanzi.sort()
print "# -*- coding: utf-8 -*- "
print "valid_hanzi = set(["
for c in hanzi:
    print "    u\"%s\"," % c.encode("utf8")
print "])"