By: Eli Baratz
Date: 2015-06-29
Time: 19:54
|
RTL strings are buggyHi.
When i'm trying to fill RTL text in the template, it is displayed in the right direction (from right to left) but the text itself seems messy. for example, this string: שלמה ארצי (זמר) + 2 Will be displayed as: שלמה ארצי) זמר2 + ( Note that when i'm trying to copy this messy string to the notepad suddenly it displayed fine. and then when i copy it back to the Word it also fine. any suggestions? |
By: Eli Baratz
Date: 2015-06-29
Time: 20:16
|
Re: RTL strings are buggyOK after 6!!! hours of learning and digging...
mission done! 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 the onformat and the strconv) [event.name;block=tbs:row;onformat=f_html2docx;strconv=no] |
By: Skrol29
Date: 2015-06-30
Time: 01:02
|
Re: RTL strings are buggyHi Eli,
Thanks for this tip. Could you send to me an example of correct merging and a bad merging ? So I could have an eye on that problem ? |
By: Eli Baratz
Date: 2015-06-30
Time: 01:16
|
Re: RTL strings are buggyHi.
each merging that has both hebrew characters and global signs will fail. example of 2 docx files: original: (bad merging) http://yeshachar.co.il/opentbs/merge_bad.docx with the fix: (correct merging) http://yeshachar.co.il/opentbs/merge_good.docx The template: http://yeshachar.co.il/opentbs/ashirel_he_min.docx |
By: Skrol29
Date: 2015-06-30
Time: 01:20
|
Re: RTL strings are buggyThanks
|