Skip to content

Commit

Permalink
alpha 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Omnisch committed Sep 3, 2024
1 parent c210fe6 commit 1f09f75
Show file tree
Hide file tree
Showing 4 changed files with 25,360 additions and 25,361 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"author": "Aoyama ([email protected])",
"description": "Guangyun, A Phonology Dictionary of Middle Chinese",
"format": 3,
"revision": "aoyama_guangyun_alpha0.3",
"revision": "aoyama_guangyun_a1.0",
"title": "Guangyun"
}
2 changes: 1 addition & 1 deletion kanji_bank_1.json

Large diffs are not rendered by default.

51 changes: 25 additions & 26 deletions res/create_table_stripped.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@

indices = [
'字頭', #0
'反切', #1
'切韻擬音', #2
'聲紐', #3
'', #4
'韻部', #5
'等', #6
'呼', #7
'聲調', #8
'A/B類分析', #9
'聲旁', #10
'字類', #11
'形聲-形', #12
'形聲-聲', #13
'釋義', #14
'釋義補充', #15
'聲紐', #1
'攝', #2
'韻部', #3
'', #4
'呼', #5
'聲調', #6
'A/B類分析', #7
'反切', #8
'聲旁', #9
'切韻擬音', #10
'釋義', #11
'釋義補充', #12
'字類', #13
'形聲-形', #14
'形聲-聲', #15
'聲形析微', #16
]

Expand All @@ -34,21 +34,20 @@
for line in lines:
items = line.strip().split(',')
keyChr = items[0]
prn = items[1] + '切 ' + items[2]
prn = ''.join(items[1:7])
if items[7] != '':
prn += '(' + items[7] + ')'
prn += ' ' + items[8] + '切 ' + items[9] + '聲 ' + items[10]


expList = []
if items[9] != '':
expList.append('"' + ''.join(items[3:9]) + '(' + items[9] + ') ' + items[10] + '聲"')
if items[12] != '':
expList.append('"' + items[11] + '(' + items[12] + ')"')
else:
expList.append('"' + ''.join(items[3:9]) + ' ' + items[10] + '聲"')
if items[11] == '':
items[11] = '形聲'
expList.append('"' + items[11] + '字 ' + items[12] + items[13] + '"')
if items[15] != '':
expList.append('"' + items[14] + '(' + items[15] + ')"')
else:
expList.append('"' + items[14] + '"')
expList.append('"' + items[11] + '"')
if items[13] == '':
items[13] = '形聲'
expList.append('"' + items[13] + '字◎' + items[14] + items[15] + '"')
if items[16] != '':
expList.append('"' + indices[16] + ':' + items[16] + '"')

Expand Down
Loading

0 comments on commit 1f09f75

Please sign in to comment.