Page MenuHomePhabricator

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


Author: gangleri

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

Version: unspecified
Severity: enhancement



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:



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"
[[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.
The second example there is generated as
User:File Upload Bot (Dori)

At LTR wiki they should embed the title in ‪‫ and &#8236.
The second example there is generated as
אבטיפוס (להקה)

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]]

Unicode Character 'LEFT-TO-RIGHT EMBEDDING' (U+202A)
UTF-8 (hex) 0xE2 0x80 0xAA (e280aa)
Unicode Character 'RIGHT-TO-LEFT EMBEDDING' (U+202B)
UTF-8 (hex) 0xE2 0x80 0xAB (e280ab)
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