[MOD] Arabic + RTL reading/writing for the SGS2
RTL - Right to left support.
I have recompiled the webkit files for our SGS2 to support arabic shaping.
This thread will serve to help you folks arabize (shaping arabic texts) any deodexed rom out there (well, except MIUI based ones).
Framework.jar (and libwebcore.so):
patching framework.jar will give you arabic shaping + RTL support everywhere except the browser and gmail, while patching libwebcore.so will give you RTL + arabic shaping support in the Browser + Gmail apps.
Please go to my website for instructions and detailed howto: (Scroll down for English)
note1: V0.810 will attempt to give you RTL + Arabic shaping in the Browser as well. Please follow the new guidelines at the blog. (using brightidea's work
note2: On our Samsung Galaxy S2 device, arabic letters might come garbled at some locations. For that, you need to replace a font which is listed below.
Note: if you used v0.810 for my universal patcher, replacing libwebcore.so from this section manually may be unnecessary as the universal patcher attempts to arabize this file as well. (make sure you follow the new guidelines in the blog)
This file is responsible for shaping arabic texts in the Browser and Gmail apps. Just replace the file in /system/lib with this one and you should get arabic shaping out of the box. You'll need root to change this file.
(CWM Flashable): Files created by brightidea
. Thank you
This does NOT work on KG1 ROMs
I highly recommend trying the solution by brightidea
in this sister thread
for all other devices and ROM versions.
This file is required for our phone. Not using it will give you spacing issues when displaying arabic text.
Note that you can't use any arabic font on the galaxy s2. This will most definitely crash your browser+gmail app. Use only stock samsung fonts or this one (my own
Place the file in /system/fonts/ and reboot.
update: some screenies