Page MenuHomePhabricator

RTL text in static images generated by Graph is reversed
Closed, ResolvedPublic

Description

{{DISPLAYTITLE:RTL text in static images is reversed}}

Text in RTL languages used in graphs created by Vega that is rendered on server side is shown in revered order:
https://he.wikipedia.org/wiki/%D7%A9%D7%99%D7%97%D7%AA_%D7%AA%D7%91%D7%A0%D7%99%D7%AA:%D7%A2%D7%95%D7%92%D7%AA_%D7%A7%D7%98%D7%92%D7%95%D7%A8%D7%99%D7%95%D7%AA

The text is shown in the correct order when it is rendered in client side (with <canvas>) with Firefox 38.0.

Event Timeline

eranroz raised the priority of this task from to Needs Triage.
eranroz updated the task description. (Show Details)
eranroz subscribed.
Aklapper renamed this task from desrever si segami citats ni txet LTR to RTL text in static images is reversed.Jun 2 2015, 2:04 PM
Amire80 renamed this task from RTL text in static images is reversed to RTL text in static images generated by Graph is reversed.Sep 16 2015, 6:13 PM

It looks like it was revolved.
Was there a change in the backend render?

@eranroz: Testcase seems to be a 404 now? Does this still happen?

  1. Testcase - I don't think it shouldn't be 404 (but it does) since it worked before. Should I open a new different bug for Vega 1.0 images being 404?
  2. anyway RTL is now working in graph extension (based on different example: https://he.wikipedia.org/wiki/%D7%97%D7%98%D7%99%D7%91%D7%AA_%D7%92%D7%95%D7%9C%D7%A0%D7%99#.D7.9E.D7.91.D7.A0.D7.94_.D7.97.D7.98.D7.99.D7.91.D7.AA_.D7.92.D7.95.D7.9C.D7.A0.D7.99

Awesome re RTL. The vega1 is being phased out. If your vega1 graph used
external data, it was disabled due to a security issue. Vega2 supports an
extensive set of external protocols.

Thanks Yurik.
The example uses external data using using the site API with https instead of wikiapi:// though I couldn't get it work with wikiapi:// either.

@eranroz - I updated the graph - Hebrew and English versions. For some reason it seems like JavaScript cannot find the position of the colon in the Hebrew string, so the word "template" is not trimmed like in the English version. Update: I think it does work, just that some titles use more than one colon.