Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize utf-8 sequences in search engine, to improve findability #20

Open
BjarniRunar opened this issue Oct 14, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@BjarniRunar
Copy link
Member

There are some UTF-8 sequences which appear the same, but are actually different code points. For example, the Icelandic character á has a nice clean UTF-8 code-point, but occasionally one will see in the wild this represented as "a" followed by a Unicode grave accent suffix.

These things will be represented as separate strings within the search engine, so maintaining a table of conversions which converts the latter into the former will help make things findable. From the user's point of view these things look identical, so it won't make sense to them that some can be found with a search, but others cannot.

A more extreme version of this is to attempt to dumb down lots of special Unicode characters to their closest ASCII representation may also help as well, since it's not uncommon for people to deliberately misspell their own language if they are stuck on an unfamiliar keyboard.

Yes, this is a can of worms.

@BjarniRunar BjarniRunar added the enhancement New feature or request label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant