Open bhajneet opened 5 years ago
Note, if doing normal first letter anywhere search, hitting the spacebar should be adding a wild card character. That wild card character can be converted to a .
char, similar to regex.
If we decide not to do regex, perhaps the _
or *
characters would make more sense for wildcard conversion.
From regex tutorial:
So to implement regex, one would have to avoid these chars for our alternate search modes:
\^$.|?*+()[]{}
. Note that\^|[]
are used in gurmukhi ASCII (though[]
are line endings). Need to see if it can be reconciled. (Perhaps only allow those chars in GUI keyboard? Or perhaps re-route these to a different keyboard character in our app that is non-standard to the font spec?).Alternate search mode proposals:
%
before or after a word can be like SQL LIKE where it allows any characters before or after that word~
can be words without accents. This is also an ASCII char in gurmukhi...!
and/
should be bangs or commands. Example bang would be !sggs to filter out only sggs results.Regex ideas:
^
char? It would be regex begins with (so#^
means the word must be at the beginning of the line or heavy pause,^jkms
means they are first letters from start of line). Note^
symbol is Khakka pair bindi in ASCII$
= Ends with (see above for ideas behind logic).If you have more ideas, please feel free to discuss.
Related Issues: