Page MenuHomePhabricator

Editing RTL article confuses RC
Closed, ResolvedPublic

Description

Author: tietew-mediazilla

Description:
At normal time, RC shows:

  • (diff) (hist) . . articlename; time . . contributor (talk)

But when articlename is RTL language such as Parsian, it shows:

  • (diff) (hist) . . contributor . . time ;articlename (talk)

This is a valid behavior of browsers obaying Unicode bidirectional algorithm.
But users will confuse.

This problem is at least in RC, history, and user contributes.

Unicode-bidi CSS property will solve this problem:

<span style="unicode-bidi:embed">articlename</span>

Version: unspecified
Severity: minor
URL: http://meta.wikimedia.org/wiki/User:Tietew/RTL_problem

Details

Reference
bz3016

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:45 PM
bzimport set Reference to bz3016.
bzimport added a subscriber: Unknown Object (MLST).

tietew-mediazilla wrote:

quick-hack patch for ChangesList.php

This patch is a quick-hack.
Fixes only RC and RClinked.
I confirmed it is effective for IE and Mozilla.

Attached:

tietew-mediazilla wrote:

Following special pages seem to have this problem, too:
Watchlist, Log, DoubleRedirects, Allpages, Unusedimages, Wantedpages,
Ipblocklist, Newpages, Imagelist, Ancientpages, BrokenRedirecrs, and
Search.

Generally, all pagename including username should be enclosed by
`unicode-bidi:embed' style.

Sample here: http://meta.wikimedia.org/wiki/User:Tietew/RTL_problem

tietew-mediazilla wrote:

add unicode-bidi:embed style to all internal links

An alternative patch to Linker.php.

This patch adds "unicode-bidi:embed" style to *all* internal links using
Linker::make***Link().

But style is also added to all links in wiki content.
This patch may not be a best solution.

Attached:

  • Bug 3514 has been marked as a duplicate of this bug. ***
  • Bug 3655 has been marked as a duplicate of this bug. ***

gangleri wrote:

related to this
bug 3888: BiDi vulnerability: RIGHT-TO-LEFT OVERRIDE - U 202E in titles /
usernames generates a mess

That bug is about creating a title using a RIGHT-TO-LEFT OVERRIDE - U 202E
without Unicode a balanced POP DIRECTIONAL FORMATTING - U 202C. This could occur
in titles usernames and as an error configuration in MediaWiki messages .

To my understanding such combinations should occur only in "balanced" numbers.

see also
bug 3819: strip phantom general punctuation characters from page titles
and
bug 3887: create a special page for instring search of titles specifying %nn values

Best regards Reinhardt [[user:gangleri]]

yonidebest wrote:

I would like to add a character to our Hebrew Wikipedia
RC page.

I do not know what this character is called, though I
can create it by pressing Ctrl + the "]" button. It
adds an invisible "fixed" space. Adding this space
right after the time displayed in the should fix this
problem we have.

I would also like to add it before and after the date
used in ~~~~ and ~~~~~ functions.

How can I do this? or, more likely, who can do/try this
for me?

Thanks, Yoni

rotemliss wrote:

*** This bug has been marked as a duplicate of 5724 ***