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

Unicode confusables characters are removed #142

Closed
chuckyblack opened this issue Jan 25, 2024 · 1 comment
Closed

Unicode confusables characters are removed #142

chuckyblack opened this issue Jan 25, 2024 · 1 comment

Comments

@chuckyblack
Copy link

https://util.unicode.org/UnicodeJsps/confusables.jsp?a=a&r=None

Current result

from slugify import slugify

assert slugify("𝐚́́𝕒́") == ""

Expected result

from slugify import slugify

assert slugify("𝐚́́𝕒́") == "aa"

Possible solution

I think text = unicodedata.normalize("NFKC", text) should be called before text = unidecode.unidecode(text).

@un33k
Copy link
Owner

un33k commented Jan 25, 2024

@chuckyblack thanks for reporting it. I have raised a PR, which will normalize the text twice.

#143

@un33k un33k closed this as completed Jan 25, 2024
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