FORUMS

Analysis & Opinion

Top Forum Discussions

[MOD] Arabic shaping for any deodexed rom

3,592 posts
Thanks Meter: 4,547
 
By madmack, Senior Member on 8th March 2011, 07:42 PM
Post Reply Subscribe to Thread Email Thread
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
Last edited by madmack; 14th October 2011 at 05:51 PM.
The Following 62 Users Say Thank You to madmack For This Useful Post: [ View ]
 
 
8th March 2011, 09:08 PM |#2  
Darkyy's Avatar
Retired Recognized Developer
Flag Winterthur
Thanks Meter: 2,972
 
Donate to Me
More
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
Last edited by Darkyy; 9th March 2011 at 07:44 AM.
The Following 12 Users Say Thank You to Darkyy For This Useful Post: [ View ]
8th March 2011, 09:26 PM |#3  
Member
Thanks Meter: 3
 
More
this also correct Hebrew shaping? (this language require RTL to be displayed correct)
8th March 2011, 09:54 PM |#4  
madmack's Avatar
OP Senior Member
Flag Boston, MA
Thanks Meter: 4,547
 
Donate to Me
More
Quote:
Originally Posted by Darkyy

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

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: [ View ]
8th March 2011, 09:57 PM |#5  
zenosteam's Avatar
Senior Member
Flag oran
Thanks Meter: 175
 
More
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
8th March 2011, 09:59 PM |#6  
aladin6's Avatar
Senior Member
Thanks Meter: 109
 
More
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 .
8th March 2011, 10:11 PM |#7  
Senior Member
Flag Algiers
Thanks Meter: 25
 
More
I know that you mentionned being for any rom but would this work for Gingerbread as well?

K.
8th March 2011, 10:11 PM |#8  
madmack's Avatar
OP Senior Member
Flag Boston, MA
Thanks Meter: 4,547
 
Donate to Me
More
Quote:
Originally Posted by zenosteam

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: [ View ]
8th March 2011, 10:13 PM |#9  
madmack's Avatar
OP Senior Member
Flag Boston, MA
Thanks Meter: 4,547
 
Donate to Me
More
Quote:
Originally Posted by kar200

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: [ View ]
8th March 2011, 11:17 PM |#10  
taha_e's Avatar
Senior Member
Bangkok
Thanks Meter: 277
 
More
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: [ View ]
9th March 2011, 02:40 AM |#11  
ragin's Avatar
Senior Member
Flag Hubli
Thanks Meter: 156
 
More
Will it work for Hindi too?

Sent from my GT-I9000 using XDA App

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes