7

i hope someone put me on the right direction with my problem

i want to work on supporting my language, specially the writing on android

we use Arabic characters with little modification ( like parsi, urdu etc)..

i was hoping android has fully supported Arabic , then i would make changes to work with my language. but even 2.2 dosn't support Arabic . it just show Arabic characters and it is not connected. that is "عربية " is displayed "ع ر ب ي ة".

some individuals have made Arabic support on CyanogenMod ROM's for some HTC phones, but they would not tell how they made it. I'v got the android source code, i want to know where to start, where to make changes , what is the library that handle fonts , shaping engine etc ..

ps : android.com and other android related google groups are blocked in my country.

Tarod
  • 6,732
  • 5
  • 44
  • 50
avar
  • 1,180
  • 2
  • 13
  • 28
  • Cannot help too much... but, why don't you use a webproxy to reah android.com and its google groups? – Cristian Jun 11 '10 at 13:46
  • i can't afford to mess with Great firewall :D plus it is smart enough to catch encrypted webproxies.. – avar Jun 12 '10 at 07:50
  • I think you can download CyanogenMod's sources at https://github.com/CyanogenMod/android, and (at least in version 7) it has right-to-left languages support, including Arabic shaping. – haggai_e Oct 04 '11 at 15:28
  • 1
    try out http://stackoverflow.com/questions/7962704/how-to-support-arabic-text-in-android – user2021702 Jan 29 '13 at 12:48

4 Answers4

1

Anymemo is an open-source Android application that has support for Arabic. You can easily check it out with git and take a look at how they solved it.

Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
  • 1
    Anymemo use Arabic reshaper which is Application level solution, but can be used system wide . that is exactly what im doing now, thank. – avar Oct 16 '10 at 11:11
  • @avar You should accept this answer now. –  Mar 10 '12 at 15:51
0

If the problem is only about the font you can change the fonts of text you are using by adding the font file to /assets directory and use it on textViews and etc by adding

Typeface font = Typeface.createFromAsset(getAssets(), "yourFont.ttf");
TextView text=new TextView("Text","this");
text.setTypeface(font);

But I am not sure that all the problem is about finding the right font.( I don't know if the languages you are talking about uses letters which combine with each other like Chinese, it would be harder to manage something like that though) But I believe you may find or create a better font which has less space around the letters so that the letters would look closer. Good luck.

Ertan
  • 141
  • 1
  • 5
0

I've seen references to modifying /system/fonts/Droid*.ttf by those looking to add an unsupported language. Modifying that folder requires root access to the device.

I also read that the Android OS does support right-to-left languages such as Hebrew, Arabic and Hindi. I don't know if it is able to stitch the characters together as you want, though. I haven't done this myself.

ProjectJourneyman
  • 3,566
  • 1
  • 27
  • 37
-1

try the "google translate" which has a good support for languages.just download the jar and add it to your application and call its method to translate to any language.

scofield
  • 3
  • 2
  • The OP was asking on how to implement (properly) the display of languages with characters different to latin ones, and read from right to left. – J.A.I.L. Nov 21 '12 at 07:25