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.
Asked
Active
Viewed 732 times
1
-
can u tell how it changes ? does it come it out backwards ? – Vishal Khialani Jul 29 '12 at 11:46
-
ok vishal I am Putting string here so that you can got better Idea of problem. "أوافق على إجراء " this is the actual string but when report printed pdf it will "هاندأ عقوملا انأ" like this. – Abhishek Mehta Jul 29 '12 at 13:09
-
ya you are right Vishal it comes backward... – Abhishek Mehta Jul 29 '12 at 14:07
-
check this out http://stackoverflow.com/questions/6167995/generate-a-pdf-that-automatically-prints – Vishal Khialani Jul 29 '12 at 15:55
-
1@Vishal Buddy I dont think so this question have any concern with above Question. – Abhishek Mehta Jul 30 '12 at 04:45
2 Answers
0
Better you create a report in English and leave the translation job to the OpenERP translation engine.

Daniel Reis
- 12,944
- 6
- 43
- 71

ifixthat
- 6,137
- 5
- 25
- 42
-
I have arebic Static code i didnt got any English translation of it and can you please Explain what is OE and how can I use it in rml report in openERP – Abhishek Mehta Jul 31 '12 at 05:17
-
I think @firebug means to let OpenERP's translation engine do the translation work from English (edited the answer) – Daniel Reis Aug 01 '12 at 12:06
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