1

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.

Don Kirkby
  • 53,582
  • 27
  • 205
  • 286
Abhishek Mehta
  • 173
  • 1
  • 13

2 Answers2

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

Community
  • 1
  • 1
MBarsi
  • 2,417
  • 1
  • 18
  • 18