TarekRaafat / autoComplete.js

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

Diacritics #377

Open mtrx84 opened 1 year ago

mtrx84 commented 1 year 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 1 year 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 11 months 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 11 months ago

Thanks both :)