Tag: Devanagari

  • akIndicPlugin For Writing In Hindi, Gujarati, Malayalam And Other Indian Languages

    For those in hurry,  download [download#13#nohits] now.

    akIndicPlugin was born, when I needed to demo a website in Hindi. This plugin is adapted from a WordPress plugin Indic by nbachiyski, which is is actually based on Gamabhana library written by Omkar Joshi.

    I adapted it so that I can use it in my websites.

    As it is based on Gamabhana, it currently supports following 8 Indian languages

    1. Devanagari(Hindi)
    2. Bengoli
    3. Gujarati
    4. Kannada
    5. Malayalam
    6. Gurumukhi
    7. Telgu
    8. Urdu

    It is released under GPL, so go ahead and use it as you see fit in your web application. Writing in India languages could not get easier then this.

    akIndicPlugin

    How To Use

    Copy the files in plugin directory of your tinyMCE folder and when you are initializing tinyMCE just add  akIndicPlugin to list of plugins to load and also to list of buttons.

    For example

    tinyMCE.init({
    		theme : "advanced",
    		language : "en",
    		mode : "specific_textareas",
    		safari_warning : false,
    		plugins : "advlink, advimage,  preview, visualchars, media, nonbreaking, akIndicPlugin",
    		theme_advanced_buttons3_add : "styleprops, visualchars, media, nonbreaking, akIndicPlugin",
    		debug : false,
    		fullscreen_settings : {
    			theme_advanced_path_location : "top"
    		}
    	});

    Simple isn’t it?

    Troubleshooting

    If characters doesn’t show properly in your browser you can find some helpful hints in this Wikipedia page( “Multilingual support (Indic)”).

    If you are looking for key sequence to which letter corresponds, have a look at the nice table at the Gamabhana library site. Devanagari is used there, but the same logic applies to all other scripts.

    akIndicPlugin currently supports only tinyMCE 2.x series, stay tuned for tinyMCE 3.x support.