Skip to content

Instantly share code, notes, and snippets.

@Avyd
Last active August 29, 2015 13:56
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 Avyd/8891740 to your computer and use it in GitHub Desktop.
Save Avyd/8891740 to your computer and use it in GitHub Desktop.
Hungarian_Text_l33tifier
#!/usr/bin/python
# -*- coding: utf-8 -*-
#https://simple.wikipedia.org/wiki/Leet
#http://qntm.org/l33t
#http://www.securepasswords.net/site/ASCII-1337-Alphabet/page/23.html
#http://leet.wikia.com/wiki/Category:Letters
text = raw_input("Text to l33t1fy: ")
text = text.lower()
go = text.replace("a","4")
go = go.replace("á","4'")
go = go.replace("b","|3")
go = go.replace("c","(")
go = go.replace("cs","(5")
go = go.replace("d","|)")
go = go.replace("dz","|)2")
go = go.replace("dzs","|>2$")
go = go.replace("e","3")
go = go.replace("é","3'")
go = go.replace("f","|=")
go = go.replace("g","6")
go = go.replace("gy","6`/")
go = go.replace("h","|-|")
go = go.replace("i","1")
go = go.replace("í","1'")
go = go.replace("j","_|")
go = go.replace("k","|<")
go = go.replace("l","|_")
go = go.replace("ly","|`/")
go = go.replace("m","/\/\ ")
go = go.replace("n","/|/")
go = go.replace("ny","/\/`/")
go = go.replace("o","()")
go = go.replace("ó","(')")
go = go.replace("ö","(``)")
go = go.replace("ő","('')")
go = go.replace("p","|D")
go = go.replace("q","(,)")
go = go.replace("r","|2")
go = go.replace("s","5")
go = go.replace("sz","$2")
go = go.replace("t","7")
go = go.replace("ty","+ʎ")
go = go.replace("u","|_|")
go = go.replace("ú","|_'|")
go = go.replace("ü","|`_`|")
go = go.replace("ű","|'_'|")
go = go.replace("v","\/")
go = go.replace("w","\/\/")
go = go.replace("x","}{")
go = go.replace("y","ʎ")
go = go.replace("z","7_")
go = go.replace("zs","25")
print go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment