-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
if b.locp[0] == 'w' and b.vowel[0] == 'u' and len(b.vowel) > 1:
b.consonant = 'w'
b.vowel = b.vowel[1:]
if a.locp[0] == 'w' and a.vowel[0] == 'u' and len(a.vowel) > 1:
a.consonant = 'w'
a.vowel = a.vowel[1:]
if a.locp[0] == 'y' and a.vowel[0] == 'u' and len(a.vowel) > 1:
a.consonant = 'y'
a.vowel = a.vowel[1:]
if a.vowel[-1] == ':':
a.vowel = a.vowel[:-1]
if b.locp[0] == 'y' and b.vowel[0] == 'u' and len(b.vowel) > 1:
b.consonant = 'y'
# b.vowel = b.vowel[1:]
if b.vowel[-1] == ':':
b.vowel = b.vowel[:-1]
自己写代码先修了一下,总之就是pypinyin这个库对这两个的识别和其他的是不一样的
iioSnail, bh-lyu and ton11111
Metadata
Metadata
Assignees
Labels
No labels