Transliteration Keymaps
Transliteration Keymaps
These keymaps specify how to transliterate user inputted text into UNICODE (or ASCII) character values. For these transliteration keymaps, the document is divided into three sections – Vowels (includes vowels as well as vowel signs), Consonants and Others.
The entries in Vowels section specify how keystrokes get converted into UNICODE values based on the presence and position of consonant i.e. whether to use a vowel sign or vowel value. Similarly the entries in Consonants section specify whether a vowel sign is selected or not. The entries in Others section will not make a vowel sign to be selected, a matching key stroke results in a vowel.
The following shows excerpts from a sample UNICODE Transliteration Keymap for Hindi language:
//
=========================================================
// Copyright © 2001-2003 Deshweb.com Pvt. Ltd.
// =========================================================
#id = hindi#
#name = Hindi Transliteration Scheme#
#virama = 0x094D, smart#
#language = Hindi#
#scheme = ITRANS#
#vowels#
// first column specifies value for vowel
// second column is vowel sign
a 0x0905
0x0
aa 0x0906
0x093E
A
/// more entries deleted for this example
#others#
.N 0x0901 // candrabindu
M 0x0902
// anusvara
.n
.m
/// more entries deleted for this example
#consonants#
k 0x0915
kh 0x0916
g 0x0917
/// more entries deleted for this example
#end
Assuming the above keymap being used, when the user presses yaa on the keyboard Aksharamala produces:
य + ा = या
Here 'aa' ('A' would work equally same) is converted to vowel sign ा since it is followed by consonant. Where as 'aa' in aag is converted to आ as shown below:
आ + ग = आग