refine the file.

This commit is contained in:
Song Huang 2007-11-18 08:06:11 +00:00
parent a5cf4dad7c
commit bc5597df42
2 changed files with 14134 additions and 14132 deletions

View file

@ -27,9 +27,16 @@ if __name__ == '__main__':
# 執行輸出
cinfile = copen(phonemap, "r", "utf8")
(bopomofo, chinachar) = cinfile.readline().split()
bpmf_count = 0
bpmf_temp = bopomofo
while bopomofo:
if bpmf_temp == bopomofo:
bpmf_count += 1
else:
bpmf_count = 1
bpmf_temp = bopomofo
chinacharnum = str(hex(ord(chinachar)))[2:]
outfile.write("%s\t%s\t-\t# %s \n" % (chinacharnum, bopomofo, chinachar))
outfile.write("%s\t%s%s\t-\t# %s \n" % (chinacharnum, bopomofo, bpmf_count, chinachar))
try:
(bopomofo, chinachar) = cinfile.readline().split()
except:

28257
im/zh_tw.im

File diff suppressed because it is too large Load diff