Skip to content

Instantly share code, notes, and snippets.

@lewtds
Created February 25, 2013 04:33
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 lewtds/5027762 to your computer and use it in GitHub Desktop.
Save lewtds/5027762 to your computer and use it in GitHub Desktop.
a = "aoeaoe"
if accent.remove_accent_string(new_comps[1]).lower() == "ươ" and new_comps[2] == "":
logging.debug("Turning into uơ")
new_comps[1] = ["u", "U"][new_comps[1][0].isupper()] + new_comps[1][1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment