php - OpenTBS RTL issue -


i'm using opentbs plugin tinybutstrong fill docx templates data using php. when i'm trying fill rtl text in template, displayed in right direction (from right left) text seems messy.

for example, string:

שלמה ארצי (זמר) + 2

will displayed as:

שלמה ארצי) זמר2 + (

note when i'm trying copy messy string notepad displayed fine. , when copy word fine.

any suggestions?

a bit of dirty solution, after 6 hours of digging , testing solution make.

php:

function f_html2docx($fieldname, &$currval, &$currprm) {     $currval='</w:t></w:r><w:r><w:rpr><w:rfonts w:ascii="arial" w:hansi="arial"      w:cs="arial"/><w:rtl/></w:rpr><w:t>'.$currval.'</w:t></w:r><w:r><w:t>';  } 

docx: (add onformat , strconv)

[event.name;block=tbs:row;onformat=f_html2docx;strconv=no] 

Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -