Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 957 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 957 Bytes

Introduction to PySameSame

This is a python port of samesame utility developed by @TheTarquin. It also offers a few more features that deemed to be useful.

By using PySameSame, you can:

  1. replace ASCII characters with homograph (look-alike) characters in a given string
homoglyph = english_confusables.get_homograph("this is for test")
  1. obtain all of the potential ASCII representations of a given Unicode homoglyph.
ascii_reprs = english_confusables.convert_to_ascii("𝐈𝟎𝐈𝔅١𝔑S",ignore_case=True)
  1. obtain an HTML table representing the internal mappings that is used by PySameSame
mappings = english_confusables.generate_table()
  1. manually select a Unicode homoglyph for each English Alphabet and use the resulted mapping to transform a text using a web interface.