Skip to content

Instantly share code, notes, and snippets.

@rhhernandes
Created December 12, 2017 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhhernandes/f29a90d4ea83369b40c3f92b09c67a4e to your computer and use it in GitHub Desktop.
Save rhhernandes/f29a90d4ea83369b40c3f92b09c67a4e to your computer and use it in GitHub Desktop.
Python dictionary with Brazilian Portuguese (PT_BR) special characters and their non-special versions
dic = {'à':'a', 'á':'a', 'â':'a', 'ã':'a', 'ä':'a', 'è':'e', 'é':'e', 'ê':'e', 'ë':'e', 'ì':'i', 'í':'i', 'î':'i', 'ï':'i', 'ò':'o', 'ó':'o', 'ô':'o', 'õ':'o', 'ö':'o', 'ù':'u', 'ú':'u', 'û':'u', 'ü':'u', 'À':'A', 'Á':'A', 'Â':'A', 'Ã':'A', 'Ä':'A', 'È':'E', 'É':'E', 'Ê':'E', 'Ë':'E', 'Ì':'I', 'Í':'I', 'Î':'I', 'Ò':'O', 'Ó':'O', 'Ô':'O', 'Õ':'O', 'Ö':'O', 'Ù':'U', 'Ú':'U', 'Û':'U', 'Ü':'U', 'ç':'c', 'Ç':'C', 'ñ':'n', 'Ñ':'N'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment