Open Mo-dot2 opened 5 years ago
This bug is still happening. We use the pChart library for those charts, but we also use our own set of fonts (OpenSans) as can be seen in https://github.com/chamilo/chamilo-lms/blob/1.11.x/main/gradebook/lib/fe/flatviewtable.class.php#L242 Maybe the issue comes from the fonts we use.
thank you @ywarnier and @AngelFQC for your efforts ♥ I used https://11.chamilo.org/ for testing unfortunately it didn't work
this enhancement is not that necessary, if it's hard to implement then you can move it to further milestones (like v. 2)
Hi @Haboubi92 I tried with other portal and it works for me.
Maybe 11.chamilo.org needs an update
@Haboubi92 Could you paste examples here of the Arabic strings you use in your screenshots, so we can make sure there is no weird "transcription" effect that makes it look like it's working for us while it's just using other characters? It is very important for us to be as inclusive as possible, and this is a very frustrating issue (although indeed it doesn't appear in a lot of use cases).
I found an forum post related to this issue: http://wiki.pchart.net/forum/viewtopic.php?f=1&t=217 It points to https://www.ar-php.org/Glyphs-example-php-arabic.html, which is a website dedicated to Arabic support in PHP. Maybe that's a good place to start (again).
sorry for late response @AngelFQC
while this is not a correct representation of Arabic words but at least it's still recognizable . the image shows Arabic words written in backwards (left to right instead of right to left) and in Separate letters (Arabic use cursive only).
@ywarnier here is some string examples (no need to try them all, if one works correctly, then everything should work the same way) امتحان شهري اختبار يومي نشاط واجب
I see that the site you mentioned (https://www.ar-php.org/en_index-php-arabic.html) claim to be able to solve the problem (but I'm not a programmer to confirm it).
@Haboubi92 We'll bump this issue to a resolution in 2.0 or later because the extension of the issue is a bit too large for this minor version (we might need to change the whole charts library), but thanks for reporting it and testing it thoroughly. We will still need your help later on to test this.
Assessment chart doesn't support Arabic here is screenshot for student view from Chamilo ♥ 1.11.10 (in https://11.chamilo.org)
and here is a screenshot for student view from Chamilo ♥ 1.11.4