Android: RTL support - digits embedded in a right to left sentence (Hebrew)

别等时光非礼了梦想. 提交于 2020-01-02 03:45:28

问题


My application displays Hebrew text which comes from a Web Service.
When a sentence contains digits (in the middle of it), the digits appear in a mirror view:
29 appears as 92, 21:45 appears as 54:12 and 2,000 appears as 000,2.
Also, when a sentence starts with digits or English characters, they get thrown to the end of the sentence messing it all up...

Does anyone have an idea how can this be solved? Is RTL support in Android still immature?


回答1:


Is RTL support in Android still immature?

If by "immature" you mean "nonexistent", then, yes, it is immature. Each Android SDK release lists the supported languages, and you will notice that RTL languages are not among them.




回答2:


Try presenting your text in a webkit control, its RTL support works fine, as long as the HTML code is tagged appropriately.




回答3:


Forward to 2015 - those issues are gone, and the answer marked as correct is no longer correct.




回答4:


This is fixed in CyanogenMod. I'd very much like to know which commit has the fix exactly



来源:https://stackoverflow.com/questions/2584245/android-rtl-support-digits-embedded-in-a-right-to-left-sentence-hebrew

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!