Right to left flow in PDF reports using reportlab engine

Asked by Mohammed

Hi all,
I want to generate report in Arabic language, so that I have installed base_report_unicode 1.1 and it did display arabic characters. However, the characters flow from left to right, despite the fact that arabic language is right to left (RTL). With saying that, I guess I missed a bit of configuration or a little modification in order to change the characters flow direction. Any assistance will be highly appreciated.

With kind regards,

Mohammed Gaafer

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
beroz
Solved:
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello,

I cannot find this type of module in trunk extra addons or stable extra addons so can you provide me the info from where i need to install this module 'base_report_unicode 1.1'?

Thanks.

Revision history for this message
Mohammed (gaafer5) said :
#2
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#3

Hello,

I have already download https://code.launchpad.net/~openerp-commiter/openobject-addons/stable_5.0-extra-addons this but what is the related module exist because there is not any module name like 'base_report_unicode '.

Thanks.

Revision history for this message
Mohammed (gaafer5) said :
#4

Hi,
No, it is there i just downloaded it again via: bzr branch lp:openobject-addons/extra-5.0

use this bazar command please from your terminal

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#5

Hello,

I have got the module 'base_report_unicode ' and i have installed it in my database but i have got the Arabic characters in black block letter means not seen in report pdf so any extra configuration (or package) which i am missing so can you tell me remaining things?

So i am able to test it.

Thanks.

Revision history for this message
Best beroz (abeer) said :
#6

Hello,
We solved the arabic problem in reportlab, please check this link:

http://brain.centrivision.com/enterprise_applications/openerp/arabic_support

Revision history for this message
Mohammed (gaafer5) said :
#7

Thanks beroz, that solved my question.

Revision history for this message
Mohammed (gaafer5) said :
#8

Thank you Beroz,

Its working now, very nice and systematic documentation. I guess Reportlab people as well as OpenERP should consider these modification in their next releases.

Keep up good work

Revision history for this message
3a2roub (3a2roub) said :
#9

this is marked as solved, but ive been trying to get it working for days now.

if i install the module base_report_unicode manually by copying it to the addons and installing it via openerp client, it installs fine. i can see arabic letters instead of black squares. only when i print-screen the pdf report, its written from left to right.

if i try the other method posted on http://brain.centrivision.com/enterprise_applications/openerp/arabic_support , same thing happens they're left to right :S (thats even without the module being installed) only this is worse. the last letter of the first word becomes the first letter of the second word and vice versa.

this is really frustrating, help anyone

Revision history for this message
Mohammed (gaafer5) said :
#10

I installed base _report_unicode v1.1 and I configured the locale to ar_SA, then I followed the steps on http://brain.centrivision.com/enterprise_applications/openerp/arabic_support
one by one, eventually it worked with me. I do not know exactly what you been missing, I hope these can help.

Thanks

Revision history for this message
bondok (ahmed-samir) said :
#11

Any updates on above subject. It's not working for OpenSUSE 11.1 and OpenERP 5.0.11.

Revision history for this message
Mohammed (gaafer5) said :
#12

I tried it with openerp and it is working fine !!

Revision history for this message
Mohammed (gaafer5) said :
#13

I tried it with openerp 5.0.11 and it is working fine !!