PageRenderTime 42ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 19ms app.codeStats 0ms

/python/engine/PinYin/tools/sc_filter.py

http://scim-python.googlecode.com/
Python | 12 lines | 10 code | 2 blank | 0 comment | 4 complexity | 759982cafa60355697e7d8b4cd838122 MD5 | raw file
 1import sys
 2sys.path.append ("../../..")
 3from scim import SCTC
 4
 5def main ():
 6	for line in sys.stdin:
 7		uline = unicode (line, "utf8")
 8		if SCTC.is_scstring (uline):
 9			print line,
10
11if __name__ == "__main__":
12	main ()