使用 imagemagick 将希伯来语文本转换为图像
我需要将文本转换为图像。 使用 imagemagick 我可以完成这个工作。 然而,部分或全部文本可能是希伯来语(RTL 语言)。 这意味着希伯来语中的单词是向后翻译的。 如果我确信文本只是希伯来语,我就会在将其发送到 ImageMagick 之前反转文本。 但是,如果部分文本是英文,则此解决方案将不起作用。
有谁知道如何做到这一点?
PS:如果有更好的方法出现,我不会致力于使用 ImageMagick。 但是,该解决方案应该适用于 Linux 和 Windows(我可能可以使用非 Windows 解决方案,但多操作系统解决方案更好)。
谢谢, 尼夫
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我看到这个链接
http://www.experts-exchange.com/ Software/Photos_Graphics/Web_Graphics/Q_21766928.html
他们建议
Maybe Unifier (http: //www.melody-soft.com/html/unifier.html) 或 Encoding Master (http://www.elfdata.com/encodingmaster/index.html)
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)
听起来你真正的问题是重新排序 imagemagick 的双向文本。 Unicode 双向算法的作业。 请参阅 http://unicode.org/reports/tr9/ 该报告列出了两个参考实现。 或者查看这个:http://fribidi.org/
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/