Page MenuHomePhabricator

RTL text embedded in LTR reference displayed out of order in Android app
Closed, ResolvedPublic1 Estimated Story Points

Description

When there is right to left text (or at least ota-Arab) embedded in a left-to-right context in a reference or note, the Android app displays the reference text in jumbled form. This displays correctly on the desktop in Firefox 44.0.2 and Chromium Version 48.0.2564.82 both on Xubuntu 14.04 (64-bit) where the display is also correct in navigation popups, whatever causes the popup for references and seems correct in source code view. My mobile device is a Samsung Galaxy S5, I don't know how to find software or OS version numbers.

I don't have time now to test on other articles/pages and I don't have any other browsers or mobile devices I can test with.

To reproduce:

  1. Load the en.wp article Ottoman Empire in the latest (I believe) release version of the Wikipedia android app
  2. Expand the infobox ("Quick facts")
  3. Expand the note "dn 2" (last item in the "Capital" section)

Expected result:
text displayed in the same order as on the desktop Wikipedia and source:
"In Ottoman Turkish the city was known with various names, among which were Kostantiniyye (قسطنطينيه) (replacing the suffix -polis with the Arabic nisba), Dersaadet (در سعادت) and Istanbul (استانبول). Names other than Istanbul gradually became obsolete in Turkish, and after Turkey's transition to Latin script in 1928, the city's Turkish name attained international usage."

Actual result:
text displayed out of order (note punctuation location too):
"In Ottoman Turkish the city was known with various names, among which were replacing the) (قسطنطينيه) Kostantiniyye ,(suffix -polis with the Arabic nisba and Istanbul (در سعادت) Dersaadet Names other than Istanbul .(استانبول) gradually became obsolete in Turkish, and after Turkey's transition to Latin script in 1928, the city's Turkish name .attained international usage"

Updated example Mar 30, 2018

The above example in the Ottoman Empire article appears to be fixed as per {see F16464251 }, however, the inaccurate ordering of text when RTL language is used in LTR language articles is still occurring in other articles, eg the Hebrew Language article:

Expected (in mobile web)
image.png (1×724 px, 195 KB)
Actual (Android app v2.7.225-r-2018-02-06)
image.png (1×1 px, 224 KB)

Event Timeline

A small amount of further testing shows this isn't limited to Arabic as I get the same issue with Hebrew text in reference 18 (the second in the "History" section) at the Hebrew Language en.wp article on the Android app (same device as above, and on my girlfriend's different Samsung Android).

MBinder_WMF set the point value for this task to 1.May 18 2016, 7:28 PM

Confirming that this bug still exists in Android app 2.7.50305-r-2019-11-26 appearing exactly as it did in the 2018 screenshot in the description (although it's now reference 22)

A look at the United Kingdom article on the Hebrew Wikipedia in the same version of the Android app appears to show no issue with LTR text embedded in a RTL reference.

Looks like it has been fixed on the latest version of the app. Please reopen this ticket if it is happening again.