brianreavis / sifter.js

A library for textually searching arrays and hashes of objects by property (or multiple properties). Designed specifically for autocomplete.
1.1k stars 125 forks source link

Limited diacritics replacement #5

Open rodneyrehm opened 11 years ago

rodneyrehm commented 11 years ago

Hey there,

looking through your code I noticed the limited "Unicode to ASCII reduction". While this probably works for most people, there are more symbols than that. I had a similar problem with an URL slug creater function a while back, maybe this helps you to extend your diacritics support: urlify.js

Cheers!

BodhiSukha commented 9 years ago

+1

(For example currently doesn't support Şşİı)

julkue commented 8 years ago

@rodneyrehm @BodhiSukha @brianreavis

As mentioned here I also would like to know the sources of the diacritics table to make sure it is absolutely complete. I've also noticed that umlauts aren't included, e.g. ä would be necessary to map with ae, ö with oe and ü with ue.

MuratTopcu commented 8 years ago

I have "İ" character problem. Please support Turkish characters.

From original question: https://github.com/selectize/selectize.js/issues/719 Hello there,

First, this is great work :+1: And I'm using selectize in my project. But when I try to search in select box with the Türkish letter " İ " it's not working.

For example; I have a city named İzmir. And when i try to search with the letters "i", "ı", or "I" it's fine. But with "İ" it's not working.

And I have changed the var DIACRITICS variable in selectize.js to this for İ . [i, ı, I, İ] : [iÌÍÎÏìíîïIİı]

But that isn't working. Is there a solution?

By the way, for the other letters like ö, ü, ş, ç or ğ it's working. Just for İ it's not working.