How to get perfect Sinhala text on Android 4.4 KitKat! (and 4.2 + 4.3) + Instructions for 5.0 Lollipop Issues

Screenshot_2014-04-09-12-26-32
Screenshot on HTC One Google Play Edition

Using Sinhala on the phone used to be very important to me. After switching to Windows Phone (7.x – those things were unhackable) I decided to let it go. But since I moved back to Android felt like it was time to get it done! (The delay was obviously because I couldn’t be bothered with rooting. But as with everything, I eventually got bored and had to seek out methods of entertainment. In this case with custom ROMs and other fun things.)

You may have seen good Sinhala support on Samsung devices. This is because they include Sinhala fonts when they customize their ROMs by default.

We have tried using Sinhala font files on older versions of Android – in my case a shitty Samsung. Although it worked, it was not perfect. There were loads of rendering issues. (You can check an old guide by Kalinga here)

I tried doing the same thing on my current phone but it didn’t work (because of a permission issue I think). After running around XDA Forums for a day, I managed to find another more modern method to do it.

Sinhala Text on Official Twitter App
Sinhala Text on Official Twitter App

Since I had doubts about the previous font we used (one customized for iOS back in the day by Nick) I went looking around on Siyabas and found Bhashitha for Linux. I followed a guide on XDA Forums written for Punjabi support. After messing about for a while and a final reboot, perfect Sinhala text!

So let’s begin.

Requirements: Android 4.2 / Android 4.3 Jelly Bean or 4.4 KitKat, Root Access, Sinhala Font of your choice

Disclaimer: I won’t be responsible if you kill/brick your device, make it explode, turn it into a transformer etc. Proceed at your own risk!

Steps:

  1. Root your device if you haven’t already
  2. Download font from Siyabas. I used Bhashitha for Linux. Potha also works. [4.2.2 only supported Potha in Shenal’s testing] Try other fonts and let us know if they work. [Chathura tried our custom MalithiWeb font but it showed rendering issues on other Apps like Twitter.] Link: Sinhala Fonts
  3. Copy the font files to /system/fonts (I copied the files to the SD card and used ADB Shell to mount and copy them to the relevant directory. You can use something like Root Browser too) – You can use any file you like. I decided to go with LBhashitaComplexSans
  4. Download the fallback_fonts.xml file from /etc
  5. Open the fallback_fonts.xml file and modify it by adding your font names before DroidSansFallback entry.Screen Shot 2014-04-09 at 1.13.37 PM
  6. Copy the file back to the /etc directory.
  7. Now an important part which took some time for me to figure out. PERMISSIONS! Change the permissions of your fallback_fonts.xml file AND the font files to 644 or -rw-r–r– (You can do this with the terminal with chmod or using a root browser application.)
    Screen Shot 2014-04-09 at 1.18.30 PM
  8. Reboot and rejoice! (Maybe yell like a madman like I did.)

Typing:

Bhasha Helakuru or Multilingual Keyboard with the Sinhala plugin for typing. Since I’m a Wijesekara guy I went with the latter.

Swiftkey also supports Sinhala now. It’s my primary keyboard now since it supports easier switching between languages + autocorrect and suggestions.

Swiftkey: https://play.google.com/store/apps/details?id=com.touchtype.swiftkey&hl=en

Bhasha Helakuru: https://play.google.com/store/apps/details?id=lk.bhasha.helakuru

Multilingual Keyboard: https://play.google.com/store/apps/details?id=kl.ime.oh
Plugin: https://play.google.com/store/apps/details?id=klye.plugin.si

5.0 Lollipop:

If you’re having Sinhala trouble with Lollipop (I had a few issues with 5.0 ROMs for HTC One) follow this guide written by Chamika Weerasinghe: Enable Sinhala fonts rendering in Nexus 7 Android 5.0 Lollipop

Thanks

Thanks @chathuraw for testing on 4.3

Thanks @ShenalSilva for testing on 4.2.2

Everyone who has tried and reported back! 🙂

නැතිවුණු ලැප්ටොප් හොයාගන්න Prey

කාලෙකට පස්සෙ ලියන්න හිතුණා බ්ලොග් පෝස්ට් එකක්. ඉස්සර නම් තාක්ෂණික අනං මනං ගැන ලියලා, පස්සෙ කාලෙක ඒක අත්ඇරියා. දැන් ඉතින් ආයෙමත් ඉඳලා හිටලා ලියන්න හිතුණා.

මේ ලියන්න යන්නේ ලැප්ටොප් පාවිච්චි කරන උදවියට ප්‍රයෝජනවත් වෙන්න පුළුවන් මෘදුකාංගයක් ගැනයි.

Prey

ලැප්ටොප් එකක් කියන්නෙ ටිකක් වියදම් කරලා ලබාගන්න උපකරණයක්නේ. ගොඩ දෙනෙක්ගේ ජීවිත දුවන්නෙ ඔය යන්තරේ ඇතුළෙ තමයි. ඉතින් ඔය මැසිමක් නැතිවුණොත් එහෙම ජීවිතේ pause කරා වගේ තත්ත්වයක් දැනෙන්න ඉඩ තියෙනවා. ඉතින් අවාසනාවට ඔය වගේ සිදුවීමකට මුහුණ දෙන්න වුණොත්, ලැප්ටොප් එක හොයාගන්න සුළු හෝ අවස්ථාවක් ලබාදෙන මෘදුකාංගයක් තමයි මේ Prey කියන්නෙ.

මේක භාවිතා කරන්න ඔවුන් ලබාදෙන මෘදුකාංගය අපේ පරිගණකයේ ස්ථාපනය කරන්න ඕන මුලින්ම. මේක වින්ඩෝස්, ලිනක්ස් හා මැක් තුනටම තියෙන නිසා කිසිම අවුලක් නෑ. ඊටපස්සෙ ඔවුන්ගේ වෙබ් අඩවියට අපේ යන්තරේ එකතු කරන්නයි තියෙන්නෙ. මේ මෘදුකාංගය ස්ථාපනයට කරාට පස්සේ ඒක තියෙන බවක්වත් දැනෙන්නෙ නෑ.

බැරිවෙලාවත් යන්තරේ අස්ථානගත වුණොත් අපට කරන්න තියෙන්නෙ Prey වෙබ් අඩවියට ගිහින් යන්තරේ නැතිවුණු බව සලකුණු කරන එකයි.

Prey Report

එතකොට මැසිම අහල පහල WiFi hotspot එකක් තියෙනවා නම් ඒකට ස්වයංක්‍රීයව සම්බන්ධ‍ වෙලා අපි සටහන් කරන කාල වේලාවට අනුව Prey මගින් විස්තර සහිත වාර්තා අපට ලබාදෙනවා. මේ වාර්තාවට Geo-location මගින් ස්ථානය (WiFi හෝ GPS), මැසිමේ තොරතුරු, ඒ අවස්ථාවේ තිරපිටපතක්, කැමරාවක් තියෙනවා නම් ඒකෙන් ලබාගන්න පින්තූරයක්, දැනට වෙනස් වෙලා තියෙන ගොනු, සක්‍රිය වෙලා තියෙන සම්බන්ධතා, ධාවනය වන මෘදුකාංග වගේ විස්තර රැසක් අයිති වෙනවා. ඒ විතරක් නෙවෙයි, මැසිම ළඟපාතක තියෙනවා නම් හොයාගන්න alert sound එකක් නිකුත් කරන්නත්, මේ හොරකම් කරපු මැසිමක් බව කියන පණිවිඩයක් යවන්නත්, වෝල්පේප‍ර් වෙනස් කරන්නත් මේ මෘදුකාංගයට පුළුවන්.

ලැප්ටොප් එකක් නැතිවුණොත් ඒක හොයාගන්න පුළුවන් වෙයිද කියන එක කියන්න අමාරු වැඩක්. හොරකම් කරපු මනුස්සයා ඕක ෆෝමැට් කරොත් එහෙම නේද? ඒ වුණත් මේ වගේ මෘදුකාංගයකින් මැසිම හොයාගන්න සුළු හෝ අවස්ථාවක් ලැබෙනවා කියන එක කවුරුත් පිළිගනීවි. එහෙම දේවල් වෙලා මීට කලින් සිදුවෙලා තියෙනවා: Girl Recovers Her Stolen Mac By Remotely Using Its Built-In Webcam

පාවිච්චි කරලා බලන්න 🙂

[Prey]

iPhone සිංහල සහ සූර්යග්‍රහණේ!

කාලයක් බලාගෙන ඉඳල  ඉඳල අයිෆෝන් එකක් ගත්තට පස්සෙ සිංහල දාගන්න එක තමයි ලොකු අවශ්‍යතාවය වුණේ. ට්විටර් එකේ එහෙම දකින්න ඇති මේකට සිංහල දාන්න දීපු සටන.  කාලිංගයි දසුනුයි මමයි මේක හරියට හදාගන්න සෑහෙන්න සටනක් දුන්නා. ඒත් වැඩේ හරිගියේ නෑ. අකුරු ටික හරියට ආවට Rendering අවුල් දිගටම ආවා.

ඉතින් සති කීපයක්ම මේ වැ‍ඩේ කරගන්න දඟලලා දඟලලා ඉවර වෙලා අන්තිමේදි වැඩේ අත්හරින තත්ත්වයටම ආවා. අන්තිමේදි මොකද කරේ, ඇපල් වලට සිංහල ෆොන්ට් එකක් හදපු නිකලස්ට කතාකරා. මං නික්ගෙ ෆොන්ට් එකෙන් Arial එකට කොපි කරල හදපු ෆොන්ට් එක එයාටම දුන්නා. නික් ඒකට අවශ්‍ය script එක දාල දුන්නා. මේ ෆොන්ට් එක ෆෝන් එකට දාල බැලුවම වැඩේ ගොඩ! පුදුම සතුටක් තමයි එවෙලෙ ඇතිවුණේ. මං ඒක දැකපු ගමන් කෑගහපු හැටි ඇහුණනම් කට්ටිය බිම පෙරලි පෙරලි හිනාවේවි 😀

කොහොමහරි නික් කියපු විදියට මේ ෆොන්ට් එක ප්‍රසිද්ධියේ බෙදාහරින්න නම් බැරිලු. Copyright ප්‍රශ්නයක් වෙන්න ඇති. අවශ්‍ය නම් මට කෙලින්ම කියන්න 😉

මේ තියෙන්නෙ අයි‍ෆෝන් එකේ දැන් සිංහල පේන විදිය තමයි. සමහර තැන් වල තාම පොඩි පොඩි අවුල් එනවා. ඒවා ඉදිරියේදි හදාගන්න පුළුවන් වේවි.

යතුරුපුවරුවක් හදාගන්නත් ඕන සිංහල ටයිප් කරන්න. කරන විදිය ගැන තාම අදහසක් නෑ. කන්වර්ටර් එකකින් නම් කරගන්න පුළුවන්. ටිකක් එහෙම කරල බැලුවා. සාර්ථකයි.

ඉතින් මේ තොරතුරු අස්සෙ අද සූර්යග්‍රහණයකුත් වුණානෙ. දවල් ට්විටර් එකේ සද්දෙ ඇහෙනකොට තමයි ගිහින් බැලුවෙ. ඊටපස්සෙ මල්ලිත් එක්ක කැමරාවක් අටවලා ෆොටෝ ටිකක් ගත්තා. වටපිටාව බොහෝ දුරට අඳුරු වුණා. උෂ්ණත්වයත් අඩුවුණා. නියම අත්දැකීමක්.

කැමරාව අටවගත්තෙ පරණ කැසට් එකක් කඩලා ගත්ත ටේප් වලින් 😀

මගේ ෆොටෝ බ්ලොග් එක ආයෙමත් පටන්ගත්ත. ගිහිල්ල බලන්න: malinthe.info

ලයිව් රයිටරෙන් ටෙස්ටින් පාරක්

n562309752_5388 මං කලින් පාරකුත් Live Writer දාන්න ගිහිල්ල වැඩේ අල වුණා. ඉතින් මේ ආයෙමත් ට්‍රයි එකක් දෙන්නෙ වින් 7 ඉඳන්. වැඩේ ගොඩ වගෙයි. මේක මතක් වුණේ අද උදේ යාලුවෙක් බ්ලොග් ලියන මෘදුකාංගයක් ගැන අහපු වෙලාවෙ.

එච්චරයි. 😀

කොහොම කොහොම හරි මේක හරියට වැඩ කරනව. කිසි කරදරයක් නෑ. පින්තූරත් හරියට දාගන්නව. Slug එක වෙනස් කරන්නත් පහසුකම් තියෙනව. ගොඩක් හොඳයි වගේ. ඉදිරියට මේකෙන්ම ලියන්න හිතෙනව. කලින් පාර දාද්දි එක්ස්පී වලද කොහෙද හිටියෙ. ඉන්ස්ටෝල් කරගන්න ලැබුණෙ නෑ. අමුතු දෝෂ වගයක් ඇවිත්.

Windows Live Writer

Opera Mini 5 Beta

මං දැනට ජංගම දුරකථනයේ අන්තර්ජාල ගවේෂණයට පාවිච්චි කරන්නෙ Opera Mini තමයි. ෆෝන් එකත් එක්ක එන එක එතරම් වේගවත් බවක් දැනෙන්නෙ නෑ. පහසුකම් අතින් ගොඩාක්ම හොඳ නැහැ. ඒ හින්ද Opera Mini තමයි ප්‍රියතම බ්‍රවුසරය වෙලා තියෙන්නෙ.

මේක කොච්චර හොඳ වුණත් අඩුපාඩුකම් නැතුවම නෙමෙයි. ඉතින් මේ අඩුපාඩු ටිකක් හදපු අලුත් බීටා අනුවාදයක් තියෙනව කියල දැනගත්ත. ඉතින් මොකද කරේ අනිත් වැඩ පැත්තකින් තියල ඒක දාගෙන බැලුව.

පෙනුම නම් ගොඩක් හොඳයි. කොටින්ම කියනවනම් iPhone එකේ සෆාරි වල පෙනුමට සමානයි. කලින් අනුවාදයට වඩා ගොඩක් දියුණු කරල තියෙනව. සාමාන්‍ය ඔපෙරා අනුවාදයේ එන Speed Dial එකක්, මුරපද කළමනාකරණ වැඩසටහනක්, ටැබ්ස්!!! ඒ විතරක්ම නෙවෙයි. ස්පර්ශක තිර තියෙන දුරකථන වලට තවත් පහසුකම් ලැබෙනවා.

ඉතින් අදම දාගෙන බලන්න. Opera Mini 5 Beta 😀

මෙන්න ඔබේ ආස්වාදය උදෙසා ගත්තු පින්තූර ටිකක්: