http://amisphere.com/contrib/python-django/slughifi.py
http://amisphere.com/contrib/python-django/ for a quick overview
example :
>>> text = "C'est déjà l'été."
>>> slughifi(text, overwrite_char_map={u"'": "-",})
'c-est-deja-l-ete'
Any comments ?
But your approach seems to be more generic. You should certainly post
it on djangosnippets.org as a separate snippet or (maybe better) as an
extension suggestion for http://www.djangosnippets.org/snippets/98/
Regards,
Aidas Bendoraitis [aka Archatas]