Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,395 Members 47,072 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Arabic shaping for any deodexed rom

Tip us?
 
madmack
Old
(Last edited by madmack; 14th October 2011 at 05:51 PM.)
#1  
madmack's Avatar
Senior Member - OP
Thanks Meter 4384
Posts: 3,523
Join Date: Dec 2008
Location: Boston, MA

 
DONATE TO ME
Default [MOD] Arabic shaping for any deodexed rom

Note to all users: If you have a problem with this patch, this is the place to post and ask. I will not answer Private Messages related to this patch because the questions are replicated and should all be addressed here.

To devs and ROM cooks. PLEASE do reference this thread and my work if you intend on providing the result CWM file in your thread.

To get the correct arabic shaping letters in Android. We need to patch two files, namely framework.jar and libwebcore.so
framework.jar takes care of rendering text in all android menus and input widgets. libwebcore.so takes care of shaping text correctly for the web browser and Gmail.

I've made this patch a while ago but thought I'd post my work here for those of you who aren't aware of it.

framework.jar & libwebcore.so


Requirements:
  • Your device needs to be rooted.
  • Your Android version is >= 2.1
  • Your ROM needs to be deodexed. To find out if your installed ROM is deodexed, navigate to /system/framework on your phone. If you see a file called framework.odex then this patch will NOT work for you. So yes, this means that any of these new ROMs or Themes can get arabic text rendered correctly I'm currently using Darky's 9.3 with R64 Blue theme and everything works beautifully.
  • Java must be installed.

Steps to apply the patch:

Moved to official blog. Please check the steps there
http://blog.devasque.com/?page_id=11

Note: This will not shape the letters in Gmail and the Browser correctly. If you want this, you’ll need to get the appropriate libwebcore.so for your system. Each Android device and ROM will need a separate one. v0.810 of my patcher does browser and Gmail fix as well now Taken from the great work of brightidea


Downloads
http://blog.devasque.com/?page_id=11
scroll all the way to the bottom


libwebcore.so


This should get arabic text rendered correctly for the browser, gmail and any app that uses this library. (You may not need to flash these manually if you are using my v0.810 universal patcher from above).

My universal patcher has integrated brightidea's work so this section is obsolete.

References:
Y6b – http://github.com/y6b
Dudyk – http://github.com/dudyk
The patching tool – http://iandroid.co.il/forum/topic5657.html
Brightidea's webkit patcher - http://forum.xda-developers.com/show....php?t=1218960

I've also put up a website with the latest changes and source code. So if you're interested, http://blog.devasque.com
The Following 62 Users Say Thank You to madmack For This Useful Post: [ Click to Expand ]
 
Darkyy
Old
(Last edited by Darkyy; 9th March 2011 at 07:44 AM.)
#2  
Darkyy's Avatar
Retired Recognized Developer
Thanks Meter 2970
Posts: 2,002
Join Date: Nov 2009
Location: Winterthur

 
DONATE TO ME
Hey madmack,

A lot of people need an Arabic Patch based on XWJS5.

You can take my framework.jar and the needed libwebcore.so (if needed to update).

If you want to do it, feel free to contact me and update this topic here - I think a lot of people will appreciate it.

Best regards,
JoŽl

[SIZE=1] >> Visit www.darkyrom.com for more addons and help! <<<
Follow me on Twitter!

Darky's Facebook Group - Community Support.
Darky's Facebook Group
You can donate to support DarkyROM.
The Following 12 Users Say Thank You to Darkyy For This Useful Post: [ Click to Expand ]
 
quadix
Old
#3  
Member
Thanks Meter 3
Posts: 99
Join Date: Dec 2010
this also correct Hebrew shaping? (this language require RTL to be displayed correct)
 
madmack
Old
#4  
madmack's Avatar
Senior Member - OP
Thanks Meter 4384
Posts: 3,523
Join Date: Dec 2008
Location: Boston, MA

 
DONATE TO ME
Quote:
Originally Posted by Darkyy View Post
Hey madmack,

A lot of people need an Arabic Patch based on XWJS5.

You can take my framework.jar and the needed libwebcore.so (if needed to update).

If you want to do it, feel free to contact it and update this topic here - I think a lot of people will appreciate it.

Best regards,
JoŽl
Good idea. I'll get a deodexed JS5 and patch it up. create a flashable CWM zip file.

Now, lemme go and see how I can make my first update.zip file

Quote:
Originally Posted by quadix View Post
this also correct Hebrew shaping? (this language require RTL to be displayed correct)
Hebrew has shaping ? this is news to me
I believe it should correct the alignment and RTL though. must give it a try for yourself
If you look at my references though, the original patcher was for Hebrew. So I believe using the original patch would fit your case better
The Following 4 Users Say Thank You to madmack For This Useful Post: [ Click to Expand ]
 
zenosteam
Old
#5  
zenosteam's Avatar
Senior Member
Thanks Meter 143
Posts: 1,450
Join Date: Jan 2011
Location: oran
ok i have pull the framework.jar and put it in the subfloder double click in cmd.exe but the pop tell me can't ffind java ?? i do something wrong what problem please
 
aladin6
Old
#6  
aladin6's Avatar
Senior Member
Thanks Meter 109
Posts: 1,462
Join Date: Mar 2009
I really need this topic, thank you thank you very very very much!
Now with any ROM i can have the arabic support :P !
THAAAAAAAAAAAAAAAAAAAAAAAAANKS .
 
kar200
Old
#7  
Senior Member
Thanks Meter 25
Posts: 291
Join Date: Mar 2008
I know that you mentionned being for any rom but would this work for Gingerbread as well?

K.
 
madmack
Old
#8  
madmack's Avatar
Senior Member - OP
Thanks Meter 4384
Posts: 3,523
Join Date: Dec 2008
Location: Boston, MA

 
DONATE TO ME
Quote:
Originally Posted by zenosteam View Post
ok i have pull the framework.jar and put it in the subfloder double click in cmd.exe but the pop tell me can't ffind java ?? i do something wrong what problem please
Yea, you need java.
https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer

I should put that in the prereq
The Following 2 Users Say Thank You to madmack For This Useful Post: [ Click to Expand ]
 
madmack
Old
#9  
madmack's Avatar
Senior Member - OP
Thanks Meter 4384
Posts: 3,523
Join Date: Dec 2008
Location: Boston, MA

 
DONATE TO ME
Quote:
Originally Posted by kar200 View Post
I know that you mentionned being for any rom but would this work for Gingerbread as well?

K.
For it to work on JV1, I'll need Samsung to release the source code first. So until then, I think we'll have to wait. (although if someone has sometime, it'll probably be worth it to change the AOSP files of 2.3.3_r1 to support my patch from github and then redo the patcher with these new files).

For CM7, well.. lets say that it already has some kind of shaping supported although not the best out there. I'll try to make a patcher just for that version given that we're blessed with the source code.
The Following User Says Thank You to madmack For This Useful Post: [ Click to Expand ]
 
taha_e
Old
#10  
taha_e's Avatar
Senior Member
Thanks Meter 275
Posts: 481
Join Date: Oct 2010
Location: Bangkok
great work, sure many people looking for this patch, Samsung is always late for latest releases of galaxy in middle east and many people also like the taste of custom roms,this patch will help a lot

The Following User Says Thank You to taha_e For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes