summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/db/google/create_valid_hanzi.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/db/google/create_valid_hanzi.py b/data/db/google/create_valid_hanzi.py
new file mode 100644
index 0000000..de88921
--- /dev/null
+++ b/data/db/google/create_valid_hanzi.py
@@ -0,0 +1,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 "])"