I made an rml report in openERP version 6.0 with Arabic text, and I faced a little problem. When I generate rml from SXW, Arabic text was correct, but when I generate the PDF, the Arabic text is backward.
Contents changed when generating Arabic report pdf
775 Views Asked by Abhishek Mehta At
2
There are 2 best solutions below
0

this problems comes out because python doesn't have builtin unicode bidirection algorithm. arabic text, like any other bidirectional language (Hebrew, Farsi, etc) must be reformatted through bidi-algorithm before exporting it into portable text rendering systems, like PDFs, Video Player subtitle rendering engines, 3D Design software....
There is a hook for openerp to fix this problem: http://github.com/barsi/openerp-rtl
it's built using thoughts from this thread: pyfribidi for windows or any other bidi algorithm
Better you create a report in English and leave the translation job to the OpenERP translation engine.