Skip to main content

Khmer Unicode Language support for Samsung Galaxy S2 Android MIUI ROM 2.3.2b

1. Concept

You can add Khmer language support to Android OS in 2 stages.
Stage 1: Basic Khmer Unicode support (Font rendering and Keyboard) to Android OS
- Modify Khmer Unicode font to work with Android OS, and Replace Android UI System fonts with Khmer Unicode support fonts.
- Add Khmer Unicode support to Android OS Unicode rendering engine  (libskia.so, libskiagl.so & LibWebcore.so)
- Create Khmer Keyboard layout and input method
For more details about Khmer Unicode & Andorid OS go to in depth section 4 below.
Stage 2: Translate Foreign language Andoid System files and Apps into Khmer language.
- decompile apk file to modify resource such as xml, jpg, png or smali code files (translate into Khmer)
- recompile the apk and put back into your phone.
Nokorsoft.com


Disclaimers:
Do it at your own risks. I am not liable for anything.
Software and documents used in this tutortial are from Internet, please let me know if you think any material used in this tutorial infringe our copyrights.
All copyrights belong to its’ original owner(s).Thanks.
———————————————–

2. What do you need?

Hardware: A computer running MS Windows XP or newer and a rooted Andorid Phone (In our example, Samsung Galaxy S2 running Galnet Scotland MIUI 2.3.2b )
+ MIUI 2.3.2b for Samsung galaxy s2:
- How to root Samsung Galaxy S2
- Galnet MIUI stable ROM
direct link for MIUI 2.3.2b Samsung Galaxy S2 
- How to install MIUI ROM on a supported root phone
Software for stage 1:
+ Nokora font:
Nokora font package 
Nokora font (Credit: Mr Danh Hong)
Modified Khmer unicode font to work with libskia.so.
+ Rendering Engine
libskia.so & libskia for Samsung Galaxy S2 MIUI 2.3.2b ARMv7
Khmer hack version of libskia.so & libskia (Credit: Chanrithy Thim)
Software for stage 2:
+ Apk decompile and recompile tool
Apktool 1.4.3 and ICS mod Apktool
+ Winrar
www.rarlab.com/download.htm
+ AndroidSuite
v115.exe (ICS support)
A GUI version of apktool, come with apk signer very handy.
+ Notepad++
Version 6
xml editor.
+ File Manager with root access for Android
Your choice
Root Explorer for android
ES File Explorer
Super Manager
(all can be downloaded from Google Play market or just google it,)
+ Android software to delete stock app 
RootAppDelete
+Java Runtime Evironment
JAVA SE JRE 6u25
you need this to run the AndroidSuite and apktool, type java -version in your command promt to check if you have it installed)
+ Document:
English Khmer Glossary of Computer terms
Description:


3./ Let’s do it

Before we start playing, I just want to make sure that you have:
- a rooted android phone. In here, we use Samsung galaxy s2 MIUI 2.3.2b, if you dont’ have it go here.
- a BACKUP of your important data (Use ROM manager from Google Play android market to this for you)
- all the required software and documents listed above.
Stage 1:
WARNING: You may brick your phone. Once again, please double check that you have a backup of your ROM using Clockwork Mod/ROM manager.
3.1.1./ Install fonts
copy DroidSansArabic.tts, DroidSans.ttf and DroidSans-Bold.ttf from droidsans_nokora.zip to /system/fonts/ on your phone using Root Explorer (or any other file exporer that support root function)

Common Error: “Cannot paste her because the file system is read-only”
- You need to mount the system/fonts folder in R/W mode
click [Mount R/W] on the top right corner of the screen.
- You haven’t given root access root to the program yet.
Exit the program, it will prompt you to allow root access.
3.1.2/ install rendering engine
Copy libskia.so and libskiagl.so to /system/lib

Now, restart your phone, if everything go right, it will pass the boot screen.
Common Error:
- If your phone hang in the boot loop, it means something’s gone wrong.
You need to restore your phone from your backup from boot recovery (hold Volume up + Home key + Power key).

3.1.3/ install Khmer Keyboard
Your choice
- Phum Keyboard (download from Google Play market)
- MultiLing Keyboard (download from Google Play market)
- Khmer IM (Finder.com.kh )
All Done! for stage 1. :)
Now you can go to Stage 2 or if want to know how does Khmer Unicode works on Android OS check out below
:)

4. Khmer Unicode support for Android OS In Depth

As far as I know, Android doesn’t officially support Khmer Unicode at the time of this writing.
There are a couple of geniuses out there have  found  a way to make Khmer Unicode works on Android OS.
How Khmer Unicode works
When you type ខ + ្   + ម + ែ  + រ –>  ខ្មែរ the rendering engine rearrange the characters based on a set of substitution rules (table).  Without the knowledge of Khmer substitution rules, the rendering engine won’t be able to display Khmer Unicode correctly.
Example:   ្  (Choeung, Unicode 17D2 ) + ម Mor ( Unicode 1798) –> ្ម  (Choeung Mor, not in normal Unicode range)
Problem: The problem is that Android OS rendering engine SKIA, originally, doesn’t support complex script rendering nor the substitution outside Unicode range yet (correct me if i am wrong).  And all Khmer subscripts (Choeung) are not in normal Unicode range u+0000 to u+FFFF (0-65535).

Solution: A group of genius solved this problem by hard code the Khmer Unicode substitution rules into SKIA library.
They puts Khmer subscripts and other characters in Arabic Unicode range (it doesn’t have to be Arabic range, you can choose other ranges), that is why we need to replace or delete DroidSansArabic.ttf.  Create gsub file subtitution code for a Khmer unicode font. And last recompile SKIA library files.
Conclusion: In order to get Khmer Unicode to work on Android.
1. modify a Khmer Unicode font (move all subscripts and other characters into Unicode Range) using FontForge
2. obtain original SKIA library (and/or Webcore library)  source code for your particular phone and hard code the Khmer substitution rule into the SKIA lib (and/or Webcore library).
3. replace Android system fonts with Khmer Unicode supported fonts.
4. replace Android original Skia library (libskia.so & libskiagl.so) and/or Webcore library ( libWebcore.so) with the Khmer hack files.
For more details check out Stephen Gibberd’s instruction on how to hard core Khmer Substitution rules into SKIA library from the scratch.

Comments

Popular posts from this blog

វិធីសាស្រ្ត Unlock bootloader របស់ Motorola

ធ្លាប់បានលឺច្រើនមកហើយអំពីវិធីសាស្រ្ត Unlock bootloader ផ្សេងៗដូចជា  SONY ,  HTC , Nexus ជាដើម តែអ្វីដែលយើងមិនធ្លាប់ដឹងនិង សាកល្បងគឺពពួក Motorola តែម្តង។ វិធីសាស្រ្តផ្សេងៗត្រូវបានអនុវត្តហើយ វាផ្តល់នូវលក្ខណៈងាយស្រួលផ្សេងៗគ្នាដើម្បីឲ្យយើងមានសិទ្ធកាន់តែច្រើនទៅលើការប្រើប្រាស់ទូរស័ព្ទទំនើបរបស់យើង។ ថ្ងៃនេះខ្ញុំសូមណែនាំពីវិធី unlock bootloader របស់ពពួកMotorola វិញម្តងដែលម៉ាកមួយនេះ ហាក់ដូច ជាមិនសូវពេញនិយមក្នុងទីផ្សារយើងសោះ។ តែយ៉ាងណាក្តីក៏ខ្ញុំព្យាយាមប្រមូលរាល់ពត៌មានទូរស័ព្ទដែលមានទាំងអស់មកដាក់ក្នុងនេះផងដែរ។ ចំពោះជំហ៊ាននៃការប្រតិបត្តិមានដូចខាងក្រោម៖ ទាញយក  fastboot ទាញយក  driver តម្លើង driver ពន្លា fastboot ប្រើប្រស់  terminal  របស់ Windows ដើម្បីចូលទៅទីតាំង fastboot. exe បើកទូរស័ព្ទចូលទៅ fastboot ដោយចុច Power+ vol  Down ហើយដោតខ្សែ  USB  ទាំងព្រម វាឃ្លាខាងក្រោម $ fastboot oem get_unlock_data បន្ទាប់មកវានឹងបញ្ហានូវទិន្ន័យដូចគំរូខាងក្រោម $ fastboot oem get_unlock_data (bootloader) 0A40040192024205#4C4D3556313230 (bootloader) 30373731363031303332323239#BD00 (bootloader) 8A672BA474

how to install khmer on Sony Ericsson X8

 ខ្ញុំ​បានអាន​នូវឯកសារ​របស់​សមាជិកមម្នាក់ក្នុងក្រុម CAUG (Cambodia Android User Group) ស្តីអំពីការ តំលើង ភាសារដែល​អាច​មើល​បាន​ត្រឹម​ត្រូវ ដាក់ចូល​ទៅក្នុង​ទូរស័ព្ទ Xperia X8 របស់​ក្រុមហ៊ុន​សូនី។ សូមមើលជំហ៊ាននៃការធ្វើតាមលំដាប់ដូច​ខាងក្រោម

Orkida English-Khmer Dictionary

ថ្ងៃ​នេះ​សុំ លើក​យក​វត្ថុ​បូរាណ​ ប៉ុន្តែ​ពេញ​និយម ដែល​ត្រូវ​បាន​ដំឡើង​ស្ទើគ្រប់​កុំព្យូទ័រ​បង​ប្អូន​ខ្មែរ​យើងគឺ វចនានុក្រម Orkida English<->Khmer ។ សង្ឃឹម​ថា​ម្ចាស់​បង្កើតវចនា​នុក្រម​នេះ មិន​យល់​ទាស់​អី​ទេ ដែល​ខ្ញុំ​ដាក់​អោយ​គេ​ទាញ​យក​ជាសាធារណះ​ដូច្នេះ ព្រោះ​ថា​វា​កម្មវិធី​ដែល​បង្កើត​ឡើង​តាំង​ពីឆ្នាំ ១៩៩៨មក​ម្ល៉េះ ម្យ៉ាង​វិញ​ទៀតបង​ប្អូន​យើង​បាន​ចម្លង​ពីមួយ​ទៅ​មួយស្ទើរ​គ្រប់​កុំព្យូទ័រ​ ទៅ​ហើយ។ ដោយ​ឡែក​ពេល​ខ្ញុំ​សាកល្បង​ស្វែង​រក​ក្នុង Google អំពី​វចនា​នុក្រម​នេះ ហាក់​ដូច​ជា​ស្ងាត់​ឈឹង​ មិនសូវ​មាន​កន្លែង​ Download សោះ ! ដូច្នេះ​ដើម្បី​អោយ​ការ​ស្វែង​រកក្នុង​អ៊ិនធឺណិត​ទាក់​ទង​នឹង​ស្រុក​ខ្មែរ​ យើងកាន់​តែមាន​​ប្រសិទ្ធភាព ខ្ញុំ​សម្រេច​ចិត្ត​ Upload វា​ចូល​ក្នុង Hosting របស់​ខ្ញុំ​ ហើយ​ចែក​អោយ​បងប្អូន​ដែល​ត្រូវ​ការ​វា​ យក​ទៅ​ប្រើ​ប្រាស់​ចុះ។ ថ្វីត្បិត​តែ​វា​រាង​ចំណាស់​បន្តិច​មែន តែ​រហូត​មក​ដល់​ Windows 7 ហើយ​ វា​នៅ​តែ​អាច​ដំឡើង​និង​ប្រើ​បាន​ជា​ធម្មតា។ ទាញ​យកវចនានុក្រម​ Orkida By : Sam Vichea