brianreavis / sifter.js

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

Missing characters for stripping diacritics (ľ, ĺ) #36

Closed ivanovicova closed 8 years ago

ivanovicova commented 8 years ago

Hi, as long as https://github.com/brianreavis/selectize.js uses sifter.js for stripping diacritics, I would like to ask you to update the mapping table on "ľ" and "ĺ" characters.

We really miss it in Slovak language eg. for regions such as Veľký Krtíš or occupation "učiteľ".

var DIACRITICS = { 'a': '[aÀÁÂÃÄÅàáâãäåĀāąĄ]', 'c': '[cÇçćĆčČ]', 'd': '[dđĐďĎð]', 'e': '[eÈÉÊËèéêëěĚĒēęĘ]', 'i': '[iÌÍÎÏìíîïĪī]', 'l': '[lłŁ]', 'n': '[nÑñňŇńŃ]', 'o': '[oÒÓÔÕÕÖØòóôõöøŌō]', 'r': '[rřŘ]', 's': '[sŠšśŚ]', 't': '[tťŤ]', 'u': '[uÙÚÛÜùúûüůŮŪū]', 'y': '[yŸÿýÝ]', 'z': '[zŽžżŻźŹ]' };

Please let me know if I shoud copy this issue also to Selectize.

Thanks in advance.