Diacritics matching can be also used when you have two languages (two keyboard layouts) to switch between and you're typing on wrong one.
In my case, english letters "qwertyuiop" are "йцукенгшщз" in russian keyboard layout. If I add these pairs of letters to DIACRITICSit works just perfect and shows expected search results even if I'm on wrong keyboard layout! Very handy.
Unfortunately there's no way to redefine DIACRITICSvariable, it's hardcoded. Is it possible to make it configurable?
P.S. I don't think russian-english or other language pairs should be implemented in source along another diacritics, end users should configure it themselves. But it may be a new feature, in that case of course it will be another variable which can be used in asciifold().
Hi. I'm using selectize with sifter support.
Diacritics matching can be also used when you have two languages (two keyboard layouts) to switch between and you're typing on wrong one.
In my case, english letters "qwertyuiop" are "йцукенгшщз" in russian keyboard layout. If I add these pairs of letters to
DIACRITICS
it works just perfect and shows expected search results even if I'm on wrong keyboard layout! Very handy.Something like this:
Unfortunately there's no way to redefine
DIACRITICS
variable, it's hardcoded. Is it possible to make it configurable?P.S. I don't think russian-english or other language pairs should be implemented in source along another diacritics, end users should configure it themselves. But it may be a new feature, in that case of course it will be another variable which can be used in
asciifold()
.I can prepare and send you pull request for it.