Page MenuHomePhabricator

Bi-directional text not displayed correctly in Special:log - brackets are incorrect
Open, LowPublic

Description

We can see the text: " la page آهو (1 version restaurée : Correct)" in https://fr.wiktionary.org/w/index.php?title=Sp%C3%A9cial%3AJournal&type=delete&user=Unsui&offset=20141208150000&limit=10 : I guess the reason for deletion is: "1 version restaurée : Correct", but it is not displayed well.

See Also: T34403

Event Timeline

Automatik raised the priority of this task from to Needs Triage.
Automatik updated the task description. (Show Details)
Automatik changed Security from none to None.
Automatik subscribed.
Aklapper renamed this task from Bi-directional text not displayed correctly in Special:log to Bi-directional text not displayed correctly in Special:log - brackets are incorrect.Dec 9 2014, 2:41 PM
Aklapper updated the task description. (Show Details)

(Copying my own comment from T115283, which is a dupe of this.)

This only happens on Chrome. The parentheses auto-fixing part of the Unicode bidirectional algorithm is implemented in Firefox, but not in Chrome.

The solutions are:

  • Wait for Chrome developers to implement it
  • Isolate the username link with unicode-bidi: isolate in CSS or an HTML <bdi> tag.

Language::embedBidi() will probably work, but it uses control characters, which is less elegant than proper HTML or CSS.

The trouble with usernames is that it happens in a lot of other contexts, and this needs to be done every time. It would be nice to have a uniform solution for all usernames. Same for page titles... it's fun :)