Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you upgrade to handle the case 'wang4 na2 yi1xie1 dong1xi5 le5'? ("忘拿一些东西了") #1

Open
bk111 opened this issue Jun 2, 2023 · 1 comment

Comments

@bk111
Copy link

bk111 commented Jun 2, 2023

Can you upgrade to handle the case 'wang4 na2 yi1xie1 dong1xi5 le5'? ("忘 拿 一些 东西 了")

'wang4-na2-yi1xie1-dong1xi5-le5' , '-' is space.

@rku1999
Copy link
Owner

rku1999 commented Dec 4, 2024

this should be workingn as expected

from pyzhuyin import pinyin_to_zhuyin

test_case = "wang4 na2 yi1 xie1 dong1 xi5 le5"
print(list(map(pinyin_to_zhuyin, test_case.split(" "))))

Gives: ['ㄨㄤˋ', 'ㄋㄚˊ', 'ㄧ', 'ㄒㄧㄝ', 'ㄉㄨㄥ', '˙ㄒㄧ', '˙ㄌㄜ']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants