How to use Mozilla's unicode-slugify instead of unidecode?

Hello,

For SEO causes, I want to use Unicode URLs instead of converted ASCII letters done by Unidecode. Seems like Mozilla's unicode-slugify (Github) is the right choice.

How can I replace Unidecode with unicode-slugify in askbot?

MehdiHKhan's avatar
83
MehdiHKhan
asked 2012-07-22 17:08:50 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2012-07-22 17:26:55 -0600
edit flag offensive 0 remove flag close merge delete

Comments

I've heard of this library - can you explain why it is better? Hey, btw - both of your links are broken.

Evgeny's avatar Evgeny (2012-07-22 17:09:43 -0600) edit

We can add this as a feature, probably the web is going to use Unicode in the urls more anyway.

Evgeny's avatar Evgeny (2012-07-22 17:26:22 -0600) edit
1

Sorry, fixed the links. Well, I cannot compare both libraries regarding quality of code, support, number of users, but the use cases are definitely different. Whenever I tried askbot in Bengali, Unidecode just made my Jaw drop. Yes, it is much human friendly. But humans don't memorize permalinks, that's the job of search engine. And when people search something in languages other than English, they don't bother to transliterate that first (even if they do, it is less likely to be exact match of Unidecode converted value). That's why I was looking for a true Unicode replacement for the URLs.

MehdiHKhan's avatar MehdiHKhan (2012-07-22 17:31:55 -0600) edit

@Evgeny, that'd be great. We are thinking to move permanently from our old forum to a QA a based platform for providing support, and most of our users write in Bengali. Can you give any estimation or roadmap when it'll be done? I'll appreciate some guidance so that I can do it myself and kickstart as soon as possible.

MehdiHKhan's avatar MehdiHKhan (2012-07-22 17:36:36 -0600) edit
1

@MehdiHKhan we'll have it in the next release, maximum two week wait but in the repository this will be sooner.

Evgeny's avatar Evgeny (2012-07-22 17:40:44 -0600) edit
add a comment see more comments