direction

29 views
Skip to first unread message

David

unread,
Dec 31, 2013, 9:57:23 AM12/31/13
to dom...@googlegroups.com
Hello,

I'm trying to set the direction of a paragraph to rtl, either by <p dir="rtl"> or by <p style="direction:rtl">, but in both cases, it's ignored.

Can anyone advise if direction is supported, if yes, on which version and how to use it?

Thanks in advance,

David

BrianS

unread,
Dec 31, 2013, 10:25:20 AM12/31/13
to dom...@googlegroups.com
Directionality is not yet supported in the code. You would have to make the modifications you noted in your previous message.

David

unread,
Dec 31, 2013, 10:38:38 AM12/31/13
to dom...@googlegroups.com
Hi Brian,
 
Thank you for your prompt response.
 
I made the following adjustment:
$message = str_replace('dir="rtl"', 'align="right" style="font-family:arial; direction:rtl"', $message);
The problem is that although this line will be properly rendered:
<p><br /><p align="right" style="font-family:arial; direction:rtl">אני כותב בפונט אחר</p></p>
...this one (where there's an internal span in the line) will invert the order of the words in the line, as the align will not apply to the entire text:
<p><br /><p align="right" style="font-family:arial; direction:rtl">אני <strong>כותב</strong> באותו פונט</p></p>
as you can see in the attached.
 
Are there further development in this project and plans to add directionality in the near future?
 
Regards,
 
David
mypdf.pdf

BrianS

unread,
Jan 2, 2014, 11:41:46 AM1/2/14
to dom...@googlegroups.com
The project is under active development, but I can't say that directionality will be supported in the near future. It would help to have someone fluent in a relevant language working on the code, but that's not the case right now.

I hate to see you go over this issue, but I can't promise support anytime soon. If your need is more pressing you might try the TCPDF or mPDF PHP libraries or, if you can install binaries on your server, PhantomJS.
Reply all
Reply to author
Forward
0 new messages