madflow / jquery-slugify

Just another another (another) url slug creation plugin for jQuery.
https://madflow.github.io/jquery-slugify/
MIT License
52 stars 15 forks source link

not support Unicode language #8

Closed ericfavoni closed 9 years ago

ericfavoni commented 9 years ago

Thanks For Good plugin. i work for persian language like this : سلام بر شما . But your plugin not support persian Or arabic language.

madflow commented 9 years ago

Can you elaborate what you mean by "not support.." ?

We use https://github.com/pid/speakingurl for the transliteration.

When I insert سلام بر شما in our demo page:

http://madflow.github.io/jquery-slugify/

I get:

slam-br-shma

I cannot comment if this is transliterated good enough - but "something" is there :D . If this is faulty or needs work - all requests for the language support should be placed in this repo: https://github.com/pid/speakingurl.

ericfavoni commented 9 years ago

i need to change سلام بر شما to سلام-بر-شما

madflow commented 9 years ago

The transliterated string is per default in this range of chars: A-Za-z0-9_-

Check https://github.com/pid/speakingurl/blob/master/lib/speakingurl.js#L41

If you need something else - maybe this is plugin+speakingurl is simply not suitable for your use case.