Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
*Unicode solution in Clear category for Remove Accents by JimmyCarlos
normalToAccentedDict = {
"A":"ÀÁÂÃÄÅĀĂĄǍǞǠǺȀȂȦḀẠẢẤẦẨẪẬẮẰẲẴẶᾈᾉᾊᾋᾌᾍᾎᾏᾸᾹᾺΆᾼÅ",
"B":"ƁɃḂḄḆℬ",
"C":"ÇĆĈĊČƆƇḈℂ℃ℭⅭ",
"D":"ÐĎĐƉƊḊḌḎḐḒⅅⅮ",
"E":"ÈÉÊËĒĔĖĘĚƎƏƐȄȆȨɆḔḖḘḚḜẸẺẼẾỀỂỄỆℇℰ",
"F":"ƑḞ℉ℱ",
"G":"ĜĞĠĢƓǤǦǴḠ",
"H":"ĤĦȞḢḤḦḨḪᾘᾙᾚᾛᾜᾝᾞᾟℋℍ",
"I":"ÌÍÎÏĨĪĬĮİƗǏȈȊḬḮỈỊⅠ",
"J":"ĴɈℐ",
"K":"ĶƘǨḰḲḴK",
"L":"ĹĻĽĿŁḶḸḺḼℒⅬ",
"M":"ḾṀṂℳⅯ",
"N":"ÑŃŅŇŊƝǸṄṆṈṊℕ",
"O":"ÒÓÔÕÖŌŎŐƠǑǪǬȌȎȪȬȮȰṌṎṐṒỌỎỐỒỔỖỘỚỜỞỠỢὈὉὊὋὌὍ",
"P":"ƤṔṖℙ",
"Q":"ℚ",
"R":"ŔŖŘȐȒɌṘṚṜṞℛℜℝ℞℟",
"S":"ŚŜŞŠȘṠṢṤṦṨ",
"T":"ŢŤŦƬȚͲͳṪṬṮṰ",
"U":"ÙÚÛÜŨŪŬŮŰŲƯƱǓǕǗǙǛȔȖɄṲṴṶṸṺỤỦỨỪỬỮỰ",
"V":"ṼṾⅤ",
"W":"ŴẀẂẄẆẈ",
"X":"ẊẌⅩ",
"Y":"ÝŶŸƳȲɎẎỲỴỶỸὙὛὝὟ",
"Z":"ŹŻŽƵȤẐẒẔℤ",
"a":"àáâãäåāăąǎǟǡǻȁȃȧɑɒḁẚạảấầẩẫậắằẳẵặ",
"b":"ƀƂƃƄƅɓʙḃḅḇ",
"c":"çćĉċčƈɔɕḉⅽ",
"d":"ďđȡɖɗḋḍḏḑḓⅆⅾ",
"e":"èéêëēĕėęěƐǝȅȇȩɇɛɜɝɞḕḗḙḛḝẹẻẽếềểễệ℮ℯⅇ",
"f":"ƒḟℲ",
"g":"ĝğġģǥǧǵɠɡɢʛḡℊ",
"h":"ĥħȟɦɧʜʰʱḣḥḧḩḫẖℌℎℏ",
"i":"ìíîïĩīĭįıǐȉȋɨḭḯỉịⅈⅰ",
"j":"ĵǰɉʝʲⅉ",
"k":"ķĸǩʞḱḳḵ",
"l":"ĺļľŀłƖƚɭʟḷḹḻḽℓⅼ",
"m":"ɱʍḿṁṃⅿ",
"n":"ñńņňʼnŋǹɲɳɴṅṇṉṋ",
"o":"ðòóôõöōŏőơǒǫǭȍȏȫȭȯȱṍṏṑṓọỏốồổỗộớờởỡợὀὁὂὃὄὅℴ",
"p":"Ƿṕṗ",
"q":"Ɋɋ",
"r":"ŕŗřȑȓɍɼɽɾɿʀʁʳṙṛṝṟ",
"s":"śŝşšșʂṡṣṥṧṩ",
"t":"ţťŧƫțʈṫṭṯṱẗ",
"u":"ùúûüũūŭůűųưƲǔǖǘǚǜȕȗʉʊʋṳṵṷṹṻụủứừửữựὐὑὒὓὔὕὖὗ",
"v":"ṽṿⅴ",
"w":"ŵʷẁẃẅẇẉẘ",
"x":"×ẋẍⅹ",
"y":"ýÿŷƴȳɏʏʸẏẙỳỵỷỹ",
"z":"źżžƶȥʐʑʒʓẑẓẕ"}
def asciify(c):
if ord(c) <= 96+26: # Less or equal to, alphabetically, than a lower-case z.
return c
for normalLetter,accentedLetters in normalToAccentedDict.items():
if c in accentedLetters:
return normalLetter
if c in "'̀́'":
return ""
else:
return c
checkio=lambda s:"".join(asciify(c) for c in s)
Sept. 14, 2018
Comments: