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.