Magic happens here ) encoding conversion TextView tv = (TextView)findViewById(R.id.textView1) Typeface tf = Typeface.createFromAsset(getAssets(),"fonts/mylai.ttf") Initialise the Typeface (assumes TSCII, Bamini, Anjal, TAB or TAM font located inside assets/fonts folder)
All you have to do is simply import the library into your Android project and call the library as below. This library will help you to convert Unicode String to Bamini, TSCII, TAB, TAM and Anjal.
If you hate all these manual encoding conversion then check out this libraryĪs I said in above line, if you like to change the encoding dynamically while running the application then consider using the library I wrote for Android. instead of the Unicode text provide the converted Bamini encoded script into the setText method. Now use a converter to convert Unicode font into Bamini encoding. Typeface font1 = Typeface.createFromAsset(getAssets(), "fonts/Bamini.ttf") And create TypeFace with the font Bamini and set it to the TextView. All you have to do is, download the Bamini font and place it in your assets folder. There is a work around for this solution. Reason is there are no Tamil fonts in the system. You will only see boxes if you use Unicode Tamil font in your app.
Even then it had bugs and full support is provided with Jelly Bean (4.2). I am using elementary os, it feels so good after setting up the tamil input.First of all you have to understand that there is no Tamil Language support in Android OS (except few Samsung & SE mobiles) till ICS(4.0). Tamil font then seems to be rendered fine in Doom.Īs I had already installed the python-ibus ans ibus-el libraries, the tamil input seems to be working fine in Doom. After making the changes I have to run the sync command for doom ~/.emacs.d/bin/doom sync. For tamil font rendering, the unicode package needs to be enabled in the init.el. Doom Emacs has a very light learning curve, for some one familiar with Vim. I just backed up the ~/.emacs.d folder and start playing around with Doom. Meet Doom – EMacsĪfter little searching the internet, I found there is a another emacs distribution called Doom. I am not getting a predictive behaviour with tamil input over spacemacs. (add-hook 'after-init-hook 'ibus-mode-on)Īfter restarting the Ibus Daemon, it seems to be working ok. Then I need to add the lines in the Spacemacs dotfile. ( Download Links are provided at the end of the post). I had to manually download the files and install. I scratched my head as the usual apt get thing failed.
After some research, I found that the python-ibus and ibus-el libraries needs to be installed. Next I tried to type in Tamil using Ibus. (set-fontset-font "fontset-default" 'tamil "Noto Sans Tamil")Īfter closing and opening the emacs, tamil fonts seems to rendered properly. But it can be easily fixed, by specifying the font in the dotfile of spacemacs. The Tamil unicode font rendering with emacs is broken. Everytime I try a new IDE or Editor, my usual habit is to check the Tamil language support in it. My previous experience with emacs was not good. I always get night mare, while thinking of emacs.
Shrini, gave me a short intro to ORG mode, while we were pair programming for an opensource project. I have heard of ORG mode before, but not get any inspiration to use it. After seeing one of my friend Shrini using ORG mode in Emacs, I have been tempted to try it.