Skip to content

Instantly share code, notes, and snippets.

@cbenz
Last active May 11, 2016 13:04
Show Gist options
  • Save cbenz/478aed18a5e8eb669e9df5d5bcd7387d to your computer and use it in GitHub Desktop.
Save cbenz/478aed18a5e8eb669e9df5d5bcd7387d to your computer and use it in GitHub Desktop.
Add cedillas to each char of a string
import unicodedata
def add_cedillas(text, cedilla = '̧'):
return unicodedata.normalize('NFC', ''.join(map(lambda char: char + cedilla, text)))
add_cedillas('tsss')
# => 'ţşşş'
add_cedillas('facile')
# => 'f̧a̧çi̧ļȩ'
@brunetton
Copy link

W̧O̧W̧ i̧m̧p̧ŗȩşşi̧v̧ȩ!̧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment