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 added a subscriber: Automatik.
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)
Aklapper triaged this task as Low priority.Mar 23 2015, 5:39 PM
Restricted Application added a project: I18n. · View Herald TranscriptJun 2 2015, 2:20 PM
Ladsgroup moved this task from Backlog to MediaWiki-core on the RTL board.Jul 15 2015, 7:49 PM
Amire80 moved this task from Untriaged to RTL on the I18n board.Feb 28 2018, 12:17 PM

(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 :)