Typing Malayalam with the Lalitha Keyboard Layout

1. Introduction

1.1. Synopsis

Lalitha is a xkb input method for typing Malayalam (മലയാളം) on standard ISO/ANSI keyboards. Lalitha maps characters phonetically to the keys of the English QWERTY layout. This makes Lalitha well suited for language learners. It also provides an intuitive input method for native speakers used to standard QWERTY keyboards. Lalitha is included in the xkeyboard-config reference database that ships with all major Linux distributions. This website intends to provide an overview of the Lalitha keys and key combinations available for writing modern Malayalam on the computer.

1.2. A Note on Fonts

On this page Malayalam characters are rendered with Google's "Noto Serif Malayalam" font. This font adheres to modern conventions of Malayalam glyphs for conjuncts and internal vowels (see Sect. 12.9 of the Unicode Standard). The key presses documented here create the relevant Unicode combinations for this purpose. Usage of different fonts may result in different, perhaps undesired, glyphs for the key press sequences presented above.

1.3. Bug in the Lalitha layout of xkeyboard-config

While preparing this overview I noticed a bug with the Lalitha layout of xkeyboard-config (versions ≤ 2.46). Currently, the layout uses an archaic variant for the dependent form of the au vowel (see my bug report for further details). A workaround is to change the relevant entry in the xkb symbols definition. This is achieved by replacing U0D4C with U0D57 in the xkb_symbols "mal_lalitha" section of the file that contains all Indian layouts.

Original version:

key <AD01>   { [   U0D48, U0D4C, U0D10, U0D14  ] }; // Q: ai and au matras

Changed Version:

key <AD01>  { [   U0D48, U0D57, U0D10, U0D14  ] }; // Q: ai and au matras

In Debian and derivates this file is located at /usr/share/X11/xkb/symbols/in.

1.4. Motivation

I am no expert in മലയാളം. My native tongue is German. I created this page mainly as an overview for myself, with the hope that others might find it useful as well. The Lalitha layout is inspired by the Bolnagri layout for the Devanagari script. Bolnagri serves me well for learning and typing हिन्दी. But, while Lalitha seemed as awesome as Bolnagri, I had some difficulties at first, and I could could not find an overview like this to get me started. Hence, I drafted this web page while spending time with my family Kerala. Credits go to the love of my life, പ്രസിയ, who helped me in refining the initial draft.

Most of the examples in Sect. 3, as well as the English phonetic transliterations in Sect. 2 are taken from from the Malayalam textbook by R.F. Moag (2018; University of Texas at Austin South Asian Institute; Creative Commons Attribution 4.0 License).

Feedback and corrections, especially from native Malayalis, are welcome! Please refer to my homepage for contact details.

2. Basic Characters

2.1. Vowel Sounds

Throughout a , (comma) in the keyboard column indicates a sequence of keypresses. That is to say, the pressed key or key-combination, indicated by +, left of the comma needs to be released before pressing the key- or combination on right of the comma. Moreover, Alt always refers to the Alt key right of the Space key.

Malayalam Phonetic Keyboard
a Shift + a
aa Alt + a
i Alt + i
ii Shift + Alt + i
u Alt + u
uu Shift + Alt + u
r' Shift + Alt + r
e Alt + e
ee Shift + Alt + e
ai Alt + q
o Alt + o
oo Shift + Alt + o
​ഔ au Shift + Alt + q
അം am Shift + a, Shift + m
അഃ aha Shift + a, Shift + h

2.2. Consonants

Malayalam Phonetic Keyboard
ka k
kha Shift + k
ga g
gha Shift + g
ƞ Alt + n
ca c
cha Shift + c
ja j
jha Shift + j
ña Shift + Alt + n
Ta Alt + t
Tha Shift + Alt + t
Da Alt + d
Dha Shift + Alt + d
Na Shift + n
ta t
tha Shift + t
da d
dha Shift + d
na n
pa p
pha f
ba b
bha Shift + b
ma m
ya y
ra r
la l
va v
sha Shift + z
Sha Shift + s
sa s
ha h
La Shift + l
Ra z
ra Shift + r

3. Internal Vowels & Conjuncts

3.1. Internal Vowels (aka Dependent Vowels)

In the following table CK refers to a consonant key. Moreover, a few examples provide visual reference for each vowel.

Vowel Dependent Examples Keyboard
കാ ചാ ടാ താ പാ CK, a
കി ചി ടി തി പി മി CK, i
കീ ചീ ടീ തീ പീ മീ CK, Shift + i
കു ചു ടു തു പു മു CK, u
കൂ ചൂ ടൂ തൂ പൂ മൂ CK, Shift + u
കൃ ചൃ ടൃ പൃ മൃ CK, Alt + r
കെ ചെ ടെ തെ പെ മെ CK, e
കേ ചേ ടേ തെ പേ CK, Shift + e
കൈ ചൈ തൈ CK, q
കൊ ചൊ ടൊ തൊ CK, o
കോ ചോ ടോ തോ CK, Shift + o
കൗ ചൗ ടൗ പൗ മൗ CK, Shift + q

Regarding the last row please note the bug and the workaround mentioned above.

3.2. Consonants without Inherent Vowel

3.2.1. Chillu Form

Consonant Variant 1 Keyboard Variant 2
ണ്‍ Shift + n, x, Shift + v ണ്
ന്‍ n, x, Shift + v ന്
ര്‍ r, x, Shift + v ര്
ല്‍ l, x, Shift + v ല്
ള്‍ Shift + l, x, Shift + v ള്

Variant 1 is known as chillu form. Here and in the following the x key can be replaced by an ` key. Variant 2 is the dead form, which is obtained by not pressing Shift + v in the end. Technically speaking, Shift + v inserts a ZWJ (zero-width joiner) that tells the font-renderer to use variant 1.

3.2.2. Other Consonants

ക് ച് ട് ത് പ്

All other consonants with suppressed vowel use the dead form. They are obtained by pressing the consonant key from the table above followed by the x key. The x key inserts the small half-moon on top of the consonant glyph known as chandrakala (ചന്ദ്രക്കല).

3.3. Common Double Consonants

For double consonants the pattern is CK, x, CK, where CK is the consonant key. The following table presents common examples.

Consonant Double Consonant Keyboard
ക്ക k, x, k
ങ്ങ Alt + n, x, Alt + n
ച്ച c, x, c
ത്ത t, x, t
ട്ട Alt + t, x, Alt + t
ഞ്ഞ Shift + Alt + t, x, Shift + Alt + t
ന്ന n, x, t
ബ്ബ b, x, b
മ്മ m, x, m
ല്ല l, x, l
യ്യ y, x, y
വ്വ v, x, v
പ്പ p, x, p
ള്ള Shift + l, x, Shift + l
റ്റ Shift + r, x, Shift + r

3.4. Common Conjuncts

For two letter conjunct glyps the pattern is CK, x, CK. Some examples are shown below:

Consonants Conjunct Keyboard
ത് + യ ത്യ t, x, y
സ് + വ സ്വ s, x, v
ക് + ത ക്ത k, x, t
ക് + ഷ ക്ഷ k, x, Shift + s
സ് + വ സ്വ s, x, v

Rendering of the conjunctn and double consonants can be turned off explicitly by adding a ZWNJ (zero-width non-joiner) or a ZWSPC (zero-width space) after the chandrakala. This is achieved by pressing Alt + \ or Shift + x, respectively. Here are some examples:

Consonants Combination Keyboard
ത് + യ ത്​യ t, x, Shift + x, y
സ് + വ സ്​വ s, x, Shift + x, v
ക് + യ ക്​യ k, x, Shift + x, y

This variant is also the fallback in fonts that do not support the consonant letters.

Lastly, I noted that some conjuncts are used to indicate similar sounding consonants:

Consonant Conjunct Keyboard
പ് + ര പ്ര p, x, r
പ് + റ പ്ര p, x, r
പ് + റ പ്റ p, x, Shift + r
സ് + ല സ്ല s, x, l
സ് + ള സ്ല s, x, l
സ് + ള സ്ള s, x, Shift + l

However, as seen in the last column, this is an explicit choice of the writer.

Author: Edmund Christian Herenz

Created: 2026-02-17 Di 16:14

Emacs 26.1 (Org mode 9.5.1)

Validate