正在寻找翻转比迪烟(希伯来文)文本的方法,因此将在AndEngine正确显示 [英] Looking for a method for flipping bidi (Hebrew) text so it would be displayed correctly in AndEngine

查看:195
本文介绍了正在寻找翻转比迪烟(希伯来文)文本的方法,因此将在AndEngine正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直潜伏在网络上的时间设法寻找一个code实现的(preferably JAVA)的翻转双向文本,因此将显示不支持双向文本文本正确地进行内部平台的框。 (如AndEngine)

I've been lurking around the web for days trying to look for a code implementation (Preferably Java) for flipping Bidi text so it would be displayed correctly inside platforms that do not support Bidi text text out of the box. (Such as AndEngine).

最佳的解决办法是,我会为它提供希伯来语文本的方法,并且它会返回其内容翻转。我可以自己做到这一点,但它变得越来越复杂,一旦因为我认为这将是非常愚蠢的,我要实现它的可能应该有更好的实现在那里已经到达英文和希伯来文的混合串,以及。

The optimal solution would be a method that I would provide it with Hebrew text, and it would return its content flipped. I could do this by myself but it's getting complicated once it gets to mixed strings of both English and Hebrew text, as well as I think it would be quite dumb for me to implement it as probably there should be much better implementations out there already.

我发现的最接近的事情是该UNI code算法 -

The closest thing I found was this Unicode algorithm -

HTTP://www.uni$c$c.org/reports/tr9 /

HTTP://www.uni$c$c.org/Public /程序/ BidiReferenceJava /

这是太复杂,太大,并没有完成所有的工作。

Which was too complex and too big and didn't do all the job.

也有在Java中,这比迪烟类

Also there was this Bidi class in Java

http://docs.oracle.com/ JavaSE的/ 7 /文档/ API / JAVA /文本/ Bidi.html

但仅供简单的方法来分析双向文本。

But it only provided simple methods to analyze Bidi text.

我是pretty相信这是一个常见的​​问题,因为不幸的是许多平台和游戏引擎不完全支持双向文本。

I'm pretty sure this is a common problem as unfortunately many platforms and game engines do not fully support Bidi text.

谢谢!

推荐答案

尝试 ICU

ICU是一个成熟的,广泛使用的集 C / C ++ &放大器; Java库提供的Uni code和软件应用的全球化支持。

ICU is a mature, widely used set of C/C++ & Java libraries providing Unicode and Globalization support for software applications.

ICU广泛移植,并就所有平台和 C / C ++ &放大器之间应用了相同的结果; Java软件

ICU is widely portable and gives applications the same results on all platforms and between C/C++ & Java software.

或者

GNU FriBiDi的用于C ++

这篇关于正在寻找翻转比迪烟(希伯来文)文本的方法,因此将在AndEngine正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆