Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter moshe

    (@moshe1111)

    Right-to-left writing.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @moshe1111

    Hi! The PDF converter library that we use (dompdf) does not support RTL. In addition to this, Hebrew (and Arabic) characters are not supported by the font (Open Sans) that is used in the Simple Template.

    But, we have an experimental add-on that replaces dompdf with another library (mpdf) that supports RTL and also includes a font that supports hebrew and arabic (and pretty much any characterset on the planet, for that matter).

    The plugin is hosted on github here: https://github.com/wpovernight/woocommerce-pdf-ips-mpdf
    And you can download the plugin zip in the releases section: https://github.com/wpovernight/woocommerce-pdf-ips-mpdf/releases

    After activating the plugin, you can switch to the “Simple RTL” template which already has the correct font & text direction setup. We’d love to hear your feedback!

    Thread Starter moshe

    (@moshe1111)

    Hello
    The text was written correctly.
    You fixed it.
    But still the entire structure of the printed page is left to right.
    This is a mistake in Hebrew invoice structure.
    The invoice should be printed from right to left.
    Also I think it’s a mistake to put so many fonts in such a heavy folder.
    In the next version, we recommend that the plugin automatically detect the language of the site, and it will directly download from your server the fonts that need to be downloaded, and you may later find a way without downloading any fonts at all.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! Thanks for the feedback. Although it would indeed be nice to automatically download fonts from the server, unfortunately this is not possible within the rules for wordpress.org plugins, and the mpdf plugin is just a courtesy service that is only required if your language is not supported. However, we did create two versions on github, is it possible you downloaded the Asian version (CJK)?

    With regards to the layout, did you select the “Simple RTL” template? As far as I know, this is completely setup as right-to-left and should also automatically organize the table cells in that direction. If you can provide more information about the current layout and what adjustments would need to be made we may be able to help.

    Thread Starter moshe

    (@moshe1111)

    Hi
    There were two problems.
    One problem that the letters themselves were left-to-right and unreadable.
    This issue has been fixed.
    And there was another problem that the order of the page was left-to-right.
    And it wasn’t fixed.

    Plugin Contributor Ewout

    (@pomegranate)

    Thanks, can you answer the other two questions?

    • did you select the “Simple RTL” template?
    • is it possible you downloaded the Asian version (CJK)?(regarding font/filesize)
    Thread Starter moshe

    (@moshe1111)

    I haven’t seen it before

    Plugin Contributor Ewout

    (@pomegranate)

    I’m not sure I understand what that answer refers to. Do you mean you didn’t select the “Simple RTL” template before because you hadn’t noticed it? Are the issues resolved when you switch to that template?

    Thread Starter moshe

    (@moshe1111)

    The problem I was talking about, I didn’t notice that it was possible to define it.
    I would also love for my site to make it only come with an attachment (without email content) because our emails are sent directly to print.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Hebrew’ is closed to new replies.