pmcelhaney/jQuery-Slugify-Plugin — pull request #4 by dorogoy (2012-04-04 09:31:19+00:00)
Title: True UTF-8 char mapping

I noticed when using your plugin that plenty of characters where missed and the worst part was that the chars where "translated" only once and ignored after that in future inputs (not even replaced by a dash).

#### Example 1
* **String:** El veloz murciélago hindú comía feliz cardillo y kiwi. La cigüeña tocaba el saxofón detrás del palenque de paja.
* **Result (before):** el-veloz-murci-lago-hind-com-a-feliz-cardillo-y-kiwi-la-cigue-a-tocaba-el-saxofon-detr-s-del-palenque-de-paja
* **Result (after):** el-veloz-murcielago-hindu-comia-feliz-cardillo-y-kiwi-la-ciguena-tocaba-el-saxofon-detras-del-palenque-de-paja

#### Example 2
* **String:** Le cœur déçu mais l'âme plutôt naïve, Louÿs rêva de crapaüter en canoë au delà des îles, près du mälströn où brûlent les novæ.
* **Result (before):** le-c-ur-d-cu-mais-lame-plutot-na-ve-lou-s-reva-de-crapauter-en-cano-au-del-des-iles-pr-s-du-m-lstron-o-brulent-les-nov
* **Result (after):** le-coeur-decu-mais-lame-plutot-naive-louys-reva-de-crapauter-en-canoe-au-dela-des-iles-pres-du-malstron-ou-brulent-les-novae

I guess that the plugin is now optimal for west european languages.

The refactored code is adapted from "jQuery Slugify a string!" from Pablo Bandin
http://tracehello.wordpress.com/2011/06/15/jquery-real-slugify-plugin/ (Dual licensed MIT / GPL)