Skip to content

Is there a way to transliterate European accent characters only, but leave Chinese characters as it is? #87

@shivanraptor

Description

@shivanraptor

My code is as follow:

from unidecode import unidecode

s = "中文字café"

output = unidecode(s)
print(output)

It outputs Zhong Wen Zi cafe. Can the function only transliterate European accent characters only, but leave Chinese characters as it is?

Desired output: 中文字cafe

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions