Update: 初学记、佩文韵府 and 五车韵瑞

This commit is contained in:
denglifan
2026-03-22 16:18:35 +08:00
parent df475fd03f
commit 183b842090
553 changed files with 754048 additions and 169 deletions

View File

@@ -0,0 +1,9 @@
def simplify_char(c):
mapping = {'': '', '': '', '': ''} # add others if needed
return mapping.get(c, c)
num_map = {'':'1', '':'2', '':'3', '':'4', '':'5', '':'6', '':'7', '':'8', '':'9'}
# "01之一"
# If vol_m = re.search(r"卷(.)之(.)", text)
# "0" + num_map[vol_m.group(1)] + "之" + vol_m.group(2)