From 51aa686a911461292d28f6c15fd90565eab926d2 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Tue, 6 Oct 2009 11:18:53 +0800 Subject: Reimplement Simp to Trad --- data/db/google/create_valid_hanzi.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 data/db/google/create_valid_hanzi.py (limited to 'data') 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 "])" -- cgit