Hi,
I have been trying to develop a simple J2ME application using LWUIT in Bengali language. However, because of heavy usage of vowels as conjuncted letters in Bengali language, I am facing some problems with LWUIT.
For example, (DHA) is a consonant letter and (OO-KAR) works as a vowel in Bengali; now they are combined together when needed becoming the conjuncted format (DHU).
Using LWUIT, when I add such vowels (OO-KAR), or (EE-KAR), or (RO-FOLA) and try to display them as conjuncted format with a consonant in a real application, they are combined with their previous letter (which is in a consecutive order) as defined in the charset. Although interestingly, in the LWUIT designer display/preview, the characters appear correctly.
Have a look at the following examples I have here so that you can understand my problem:
Example 1:
Here in this example, I have added the letters (in order <abczw) to a charset where the first three letters <abc> are consonants and last two letters <zw> are vowels. See screenshot below from LWUIT Designer:
When I see in the preview in “LWUIT DESIGNER” preview I find everything as it should be.
Now I tried to add the display the following words in four buttons:
1. <ca>
2. <cz
3. <azcwb>
4. wbc>
However, in my application the following is appearing:
As you can see when I tried to display <ca> in my GUI for the first button, it displays <cza>, instead of showing<cz>, it displays <czw>, instead of displaying <azcwb>, it displays <awczb>, and instead of displaying <wbc>, it shows <bcz>.
Now it seems to me that since the vowel z is defined in the charset after previous consonant <c>, it is being combined together becoming character<cz> and appearing everywhere I have tried to put <c>.
I have also tried to use <space> before the vowels to separate them although only one space can be defined in the charset, it also does not give me the correct results where the conjuncted letters are displayed with a space in between. This is not a solution.
For better clarity of the example given here, the following is the expected result (edited in paint) which is not actually happening:
Please anybody help me out on this. How can I have the vowels independently printed to any other letter in the charset. And how can I inform LWUIT framework to not combine the previous letters with the vowels in the charset.
I have used LWUIT version 1.3 and font “KarnaphuliP.ttf”.
I will highly appreciate anybody to help me out on this.
Thanks
Zeenat