Text direction RTL problem

Jun 28, 2012 at 10:40 AM
Edited Jun 28, 2012 at 10:44 AM

Dear All,

We are using PHPword in our project to generate word document, we are facing a problem regarding with text direction (left to right or right to left), when we write our utf-8 formated text which is in RTL format, it mixes and display in wrong order.

But the alignment can be done with the cell, unfortunately it does not support right to left text direction where, MS-Office word does have and support.

There is a text direction in Cell but its for rotating not for right to left text direction.

 

for example if we write our text 

one two three, phpword generate for us  three two one, but when we open with microsoft word app. and click on rtl text direction, than it will be fixed and would display what we want  one two three.

where one two three is in Persian Afghanistan Language.

Exact phrase:        یک دو سه

phpword wrong generated: سه دو یک

Any idea?

Regards