Last modified: 2010-06-21 18:54:33 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 5337 - Relativity of left and right =/= {{BEFORE}} and {{AFTER}} - code portability
Relativity of left and right =/= {{BEFORE}} and {{AFTER}} - code portability
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ps.wikipedia.org/wiki/user:I18...
:
Depends on:
Blocks: rtl
  Show dependency treegraph
 
Reported: 2006-03-24 00:55 UTC by lɛʁi לערי ריינהארט
Modified: 2010-06-21 18:54 UTC (History)
2 users (show)

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


Attachments

Description lɛʁi לערי ריינהארט 2006-03-24 00:55:08 UTC
Hallo!

This is an enhancement request about two magic words {{BEFORE}} and {{AFTER}}
required for code portability.

'opening' and 'closing' paranthesis and brackets are displayed as different
characters in LTR (left to right) and RTL (right to left) "context".

'left' and 'right' are absolute topics in MediaWiki (possibly also in some
browsers / possibly because of some browsers).

This reffers both to the rendering of MediaWiki markup language (image syntax)
and (probably - to be investigated) also to browser implementation /
recommandations.

*required code*
http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/includes/MagicWord.php?view=markup
$magicWords = array(
...
	'MAG_BEFORE',
	'MAG_AFTER',
...

http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/includes/Parser.php?view=markup
case MAG_BEFORE:
return (isRTL() ? 'right' : 'left');

case MAG_AFTER:
return (isRTL() ? 'left' : 'right');

*reason for this request*
http://www.anubite.co.uk/mediawiki/head-rtl/index.php/BEFORE_and_AFTER
and
http://www.anubite.co.uk/mediawiki/head/index.php/BEFORE_and_AFTER
are sharing the same code.

As this is a simple "translation" one would expect that the images and floating
objects would change place. This is *not* the case.

best regards reinhardt [[user:gangleri]]
Comment 2 lɛʁi לערי ריינהארט 2009-08-11 12:37:01 UTC
(In reply to comment #0)
> http://www.anubite.co.uk/mediawiki/head-rtl/index.php/BEFORE_and_AFTER
> and
> http://www.anubite.co.uk/mediawiki/head/index.php/BEFORE_and_AFTER
> are sharing the same code.

These are no longer available.

The confusion is caused by the different handling of the concepts LEFT and RIGHT. While LEFT and RIGHT is changed by the browsers for all kind of bracket characters [[file:Brackets.svg]], LEFT and RIGHT is absolute for rendering of image / file syntax.

There neither is LEFT a synonym for BEGINNING nor is RIGHT a synonym for END. Please see also the question / request at
http://yi.wikipedia.org/w/index.php?oldid=243873#.D7.91.D7.99.D7.9C.D7.93.D7.A2.D7.A8

Best regards Reinhardt [[user:Gangleri]]
Comment 3 lɛʁi לערי ריינהארט 2009-08-13 10:24:25 UTC
Dear friends, with beta software available the meaning of LEFT and RIGHT is changing depending on dierectionality (of the wiki I suppose).

Examples:

[[yi:user:לערי ריינהארט/בילדער]]
[[de:user:לערי ריינהארט/בילדער]]

As a consequence the code for the image syntax must be changed inside every page of RTL wikis.

If there are no other objections this bug can be resolved.

Best regards Reinhardt [[user:Gangleri]]
Comment 4 Derk-Jan Hartman 2010-06-21 18:54:33 UTC
No other objections, so I guess this can be closed.

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


Navigation
Links