How to handle right to left languages in Flash (pre version 10)?

丶灬走出姿态 提交于 2019-12-23 12:26:55

问题


We are currently working with Flex creating a web application. We are having trouble taking Arabic text from the user and displaying correctly (like in a chat feature). While presumably Flash 10 will solve this problem, we don't want to force our users to upgrade.

Flash flips the order of the sentence's words. so if I wrote something like "Hello World" in the text field, it will appear as "World Hello" in the chat area.

Is there a standard way to work with Right to Left languages in Flash?

*We currently flip the order of the words with a function, but it things get messed up when using English or special characters in the chat like :) or :D *


回答1:


You may also want to check FlarabyAS3Flex here




回答2:


This would appear to be a Unicode issue, and so a quick talaash via Google gave me Unicode in Flash, but probably more to the point is Flash: RTL (right-to-left), seeing as it mentions Arabic (along with other RTL languages) as well as RTL text output class for Flash.

HTH




回答3:


you might want to try this: http://www.red-id.com/blog/category/RTL-Flash.aspx




回答4:


There is no decent way to support that. Anything you try will be a hack and will break for some cases. And definitely not work for editing.

I would say: ask the users to update.

The penetration of Player 10 is already above 90% in all markets (http://www.adobe.com/products/player_census/flashplayer/version_penetration.html).

And users can understand that you have no choice. It is "update or support for your language is abysmal".




回答5:


here is an example for handling the text direction in flex.



来源:https://stackoverflow.com/questions/292316/how-to-handle-right-to-left-languages-in-flash-pre-version-10

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