Batiste wrote:
> But there is possible to increase the quality of the generated slug
> with some European symbols like (é,è,à,â,È,É,À,Â,ö,ä ...)
>
> é -> e
> è -> e
> à -> a
> À -> a
I did this once in PHP, it worked really well (yes, I know it's PHP,
that's why I switched to Django):
$slug = strtolower(htmlentities($title, ENT_NOQUOTES, 'UTF-8'));
$slug_no_accents =
preg_replace("/&(.)(acute|cedil|circ|ring|tilde|uml);/", "$1", $slug);
One should be abled to port this to Django in no-time.
Rudolph