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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T30411, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
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: ---


Attachments

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.


Navigation
Links