# ¿Cómo puedo reemplazar las letras con tildes por las mismas sin tilde, pero no la “ñ”?
# https://es.stackoverflow.com/q/135707/127
import re
from unicodedata import normalize
s = "Pingüino: Málãgà ês uñ̺ã cíudãd fantástica y èn Lögröñö me pica el... moñǫ̝̘̦̞̟̩̐̏̋͌́ͬ̚͡õ̪͓͍̦̓ơ̤̺̬̯͂̌͐͐͟o͎͈̳̠̼̫͂̊"
# -> NFD y eliminar diacríticos
s = re.sub(
r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1",
normalize( "NFD", s), 0, re.I
)
# -> NFC
s = normalize( 'NFC', s)
print( s )
IyDCv0PDs21vIHB1ZWRvIHJlZW1wbGF6YXIgbGFzIGxldHJhcyBjb24gdGlsZGVzIHBvciBsYXMgbWlzbWFzIHNpbiB0aWxkZSwgcGVybyBubyBsYSDigJzDseKAnT8KIyAgaHR0cHM6Ly9lcy5zdGFja292ZXJmbG93LmNvbS9xLzEzNTcwNy8xMjcKCmltcG9ydCByZQpmcm9tIHVuaWNvZGVkYXRhIGltcG9ydCBub3JtYWxpemUKCnMgPSAiUGluZ8O8aW5vOiBNw6Fsw6Nnw6Agw6pzIHXDscy6w6MgY8OtdWTDo2QgZmFudMOhc3RpY2EgeSDDqG4gTMO2Z3LDtsOxw7YgbWUgcGljYSBlbC4uLiBtb8Oxb8yQzJrMj8yLzYzMgc2szaHMqMydzJjMpsyezJ/MqW/Mg8yTzKrNk82NzKZvzYLMjM2QzZDNn8ybzKTMusyszK9vzYLMis2OzYjMs8ygzLzMqyIKCgojIC0+IE5GRCB5IGVsaW1pbmFyIGRpYWNyw610aWNvcwpzID0gcmUuc3ViKAogICAgCXIiKFteblx1MDMwMC1cdTAzNmZdfG4oPyFcdTAzMDMoPyFbXHUwMzAwLVx1MDM2Zl0pKSlbXHUwMzAwLVx1MDM2Zl0rIiwgciJcMSIsIAogICAgCW5vcm1hbGl6ZSggIk5GRCIsIHMpLCAwLCByZS5JCiAgICApCgojIC0+IE5GQwpzID0gbm9ybWFsaXplKCAnTkZDJywgcykKCnByaW50KCBzICk=