Hi All, For last one month I've been trying hard to get this arabic localization to work, by Arabic Localization I mean complete support for the language, now my 1.5 cupcake code has following things 1. When I change the phone language to Arabic-Egypt from settings application it displays localized string for Arabic language.(of course one has to add values-ar folder with strings.xml in ever app for this).
2. RTL support for Arabic strings for Label,TextView etc, all arabic strings will be Identified and automatically it will display it from right to left. 3. Complete IME for arabic toggles between English also.
4. All the Arabic language strings are Reshaped as per arabic syntax n semantics.
-- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com
Hi Shachar, Did you have to do anything to make the option appear? Well Itried to find out from android team if RTL was supported but sadly their ans was no and they stopped after that only, so I did a little research of my own on the code and came up with a work around in code. Which keyboard did you use? Well I saw one Greek IME available online and modofied it for Arabic with prediction too.
Can you give an outline of what you had to do? Is there any code changes you can share? Well I got Arabic Reshaper Utilities from Amr Ismail gawish, this guy has provided it as open source, using this at system level I made changes and got the said result.
I've not looked into it, but now that u've brought it to my notice I'll look into it, but if ur wondering if Android has some sort of mirroring etc I think the answer is no.
I hope I could be of some help :)
Sure what I did was I modified TextView.java, which is available under "mydroid\frameworks\base\core\java\android\widget" you can look at the part where it checks for Gravity property. Also you might wana add one utility.java file which takes care of your number i.e iif its a hebrew no or not, on checking u can set the string being passed to SetText() function,simple.
Given that the only requirement so far has been pure LTR, the fact that there's additional code in place is a free bonus, even if that code isn't perfect. Good discussion, though, keep going :) JBQ
One question jean, could you please tell me if 2.0 is going to support BiDi languages? Also I would like to know if you think my modifications in TextView widget make any sense, my idea behind it was to provide support for Bidi languages at the base level widget, but i would like your expert opinion on the changes I've made.
I'm not personally an expert in bidi, and I've told our text expert about this thread so that he can choose to participate if he wishes. If you believe that it would be better to have no APIs at all instead of the current ones, it might make sense to deprecate the existing ones right away to avoid that apps use APIs which you believe aren't going to work in the long term.
I ask you in your answer signal it, where, how may be to register from the
correspondence?
I say thank you for your honourific answer!
Best regards,
Joseph
Joseph Vajda | Chief Executive Officer
Rollcomm Worldwide Corporation
Mobile phone: +36 70 317 3767
E-mail: joseph...@rollcomm.com
Fax: +36 1 433 21 82
Skype: Rollcomm3
Web: www.rollcomm.com
............................................................
INTERNET MAIL CONFIDENTIALITY
This E-mail is covered by the Electronic Communications Privacy Act, 18 U.
S. C. 2510-2521 and is legally privileged. This information is confidential
information and is intended only for the use of the individual or entity
named above. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited.
Thanks for the response. Now I tried do go deeper in the hierarchy tree with the Arabic reshaping , so now I pipe the text first through the ArabicReshaper class before feeding it in Canvas. Again, my test application can now display Arabic correctly, title of the android browser display Arabic correctly but still web pages display unconnected arabic letters. Any ideas anyone about which class is used in webkit webcore to draw text ?
The rom posted i got it running on magic, i want to move the arabic
support to donut release i tried my best but no hope,,