Press control+m to enable and disable swanalekha.
Uses transliteration. Example: neela = നീല, puka=പുക. avan~= അവന് Refer swanalekha rules to learn typing. Press tab after a letter to choose from suggestions. Example sa=സ, sa[tab]=ശ, avan = അവന്, avan[tab] = അവന്
To use this transliteration scheme in your webpage, download and include this javascript file in html pages.
<script src="/path/to/swanalekha-ml.js"></script>
Then bind swanalekha to textareas and input fields. Example:
swanalekha(document.getElementsByTagName('textarea')[0]);
By default, the swanalekha input method is not enabled. It is enabled when users press control+m in the input field. If you want the input method enabled by default, pass it as an option.
swanalekha(document.getElementsByTagName('textarea')[0], {enabled:true});
Once enabled, the input field will have a class swanalekha. This class can be used for providing any kind of visual indication that input method is enabled. This page uses the following style to indicate swanalekha is enabled.
.swanalekha {border-left: 3px solid #cc0000;}