TarekRaafat / autoComplete.js

Simple autocomplete pure vanilla Javascript library.
https://tarekraafat.github.io/autoComplete.js
Apache License 2.0
3.95k stars 240 forks source link

Diacritics #377

Open mtrx84 opened 2 years ago

mtrx84 commented 2 years ago

Hi. I am using diacritical mark support. From the Polish letters "ą, ć, ę, ł, ń, ó, ś, ź, ż" I have a problem with the character - "ł", "Ł". It doesn't work when I use "l", "L" interchangeably. Can I fix it somehow?

folknor commented 2 years ago

"ł" and "Ł" are not diacritics. They are normal letters.

However, https://www.npmjs.com/package/diacritic will fix it for you. Just implement your own search function.

jtauber commented 1 year ago

Yes, just to add more explanation: the diacritics: true just strips unicode combining characters in the range U+0300 to U+036F.

mtrx84 commented 1 year ago

Thanks both :)