Last modified: 2012-04-20 18:20:22 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 T6040, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4040 - general solution to handle overlapping links, reordering of fields on pages caused due to BiDi environments
general solution to handle overlapping links, reordering of fields on pages c...
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Amir E. Aharoni
: i18n
Depends on: 3922 4043 4044 4045 4105 5329
Blocks: rtl
  Show dependency treegraph
Reported: 2005-11-20 21:35 UTC by lɛʁi לערי ריינהארט
Modified: 2012-04-20 18:20 UTC (History)
5 users (show)

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


Description lɛʁi לערי ריינהארט 2005-11-20 21:35:53 UTC
I hope this is one of the last BiDi issues:

Please look at the links to the "parent pages" at
[[yi:user:Gangleri/tests/TOC_and_sections]]. There the links overlap.

The links should be embeded as:
‫[[באַניצער:Gangleri]]‬ | ‫[[באַניצער:Gangleri/tests|tests]]‬

bug 3922 comment 7 about
bug 3922: links are not properly rendered in a BiDi category list

I suppose this is the most general method to get BiDi issues fixed.

a) at LTR wiki's (where such RTL or BiDi links can occur as well) these should
be embeded as
b) at RTL wiki's these links should be embeded as
This should be done field by field.

*note* A minor isues is caused about MediaWiki messages which are not translated
to the content language. Mainly at RTL wiki's they cause also overlapping links
and unwanted reordering of the fields in a line (as at
[[yi:special:Recentchanges]] etc.)
Embeding all these MediaWiki messages would require a lot of work.
This request is *not* about embeding the MediaWiki messages. Please open another
bug if you see a need for this

Thanks in advance for all your work. best regards [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2005-11-20 21:37:25 UTC
*** Bug 3922 has been marked as a duplicate of this bug. ***
Comment 2 lɛʁi לערי ריינהארט 2005-11-21 07:37:31 UTC
Opened separate bugs for changes to individual (special) pages.
Comment 3 lɛʁi לערי ריינהארט 2005-11-21 08:42:51 UTC
at this moment summaries can be generated to display / render as LTR at a RTL
wiki. Resize your browser window at
in order to see the summary in one line.

While titles (pages, user names etc) should not contain these punctuation
characters (bug 3819) punctuation characters in summaries should be preserved as
long as they occur *balanced* the number of opening and closing matchs and the
order is correct.

Summaries with *balanced* punctuation characters should be embeded as described
in comment 1 *with* the punctuation characters from the summary. 
Summaries with *un*balanced punctuation characters should be normalised first.
Comment 4 lɛʁi לערי ריינהארט 2005-11-24 20:16:54 UTC
changed dependencies
bug 4040 blocks bug 4066 and
bug 4066 blocks bug 0745
Comment 5 Siebrand Mazeland 2011-08-02 12:28:58 UTC
Bug 6100 which this bug blocks, was resolved. This bug also has open dependencies itself. Are all these issues also resolved (see below)? Please confirm!

* bug 4040 (self)
* bug 3922 (dependency)
* bug 4043 (dependency)
* bug 4044 (dependency)
* bug 4045 (dependency)
Comment 6 Siebrand Mazeland 2011-08-03 06:37:13 UTC
Putting Amir and Robin on CC, because I'd like some feedback on comment 5.
Comment 7 Sumana Harihareswara 2011-11-08 14:09:58 UTC

Can you still reproduce these errors, now that we've improved bidirectional support with the deployment of MediaWiki 1.18?
Comment 8 Robin Pepermans (SPQRobin) 2011-12-13 18:10:10 UTC
The problem still exists: see the "< באַניצער:Gangleri | tests" right under the title on

Because "Gangleri" and "tests" is LTR, "|" is neutral, and the rest of the environment is RTL, everything mixes.

We could add some direction marks or <span dir="ltr/rtl">.
Comment 9 Amir E. Aharoni 2012-04-17 09:07:31 UTC
I can still reproduce it.
Changed blocking from 745, because it's more general.
Changing the title to make it clearer.
Assigning to myself.
Comment 10 Amir E. Aharoni 2012-04-17 09:09:05 UTC
Changing the test URL, because Gangleri's username was changed. With an LTR username like mine, the bug can be easily reproduced.
Comment 11 Amir E. Aharoni 2012-04-17 09:27:09 UTC
Restored title, my misunderstanding.
Comment 12 Amir E. Aharoni 2012-04-17 09:29:32 UTC
A nice *general* solution would be to use Unicode isolation HTML5/CSS3 tricks, although that wouldn't work on IE (not even IE 10).
Comment 13 Amir E. Aharoni 2012-04-20 18:20:22 UTC
All blockers were closed.

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