diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2009-10-06 11:18:53 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2009-10-06 11:18:53 +0800 |
commit | 51aa686a911461292d28f6c15fd90565eab926d2 (patch) | |
tree | d6b70c7787e5066cbac899b3ae1d6d2d722c50c5 /data | |
parent | 5fcba789bfa30a67ee652ebb137a169a3a006212 (diff) | |
download | ibus-libpinyin-51aa686a911461292d28f6c15fd90565eab926d2.tar.gz ibus-libpinyin-51aa686a911461292d28f6c15fd90565eab926d2.tar.xz ibus-libpinyin-51aa686a911461292d28f6c15fd90565eab926d2.zip |
Reimplement Simp to Trad
Diffstat (limited to 'data')
-rw-r--r-- | data/db/google/create_valid_hanzi.py | 9 |
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 "])" |