You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Searching with diacritics in text data does not match letters without diacritics in search queries. For example, searching "Kohaku" by name or card text returns no results, while searching "Kōhaku" returns the intended card. The letter 'ō' itself seems to exhibit undefined behavior or acts as a "wildcard".
To Reproduce
Steps to reproduce the behavior:
Go to the search bar.
Enter a search query with a letter without diacritics, e.g., "Kohaku".
Observe that no results are returned.
Enter a search query with a letter with diacritics, e.g., "Kōhaku".
Observe that the intended result is returned.
Enter 'ō' as a standalone search query and observe its behavior.
Expected behavior
Diacritics should be stripped from all letters in text that is being searched as well as any search queries. Any letter with diacritics in either case should always match the same letter without any diacritics. This will not affect the results or output displayed to the user.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Version [2.7.0]
Additional context
This issue is addressed in a Pull Request that adds logic to normalize diacritics in search queries and searchable text, ensuring that users can find their desired results even if they forego the appropriate diacritics on characters, and vice versa.
The text was updated successfully, but these errors were encountered:
fix: Improve search by normalizing diacritics (fspoettel#142)
Resolvesfspoettel#142
This commit improves search functionality by
normalizing diacritics in search queries and
searchable text. This ensures that users can
find items even if they use characters with
diacritics, and vice versa.
- Added `normalize-text` library
- Normalized diacritics in card search
- Normalized diacritics in combobox
- Normalized diacritics in deck filters
```
fix: Improve search by normalizing diacritics (fspoettel#142)
Resolvesfspoettel#142
This commit improves search functionality by
normalizing diacritics in search queries and
searchable text. This ensures that users can
find items even if they use characters with
diacritics, and vice versa.
- Added `normalize-text` library
- Normalized diacritics in card search
- Normalized diacritics in combobox
- Normalized diacritics in deck filters
```
Describe the bug
Searching with diacritics in text data does not match letters without diacritics in search queries. For example, searching "Kohaku" by name or card text returns no results, while searching "Kōhaku" returns the intended card. The letter 'ō' itself seems to exhibit undefined behavior or acts as a "wildcard".
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Diacritics should be stripped from all letters in text that is being searched as well as any search queries. Any letter with diacritics in either case should always match the same letter without any diacritics. This will not affect the results or output displayed to the user.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context
This issue is addressed in a Pull Request that adds logic to normalize diacritics in search queries and searchable text, ensuring that users can find their desired results even if they forego the appropriate diacritics on characters, and vice versa.
The text was updated successfully, but these errors were encountered: