Skip to content

bidi (RTL) text in tags rendered incorrectly #58

@NeatNit

Description

@NeatNit

I'll lead with the solution, then describe the issue it would solve.

The solution

Add dir="auto" to each <td> in the values table. This is already done on osm.org and other platforms.

Identical issue in OSMCha: OSMCha/osmcha-frontend#789 - Fix: OSMCha/osmcha-frontend#790

Relevant PR for osm.org: openstreetmap/openstreetmap-website#4333

Note that dir="auto" should be added both to key cells and to value cells. See the osm.org PR for discussion and reasoning behind this.

The issue

Example: https://overpass-api.de/achavi/?changeset=166127935

Image

The tag route_ref has this value: 48;48א;53;254;274;280

That is a concatenation of:

  1. 48;48
  2. א
  3. ;53;254;274;280

In achavi it's rendered incorrectly, like this: 48;48א;53;254;274;280

Compare with osm.org: https://www.openstreetmap.org/node/1803054417/history/13

Image

And OSMCha: https://osmcha.org/changesets/166127935

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions