[MOD] Arabic shaping for any deodexed rom

Search This thread

madmack

Senior Member
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 :D 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://xdaforums.com/showthread.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:

Darkyy

Retired Recognized Developer
Nov 17, 2009
2,012
2,957
31
Winterthur
www.darkyrom.com
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:

quadix

Senior Member
Dec 8, 2010
100
3
this also correct Hebrew shaping? (this language require RTL to be displayed correct)
 

madmack

Senior Member
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 :D

this also correct Hebrew shaping? (this language require RTL to be displayed correct)

Hebrew has shaping ? this is news to me :rolleyes:
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 :)
 

zenosteam

Senior Member
Jan 18, 2011
1,675
197
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

Senior Member
Mar 7, 2009
2,230
356
Redmi Note 10 Pro
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

Senior Member
Mar 28, 2008
360
46
Dubai
I know that you mentionned being for any rom but would this work for Gingerbread as well?

K.
 

madmack

Senior Member
  • Like
Reactions: mvmw and z1majed

madmack

Senior Member
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.
 
  • Like
Reactions: mvmw

taha_e

Senior Member
Oct 25, 2010
485
276
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
 
  • Like
Reactions: kyashars

madmack

Senior Member
for those of you who are interested in getting CM7 arabized correctly (it currently doesn't shape words correctly, adds spaces, duplicates some other..) I've ported my files to CM7 and here is a CWM file that you can flash to get arabic working correctly everywhere including browser + gmail.

Get it at OP.

I've patched the latest version (20110309b) so be careful not to apply this to any other version even though it might work. I just don't want to hold responsibility if its applied to some other versions.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 61
    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 :D 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://xdaforums.com/showthread.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
    12
    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
    4
    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 :D

    this also correct Hebrew shaping? (this language require RTL to be displayed correct)

    Hebrew has shaping ? this is news to me :rolleyes:
    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 :)
    4
    good i am happy for you ,enjoy::)
    now waiting for libwebcore.so from Mr madmack :D

    Mr madmack is waiting for Mr Samsung :D
    4
    well, brightidea fixed it for you guys :)

    http://www.multiupload.com/V3Z0E05IM0

    just put that file in /system/lib and reboot. (or better, replace libandroid_runtime.so in the flashable_cwm.zip with the one above) and then flash it in cwm.

    attachment.php


    you guys will need to wait for my universal patcher to work with JVT. I'm afraid you'll just need to keep replacing that one file everytime because LibPatcher.exe has a little bug. I'm keeping my fingers crossed that brightidea releases his new combined arabic/hebrew patcher for libwebcore.so and libandroid_runtime.so (given that Eran, the author of LibPatcher.exe has kindly shared his sources) which should hopefully fix this problem all together then you can start flashing using my universal patcher once again :)