Page MenuHomePhabricator

EasyTimeline does not support font substitution (or BIDI) for Unicode characters
Open, MediumPublic

Description

Here is an example:

<timeline>
# All measures are in pixels

ImageSize  = width:160 height:550
PlotArea   = left:50 right:0 bottom:10 top:10
AlignBars  = justify

DateFormat = yyyy
Period     = from:1 till:6
TimeAxis   = orientation:vertical
ScaleMajor = increment:1 start:1

PlotData=
  bar:Test color:red width:25 mark:(line,white) align:left fontsize:S

  from:start till:3 text:Test
  from:4 till:end text:آزمایش
</timeline>

And the output (you see boxes instead of "آزمایش"):

TIMELINE.png (557×148 px, 10 KB)

Event Timeline

Huji raised the priority of this task from to Needs Triage.
Huji updated the task description. (Show Details)
Huji added a project: EasyTimeline.
Huji subscribed.

it supports unicode just fine. But it doesn't support font substitution (or BIDI). So arabic wikis might need to have a different font set

Aklapper renamed this task from EasyTimeline does not support UNICODE text to EasyTimeline does not support font substitution (or BIDI) for Unicode characters.Oct 12 2015, 9:07 AM
Aklapper set Security to None.
hashar subscribed.

I have dig in Chinese wiki which has a similar issue (T22825). I guess we can switch to use unifont.

I have dig in Chinese wiki which has a similar issue (T22825). I guess we can switch to use unifont.

I test the case:

  1. in meta: https://meta.wikimedia.org/wiki/User:Shizhao/T115188
  2. in zhwp: https://zh.wikipedia.org/wiki/User:Shizhao/T115188
  3. in fawp: https://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Shizhao/T115188 ( example of @Huji is Persian )
  4. in jawp: https://ja.wikipedia.org/wiki/%E5%88%A9%E7%94%A8%E8%80%85:Shizhao/T115188

only in zhwp is ok, other wiki not OK

maybe many wiki switch to use unifont....

Shizhao raised the priority of this task from Low to Medium.Apr 14 2017, 2:43 AM

This issue is still relevant for Meta-wiki: see https://meta.wikimedia.org/wiki/Template:BoardChart/ja
Is there any progress?

I doubt that this will be fixed. EasyTimeline relies on Ploticus, an upstream graphics library. It was possbly good for the task in mid-2000s when EasyTimeline was developed, but by current standards it is generally buggy, has poor graphics quality and poor Unicode support, and most importantly—it hasn't been maintained since 2012.

The most realistic thing to do about EasyTimeline is to stop using it for creating new timelines, and to migrate to the Graph extension. Yes, it will require a lot of work, but I cannot think of anything better. If anybody can develop an automatic converter from EasyTimeline's unique syntax to the Graph extension's syntax, it will be pretty awesome, but it's definitely not my expertise. (An opportunity for a grant-funded project, I'd say.)

The most realistic thing to do about EasyTimeline is to stop using it for creating new timelines, and to migrate to the Graph extension.

T137291: Transition all use of EasyTimeline to the Graph extension or similar and decommission it from Wikimedia's servers