j2me polish: showing persian words with error - java-me

I am developing a j2me polish app,and I used words in Persian(same as Arabic) words. but in some older SonyEricsson phones the words are separated and reversed. I searched the web but I found some topic in LWUIT and not polish. how can I solve my problem in these phones.

Some devices have not persian font engine so when you try to show a persian word,you see some problem in arranging of chrarcters and ... .
You have two problems:
Separated form of characters.
Reversed arranging of characters.
To solve first problem,you can use one of these:
change the byte code of your App
use custom font
use a picture that display the word that you want to show
use fonts of device(if device has proper font)
For more details look at this link,that I answered some months ago.
To solve second problem,look at this link,I displayed an idea there.
Of course I answer those questions in persian and if you do not know persian,tell me to give you more details.Finally please tell me, if your problem will solved.

Related

Combining Text messages and Video

I am using Adobe Flash Media Server. I am trying to do one 2 one video chat with clients exchanging text messages back and forth. I want to alternate different text colors such as red and blue to stand out well. I tried using css but it changes all the text colors not just each message.
Can find any examples at all in ActionScript. Please can somebody point me in the right direction?
Thanx in advance
I think you might need to add some source code of stuff you've already tried.
In general though, any text formatting, including colours, can be done via TextField.setTextFormat();
Also look at the TextFormat class.

How to display marathi font in j2me mobile application?

we are making one mobile application in j2me java symbian. we want to display marathi font in our mobile application.we tried searching on various forums but was unable to get a solution related to language support. if not marathi please tried to provide solution trying any language rather than english. how to display marathi font in application and how to use unicode in marathi in j2me.. we need an expert advice on this...
The way that I have usually seen or implemented similar things done in the past is to create your own font texture and handle all the character drawing yourself. Basically, if the font you want isn't provided for the handset you are targetting, you have to handle all text drawing yourself.

Unicode white space issue in j2me

I have made an app in j2me which uses unicode characters to display my language. i.e. Urdu. Everything works fine expect the issue that it adds some extra spaces at the start of the string, my language is Right to left, it works fine over Nokia mobiles as I think they adjust such issue by OS, but in samsung mobile with a bit less resolution and features it raises that issue. I have tried to remove spaces though but vain. I have added Image along with this post to give you an idea. The string should have been in center while its not. Thanks!
its a bit blurry but thats what I got.

Can I use multiple font style in UITextView?

I have a requirement to use multiple font style in UITextView. Like Bold, Italic and Underline text in single Textview. Like:
One word is Bold second may be italic third Underline as per user selection.
I don't think this is allowed to do but still if any one have achieved and want to share. I need this all while enter text and same while displaying.
Thanks
You're right that the standard UITextView does not support rich editing. At the moment there are a few solutions to the problem.
The Omni Group has released their iOS and Mac frameworks under an open source license. These include a very powerful rich text editor (see: OUIEditorFrame.m). These are very powerful but also extremely complex. Their sample iPad app includes the rich text editor example. Further discussion can be found here
Secondly, this guy has been working on a custom rich text editing control and is offering it under a negotiable licensing agreement.
Finally, you can do it all yourself and create an editor control that implements the UITextInput protocol. Aside from the Apple documentation, there are some tips on doing this here.
Why don't you use attributed string and use its property to set the string as you like.
Reference link : https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/AttributedStrings/Tasks/CreatingAttributedStrings.html

LWUIT : issue in showing arabic words ?

Hi
i have problam in showing arabic words in LWUIT , the arabic words characters are separated and reversed , but it`s work true on nokia , how can i slove this problem ?
thanks
In bitmap fonts Arabic glyph shaping doesn't work because of the unique properties of the language.
You need to use system fonts (which aren't the default in some of LWUIT's themes), in system fonts support for Arabic is up to the device/simulator not all of which support bidi/shaping properly.
Notice some older Sony Erricson devices as well as some other devices such as badly localized Android devices (e.g. Nexus One) don't have proper bidi support. This means their native widgets implement bidi instead of their drawString implementation. Unfortunately there is no way to detect this bug in runtime, so LWUIT can't seamlessly workaround it!
The only solution is to create a version specifically to such devices which manually performs the bidi algorithm on the drawString code, this means replacing the implementation for those devices with an implementation that just overrides the drawString method and performs the bidi algorithm on rendered strings. LWUIT's bidi algorithm is exposed in the Display class.

Resources