Welcome, Guest
Username: Password: Remember me

TOPIC: statistics and graphs in Arabic

Re: statistics and graphs in Arabic 1 year 10 months ago #87214

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6277
  • Thank you received: 802
  • Karma: 241
DenisChenu wrote:
PDF stats don't work.
For pdf stats with graph and tyext in arabic.

[code type=php-brief]$pdfdefaultfont = 'dejavusans';[/code]in config.php .

And see included files.
Attachments:
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 10 months ago #87215

  • sukhon
  • sukhon's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 21
  • Karma: 0
In the file config.php on the root has only 61 lines, which config.php
Last Edit: 1 year 10 months ago by sukhon.
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 10 months ago #87218

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6277
  • Thank you received: 802
  • Karma: 241
The /limesurvey-install-directory/config.php

Where you have already something like this:
[code type=php-brief]$rootdir = dirname(__FILE__); // This is the physical disk location for your limesurvey installation. Normally you don't have to touch this[/code]
Last Edit: 1 year 10 months ago by DenisChenu.
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 10 months ago #87221

  • sukhon
  • sukhon's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 21
  • Karma: 0
I am going to switch to 2.0+, will import the database and see how things work on it, instead of wasting your time on the older version, after a while will get back to you with results. :(

Regards,
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 9 months ago #89050

  • sukhon
  • sukhon's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 21
  • Karma: 0
We installed the new Version 2.00+ Build 121121 and worked out one survey, the Arabic fonts now appear in the chart but not attached for example

انا اسمي

looks like
ا ن ا ا س م ي

which is not readable any clue how to fix it


Arabic chart.png
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 9 months ago #89072

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6277
  • Thank you received: 802
  • Karma: 241
It's difficult to patch arabic when don't read arabic ;).

First i think DejaVuSans arabic font are OK, seems not ...

Can you try, with the 2.0 version,
- Download KacstOffice.ttf github.com/LimeSurvey/LimeSurvey/tree/1.92/fonts
- Put the file in ./fonts
- Put in application/config.php :
[code type=php-brief] 'config'=>array(
'debug'=>0,
'debugsql'=>0,
'chartfontfile'=>'KacstOffice.ttf',
)[/code]And test again ?

Denis
PS: The writing direction is OK ?
Last Edit: 1 year 9 months ago by DenisChenu. Reason: PS
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 9 months ago #89086

  • sukhon
  • sukhon's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 21
  • Karma: 0
Hi again,

the writing direction is not correct :ohmy: its reversed may be this is the problem :silly: . how to fix this.

Arabic direction is from right to left and Latin is from Left to right :woohoo:
Last Edit: 1 year 9 months ago by sukhon.
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 9 months ago #89114

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6277
  • Thank you received: 802
  • Karma: 241
Hello,

After a quick look , not trivial.

Please fill a bug report :|
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 9 months ago #89157

  • sukhon
  • sukhon's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 21
  • Karma: 0
Hi the bug report number is 06969
The administrator has disabled public write access.

Re: statistics and graphs in Arabic 1 year 8 months ago #89476

  • sukhon
  • sukhon's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 21
  • Karma: 0
bug was reported to bugs.limesurvey.org/view.php?id=6969#changesets

when will it be embedded in the new update
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.138 seconds
Donation Image