I attempted to enter unicode text (in languages other than English) into Flex widgets (textfield, textarea, richtexteditor), but direct typing does not seem to work.
Embedding fonts that support other languages was OK. I could also get the widget to display text in other languages when the text is hard coded or comes from another source other than the keyboard as a string. But even there, you cannot have a string which contains characters in multiple languages to appear properly.
1. When a string has unicode characters that belong to multiple languages, what the Flex widget displays is the portion
of text in one language (based on the fontFamily that points to a font that supports the corresponding language). For example, you can get En
characters to appear at a time (when the font supports them). Or else you can only have the characters in some other languges (when the font supports that language). But widgets fail to display the full string which contains multi language characters at once. This is applicable probably to all controls, not just for text input controls.
2. Entering unicode (via keyboard) into TextField, TextArea, RichTextEditor fails. Widgets are not accepting unicode input in other languages. RichTextEdior however seems to support pasting - still in one language.
Your help is greatly appreciated.
ALT+numbers? Last time I used that technique was about 10 years ago. At that time, unicode was not what I used. Some fonts were there where the same ASCII codes were bound to display the characters in our language.
Now we just directly type in our own language. US keyboard events are captured by an intermediate translator at the OS level (for example SCIM for Linux) which outputs unicode that are directed to the caret position (of the editor, text fields, and so on). Same is true for Windows.
I just cannot imagine why you guys are talking about ALT+numbers unicode entry.
Also have a look at this: http://bugs.adobe.com/jira/browse/FP-40
I confirm the problem is found even in Windows Vista. I didn't try in other OSes. But people have mentioned that even in XP and other Windows releases the same problem is found.
This is a real show stopper. We really didn't think that a very fundamental need like this would be missing in Flex. How exactly are we to write internationalized applications that requires users to type text? Nothing is avaliable in the docs that I have gone through so far even though many details about resouce bundles, fonts etc are discussed at great lenghths.