Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting hebrew text to an image using imagemagick

I need to convert text to an image. Using imagemagick I can get this done. However, part or all of the text could be in Hebrew (an RTL language). This means the words in Hebrew are rendered backwards. If I was assured that the text was only Hebrew, I would have just reversed the text before sending it to ImageMagick. However, this solution won't work if part of the text is in English.

Does anyone have any idea how this can be done?

P.S. I'm not committed to using ImageMagick, if a better way comes up. However, the solution should work for both Linux and Windows (I might be able to live with a non-windows solution, but a multi OS solution is preferable).

Thanks, Niv

like image 368
nivcaner Avatar asked Nov 24 '25 22:11

nivcaner


2 Answers

i see this link

http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Q_21766928.html

they suggest

Maybe Unifier (http://www.melody-soft.com/html/unifier.html) or Encoding Master (http://www.elfdata.com/encodingmaster/index.html)

like image 66
Haim Evgi Avatar answered Nov 27 '25 23:11

Haim Evgi


Sounds like your real issue is to re-order the bidirectional text for imagemagick. A job for the Unicode bidirectional algorithm. See http://unicode.org/reports/tr9/ That report lists two reference implementations. Or see this one: http://fribidi.org/

like image 36
Larry K Avatar answered Nov 27 '25 21:11

Larry K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!