chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
798 stars 480 forks source link

gradebook chart doesn't support Arabic #2852

Open Mo-dot2 opened 5 years ago

Mo-dot2 commented 5 years ago

Assessment chart doesn't support Arabic here is screenshot for student view from Chamilo ♥ 1.11.10 (in https://11.chamilo.org) score

and here is a screenshot for student view from Chamilo ♥ 1.11.4 score2

ywarnier commented 4 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.

Mo-dot2 commented 4 years ago

thank you @ywarnier and @AngelFQC for your efforts ♥ I used https://11.chamilo.org/ for testing unfortunately it didn't work image

this enhancement is not that necessary, if it's hard to implement then you can move it to further milestones (like v. 2)

AngelFQC commented 4 years ago

Hi @Haboubi92 I tried with other portal and it works for me. Captura de pantalla 2020-06-30 a las 11 46 18

Maybe 11.chamilo.org needs an update

ywarnier commented 4 years ago

@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).

Mo-dot2 commented 4 years ago

sorry for late response @AngelFQC

image

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).

ywarnier commented 4 years ago

@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.