refine the file.
This commit is contained in:
parent
a5cf4dad7c
commit
bc5597df42
2 changed files with 14134 additions and 14132 deletions
|
|
@ -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
28257
im/zh_tw.im
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue