Add support for non-ASCII search
See original GitHub issueHi all,
Currently, Fuse doesn’t support searching through non-ASCII characters. For instance searching with stro
on strömberg
only matches str
. This could be changed by
- transliterating input to ASCII (e.g.
stro
->stro
) - transliterating all strings within an item to ASCII when evaluating that item (e.g.
strömberg
->stromberg
) - performing the match on the transliterated item (e.g.
match [0,3]
) - returning original version item + matches (e.g.
strömberg
+match [0,3]
)
This code seems to have a pretty complete transliteration table (see char_map
object):
https://github.com/pid/speakingurl/blob/master/lib/speakingurl.js
Not that I have a need for it at the moment, just bringing it up as a suggestion 😃
Issue Analytics
- State:
- Created 7 years ago
- Reactions:31
- Comments:7
Top Results From Across the Web
How to Find Non-ASCII Characters in Text Files in Linux
Learn multiple methods for finding and highlighting non-ASCII characters within text files.
Read more >regex - search document for non-ascii - Stack Overflow
I have several, and one doesn't work; the program fails to read it and tells me that there is a bad character in...
Read more >Code Inspection: Non-ASCII characters | PhpStorm ... - JetBrains
Reports code elements that use non-ASCII symbols in an unusual context. Example: Non-ASCII characters used in identifiers, strings, ...
Read more >How to display special non-ASCII Unicode characters in ...
@RockPaperLz-MaskitorCasket I'm using Notepad++ v7.9 (64-bit) (build time Sep 22 2020 - 03:19:04) on Windows 10. Where do you find the font ...
Read more >Insert ASCII or Unicode Latin-based symbols and characters
If you need a Unicode character and are using one of the programs that doesn't support Unicode characters, use the Character Map to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
"string".normalize('NFD').replace(/[\u0300-\u036f]/g, "");
would do it as part of a lexerThis issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days