/
Depends on
- dh-python (dh-python)
- python-click (python3-click)
- python3-defaults (python3-all)
- setuptools (python3-setuptools)
- sphinx (python3-sphinx)
- debhelper-compat
README (full)
confusable_homoglyphs [doc]_
This project has been adopted from the original confusable_homoglyphs by Victor Felder.
*a homoglyph is one of two or more graphemes, characters, or glyphs with shapes that appear identical or very similar* wikipedia:Homoglyph_
Unicode homoglyphs can be a nuisance on the web. Your most popular client, AlaskaJazz, might be upset to be impersonated by a trickster who deliberately chose the username ΑlaskaJazz.
AlaskaJazzis single script: only Latin characters.-
ΑlaskaJazzis mixed-script: the first character is a greekletter.
You might also want to avoid people being tricked into entering their password on www.microsоft.com or www.faϲebook.com instead of www.microsoft.com or www.facebook.com. Here is a
utility_ to play with these confusable homoglyphs.
Not all mixed-script strings have to be ruled out though, you could only exclude mixed-script strings containing characters that might be confused with a character from some unicode blocks of your choosing.
Alloandρττare fine: single script.-
AlloΓis fine when our preferred script alias is 'latin': mixedscript, but
Γis not confusable. -
Alloρis dangerous: mixed script andρcould be confused withp.
This library is compatible with Python 3.
API documentation_
Is the data up to date?
Yep.
The unicode blocks aliases and names for each character are extracted from this file_ provided by the unicode consortium.
The matrix of which character can be confused with which other characters is built using this file_ provided by the unicode consortium.
This data is stored in two JSON files: categories.json and confusables.json. If you delete them, they will both be recreated by downloading and parsing the two abovementioned files and stored as JSON files again.
| dir | .builds/ |
| dir | confusable_homoglyphs/ |
| dir | confusable_homoglyphs.egg-info/ |
| dir | debian/ |
| dir | docs/ |
| dir | tests/ |
| file | .editorconfig |
| file | .flake8 |
| file | .gitattributes |
| file | .gitignore |
| file | .readthedocs.yaml |
| file | .travis.yml |
| file | AUTHORS.rst |
| file | CONTRIBUTING.rst |
| file | HISTORY.rst |
| file | LICENSE |
| file | MANIFEST.in |
| file | Makefile |
| file | PKG-INFO |
| file | README.rst |
| file | check |
| file | requirements.txt |
| file | setup.cfg |
| file | setup.py |
| file | tox.ini |
| file | versioneer.py |