def slugify(text, delim=u'<STR_LIT:->'):
result = []<EOL>for word in _punct_re.split(text.lower()):<EOL><INDENT>result.extend(unidecode(word).split())<EOL><DEDENT>return unicode(delim.join(result))<EOL>
Generate an ASCII-only slug.