Page MenuHomePhabricator

BiDi: cosmetics about rendering for InterWiki links - fixes to targets which do not match the content language orientation
Closed, DeclinedPublic

Description

Author: gangleri

Description:
url's and examples will be provided today
resolution will be changed to "LATER"
dependency to blocks bug 745


Version: unspecified
Severity: enhancement

Details

Reference
bz4016

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:58 PM
bzimport set Reference to bz4016.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Nov 17 2005, 7:42 PM

gangleri wrote:

[[en:User:Gangleri/tests/bugzilla/04016]]
[[he:User:Gangleri/tests/bugzilla/04016]]

Hallo!

You probably noticed that titles in InterWiki links (mainly InterLanguage links
to sister projects) are displayed differently then in the targer wiki due to the
mismatch of the orientation type (LTR or RTL) of the wiki's.

This report trays to offer a solution for most of the cases. Limitations when
targets are routed trough more wiki's (as gateway wiki's) are handeled at the end.

I assume that the InterWiki table should be expanded with information about the
orientation (LTR, RTL or PRESERVE) of the target wiki.

[[commons:]] and [[meta:]] would be associated with "LTR"
but
[[wikt:]] and [[news:]] would be associated with "PRESERVE"
[[ar:]] [[fa:]] [[he:]] [[ur:]] [[yi:]] would be associated with "RTL" and most
(if not all) of the other language prefixes would be associated with "LTR"

A procedure which should fix the actual problems should do the following *only*
at InterWiki links which targets orientation *"mismatchs"*:

At RTL wiki they should embed the title in ‪‪ and &#8236.
http://he.wikipedia.org/wiki/%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:Gangleri/tests/bugzilla/04016#.E2.80.AA.26.238234.3B_and_.26.238236.3B.E2.80.AC
The second example there is generated as
[[
commons:
‪
User:File Upload Bot (Dori)
‬
]]

At LTR wiki they should embed the title in ‪‫ and &#8236.
http://en.wikipedia.org/wiki/User:Gangleri/tests/bugzilla/04016#.E2.80.AA.26.238235.3B_and_.26.238236.3B.E2.80.AC
The second example there is generated as
[[
commons:
‫
אבטיפוס (להקה)
‬
]]

The generated links hould remain unchanged. Only the "alternate" text is
adjusted and the link is rendered if displayed on the page. "Complications" with
pipe links could be discussed later.

Please note that in order to provide correct orientation for
[[w:en:אבטיפוס (להקה)]] it would be neccessary to know the orientation of the
*last* wiki. Maybe the "partial fix" would solve 80% of all affected links.

regards reinhardt [[user:gangleri]]

references:
http://www.fileformat.info/info/unicode/char/202a/index.htm
Unicode Character 'LEFT-TO-RIGHT EMBEDDING' (U+202A)
UTF-8 (hex) 0xE2 0x80 0xAA (e280aa)

http://www.fileformat.info/info/unicode/char/202b/index.htm
Unicode Character 'RIGHT-TO-LEFT EMBEDDING' (U+202B)
UTF-8 (hex) 0xE2 0x80 0xAB (e280ab)

http://www.fileformat.info/info/unicode/char/202c/index.htm
Unicode Character 'POP DIRECTIONAL FORMATTING' (U+202C)
UTF-8 (hex) 0xE2 0x80 0xAC (e280ac)

drdee added a comment.Nov 30 2011, 5:15 PM

Dear Reinhardt,
A lot of bidi and RTL improvements have been made lately. Could you please
update on the status of this request?

Restricted Application added a project: I18n. · View Herald TranscriptJun 2 2015, 2:20 PM