PySameSame
                                
                                
                                
                                    PySameSame copied to clipboard
                            
                            
                            
                        This is a python version of samesame repo to generate homograph strings
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:
- replace ASCII characters with homograph (look-alike) characters in a given string
 
homoglyph = english_confusables.get_homograph("this is for test")
- obtain all of the potential ASCII representations of a given Unicode homoglyph.
 
ascii_reprs = english_confusables.convert_to_ascii("𝐈𝟎𝐈𝔅١𝔑S",ignore_case=True)
- obtain an HTML table representing the internal mappings that is used by PySameSame
 
mappings = english_confusables.generate_table()
- manually select a Unicode homoglyph for each English Alphabet and use the resulted mapping to transform a text using a web interface.