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

Skeleton function #23

Closed
don-mums opened this issue Feb 28, 2020 · 4 comments
Closed

Skeleton function #23

don-mums opened this issue Feb 28, 2020 · 4 comments

Comments

@don-mums
Copy link

don-mums commented Feb 28, 2020

Hi!
There used to be confusables for python that I forked and no longer exists. It had one very useful function skeleton(). It returned string that transformed all confusables to normalized values. So you could detect that original strings don't match but normalized strings match. Like A in latin and А in azbuka.

https://github.com/don-mums/confusables/blob/master/confusables.py

Is this something you would like to include into your project? The only thing I found that remotely resembles skeleton() is _asciify() but this also removes all non ascii characters, which is not very useful for us. As you can see on the example below.

'Veľký Krtíš'.encode('ascii', 'ignore').decode('ascii') == 'Vek Krt'
@kevinjosethomas
Copy link

@woodgern
Copy link
Owner

@don-mums normalize is intended to provide that behaviour

@stdedos
Copy link

stdedos commented Jun 30, 2022

@don-mums
Copy link
Author

don-mums commented Jul 1, 2022

Sorry I've lost all context from this issue. I don't work for the company where we needed this. I even switched Python for Elixir. I don't care. I'm closing this so nobody is wasting time looking into this when i apparently has solution.

@don-mums don-mums closed this as completed Jul 1, 2022
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

4 participants