Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Document that case and diacritic folding is unsupported in predicates #6781

Closed

Description

@incanus

Diacritics (é ç ü etc.) aren't folded (compared against e c u) when evaluating filters/predicates for runtime styling.

This can particularly bite you when you round-trip feature querying, pulling up a feature with attribute name = Québec but then try to style a layer qualifying to that render feature, yet only Quebec exists there.

This needs to happen in core first.

Meanwhile the docs need updated e.g. here to indicate this behavior.

/cc @1ec5

Activity

  1. 1ec5 commented on Oct 21, 2016

    @1ec5
    Contributor

    Case and diacritic folding should only ever be opt-in, not opt-out, so the current behavior is correct inasmuch as no diacritic option has been specified.

    In order to support case and diacritic folding, the style specification needs to be extended to support additional options on filter operators: mapbox/mapbox-gl-style-spec#548.

    Meanwhile the docs need updated

    We can state that the operator modifiers c, d, and cd are unsupported for comparison and aggregate operators.

  2. 1ec5 commented on Nov 30, 2016

    @1ec5
    Contributor

    This can particularly bite you when you round-trip feature querying, pulling up a feature with attribute name = Québec but then try to style a layer qualifying to that render feature, yet only Quebec exists there.

    I assume this happened because you filtered on name_en in the predicate. If you had filtered on name instead, any feature with its name attribute set to Québec would’ve been included in the layer.

  3. changed the title [-]diacritics aren't folded for layer filters[/-] [+]Document that case and diacritic folding is unsupported in predicates[/+] on Nov 30, 2016
  4. boundsj commented on Dec 1, 2016

    @boundsj
    Contributor

    Fixed by #7232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions