Skip to content

Add "normalize" option to Search input? #135

@Fil

Description

@Fil

This would allow to search texts with accents (more generally diacritics) by normalizing everything (input and values) with a common function (besides string.toLowerCase()).

Here's a poc https://observablehq.com/@fil/search-normalize; it takes a lot of code since I had to basically copy all of https://github.com/observablehq/inputs/blob/main/src/search.js, just to add a call to string.normalize here and there.

It's in use in https://observablehq.com/@visionscarto/aires-d-accueil-les-donnees

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions