1 (edited by Mohanad 06/23/2014 03:45:20 pm)

Topic: Arabic report bugs

this bug in arabic report, i hope fix it smile
this report Graphic Chart must be Right To Left and fix the Arabic language
this bug must be effect in "company dashbord" Extensions
[img]http://i57.tinypic.com/2yn47xw.jpg[/img]
bug #2
[img]http://i57.tinypic.com/xd5ngg.jpg[/img]
regards smile

Re: Arabic report bugs

Regarding your second issue, you are right.

This is going to be fixed in file /reporting/includes/header2.inc.

Please wait a while for fixing.

Regarding first issue, I hope that the dashboard author will help here.

/Joe

Re: Arabic report bugs

The second issue has now been fixed. HG repository updated for stable release.

You can download the new file here .

/Joe

Re: Arabic report bugs

Thank You Sir smile ...
issue #2 fixed, Thank You smile .
but sir issue #1 exist in Balance Sheet Report ===> Graphic
this graphic must be Right To Left and Arabic language not square :\
like this image sir
[img]http://i57.tinypic.com/2yn47xw.jpg[/img]
Regards

Re: Arabic report bugs

I am afraid that the graphics engine doesn't accept rtl languages. If someone will try to port it to work in rtl languages as well, please come forward.

The font used by the graphics engine is probably not working for utf8.

I will have a look at this.

Joe

Re: Arabic report bugs

I see that the font for utf-8, FreeSans.ttf, used by the graphics engine is not included in the core due to its size.

Please download it from here

And copy it into the /reporting/fonts folder.

This should at least give the right language.

Joe

Re: Arabic report bugs

Thank You for patient sir...
freeSans.ttf not working with Arabic hmm
i used Arial.ttf
and still not working because the graphic Left To Right
[img]http://i59.tinypic.com/t9um11.jpg[/img]
Regards

Re: Arabic report bugs

Ok, I understand. Are you aware of a graphic engine that can handle rtl languages?

With at least the same capability.

Otherwise, if anybody  is capable of extending this graphic engine to also handle rtl.

A parameter can be send via the constructer to check for the rtl.

Please step forward any developer maybe from an rtl country wink

Joe

Re: Arabic report bugs

This is just a thought.

If we could mirror the image around the Y-axis, do you think that will help us. Maybe not, because digits should not be rtl, right?

There are routines in the TCPDF class that we are using for rtl text that we are using for reporting.

I will dig further into this.

Joe

Re: Arabic report bugs

Ok sir
but can u make just language RTL,and the graphic still LTR ? smile

Re: Arabic report bugs

Yes, I will see if I can use the algorithms from the TCPDF class.

Joe

Re: Arabic report bugs

I've sent some test material via your registered email.

Please report back if the rtl works now.

When it is ok, we will incorporate it in the core.

Joe

13 (edited by Mohanad 06/26/2014 04:17:55 pm)

Re: Arabic report bugs

Thank You sir
But Not working sir hmm
the Arabic language still Left To Right hmm
no problem if the graphic still Left To Right,but Arabic must be Right To Left.
If still Arabic Left To right user can't read the graphic hmm
Regards

Re: Arabic report bugs

Ok, no problem. I will test a little further.

It seems that it won't check it right regarding rtl.

I will be back.

Joe

Re: Arabic report bugs

Hello again,

I've sent you Another class.graphic.inc file for test.

I Think it will work now. Please report back.

/Joe

Re: Arabic report bugs

Thank You Sir big_smile
there are one step for fix the issue smile
in ِArabic the Words,no space between the letters

Re: Arabic report bugs

Maybe it is the font itself. If you convert to arial.ttf again, do you still have space between letters?

You do that in line 159 in class.graphic.inc.

Please report back.

/Joe

18 (edited by Mohanad 06/27/2014 09:38:29 am)

Re: Arabic report bugs

I do it sir
but not working hmm
for example sir in Balance Sheet :
ا ل م ي ز ا ن ي ة   ا ل ع م و م ي ة
must be:
الميزانية العمومية

Re: Arabic report bugs

Ok, I have attached a screenshot from my Environment with Another font, called CODE2000.TFT. This font can be downloaded from Allan Woods Website.

If you look att the legend texts, there seems to be no spaces, right?

Due to the US COA, there is also English texts here. But this is handled correctly.

What do you Think about this font? I agree, that there seems to be spaces in the header title as well here. I don't know why.

/Joe

Post's attachments

arab_balance_sheet.png 37.4 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Arabic report bugs

Thank You Sir for hard working smile
I try font CODE2000,but not working hmm
This pic show the right language and how to be in graphic smile
[img]http://i62.tinypic.com/1zz4ya0.jpg[/img]
I think sir now the issue not from the font

Re: Arabic report bugs

Please, mohanad, be a little more specific. Where the legend texts ok? No spaces between?

Maybe the spaces were only in the header, or?
I really need more info if I should help further.

Joe

Re: Arabic report bugs

Hi again,

I have sent you some new test material by email. Please report back. I guess that this is working ok now.

/Joe

Re: Arabic report bugs

This has now been fixed and pushed to HG repository. It will go to next minor release.

Affected files, config.default.php (config.php) and /reporting/includes/class.graphic.inc.

/Joe

24 (edited by Mohanad 07/29/2014 08:41:58 pm)

Re: Arabic report bugs

Thank you sir smile
I'am sorry for long time sir sad
I followed your instructions but still not working :\
Issue in this example:
"Theexample"
In Arabic:
"الميزانيةالافتتاحية"
No spaces between the words
Best regards smile

Re: Arabic report bugs

Hello Mohanad,

I have enclosed 2 Pictures from a balance sheet I have taken with a en_US chart of account, but with arabic language. The graphic font is arial in one of them and FreeSerif in the other.

If you compare the title of the report up right with the title of the Graphics they have no spaces between, at least as I can see.

The report font and the graphic font are not the same but the glyphs should be ok.

I hope this is ok. This is the best I can do.

/Joe

Post's attachments

balance_sheet_arial.png 61.8 kb, file has never been downloaded. 

balance_sheet_freeserif.png 62.5 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.