Last modified: 2014-05-01 11:18:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 28411 - titles of articles with LTR titles in RTL wikis may be displayed incorrectly in categories and special pages
titles of articles with LTR titles in RTL wikis may be displayed incorrectly ...
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on: 28428
Blocks: 24139 28708
  Show dependency treegraph
Reported: 2011-04-04 08:37 UTC by Amir E. Aharoni
Modified: 2014-05-01 11:18 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Amir E. Aharoni 2011-04-04 08:37:20 UTC
When a title of a page is in LTR characters, it may be displayed incorrectly, because the punctuation will jump to the wrong end of the line. For proper display on the page itself it can be solved by using something like [[Template:Correct title]], but when the title is listed in a category, this template has no effect. So, for example, the title of [[Good Riddance (Time of Your Life)]] is displayed in categories in the Hebrew Wikipedia as "(Good Riddance (Time of Your Life".

Adding LRM in the end of the title would solve this problem; a redirect from a title without the LRM could be created for easy linking. LRM is not allowed in page titles, however; see Bug 3696.
Comment 1 Amir E. Aharoni 2011-04-04 12:46:45 UTC
Addition: They are also displayed incorrectly on special pages, such as Special:AllPages.
Comment 2 Niklas Laxström 2011-04-04 13:00:16 UTC
There is nothing we can do about the fact Unicode bidi algorithm is just an awful thing. Not as long we don't know in which languages titles are written in.

With the following CSS rule they at least show wrong in "a beatufiful way":
a { unicode-bidi: bidi-override; }
Comment 3 Amir E. Aharoni 2011-04-04 13:08:50 UTC
It's not so awful if LRM, dir="ltr", or other solutions can be used. But in this case LRM is not allowed and there's currently no way to know whether a title is RTL or LTR.

Maybe LRM can be allowed? And a big warning will be displayed if it is used in a title? And maybe only admins will be allowed to save a title with LRM?

I tried applying "a { unicode-bidi: bidi-override; }" using Firefox' DOM inspector and it became "(efiL ruoY fo emiT) ecnaddiR dooG".
Comment 4 Niklas Laxström 2011-04-04 13:12:30 UTC
Yep, like I said it will display wrong with that rule. LRM and other characters are not allowed in titles because they break lots of things (including users typing the titles manually, possibly search..)
Comment 5 Amir E. Aharoni 2011-04-04 13:14:54 UTC
To solve the manual typing problem, redirects can be created. They can even be created automatically.

Note You need to log in before you can comment on or make changes to this bug.