A few of us are used of typing with medhA keyboard layout. It follows phonetics mostly and is easy to use.
To have a fun and to learn something about computing I switched to linux and felt that medhA is not with me.
So, tried a little. Created a custom layout. Applied it. Trials and errors were there.
But, I had a working keyboard.
Here is it for all who need it.
1. Copy and paste it and save as a text file sa(no extension)
…………………………………………………………………………..
//medha for linux
default alphanumeric_keys
xkb_symbols “sa” {
name[Group1]= “sanskrit”;
// Number rows
key <TLDE> { [ U0950, U0901, U0951 ] };
key <AE01> { [ U0967, U0909, U0952 ] };
key <AE02> { [ U0968, U090A, U1CDA ] };
key <AE03> { [ U0969, U0960, UA8F3 ] };
key <AE04> { [ U096A, U090C, U1CF2 ] };
key <AE05> { [ U096B, U0961, U1CF5 ] };
key <AE06> { [ U096C, U0914, U1CF6 ] };
key <AE07> { [ U096D, U0943, U1CE9 ] };
key <AE08> { [ U096E, U0944, U1CEA ] };
key <AE09> { [ U096F, U0962, U1CEB ] };
key <AE10> { [ U0966, U0963, U1CEC ] };
key <AE11> { [ U093D, U094C, U1CEE ] };
key <AE12> { [ U1CEF, U1CF0, U1CF1 ] };
// First row
key <AD01> { [ U0925, U0920, U1CF3 ] };
key <AD02> { [ U0948, U0910, U1CF4 ] };
key <AD03> { [ U0940, U0908 ] };
key <AD04> { [ U0930, U090B ] };
key <AD05> { [ U0924, U091F ] };
key <AD06> { [ U092F, U097A ] };
key <AD07> { [ U0941, U0942 ] };
key <AD08> { [ U093F, U0907 ] };
key <AD09> { [ U094B, U0913 ] };
key <AD10> { [ U092A ] };
key <AD11> { [ U0947, U090F ] };
key <AD12> { [ U0927, U0922 ] };
key <BKSL> { [ ] };
// Second row
key <AC01> { [ U093E, U0905 ] };
key <AC02> { [ U0938, U0936 ] };
key <AC03> { [ U0926, U0921 ] };
key <AC04> { [ U092B ] };
key <AC05> { [ U0917, U0918 ] };
key <AC06> { [ U0939 ] };
key <AC07> { [ U091C, U091D ] };
key <AC08> { [ U0915, U0916 ] };
key <AC09> { [ U0932, U0933 ] };
key <AC10> { [ U091E ] };
key <AC11> { [ ] };
// Third row
key <AB01> { [ ] }; // z
key <AB02> { [ U0937 ] };
key <AB03> { [ U091A, U091B ] };
key <AB04> { [ U0935 ] }; //
key <AB05> { [ U092C, U092D ] };
key <AB06> { [ U0928, U0923 ] }; //
key <AB07> { [ U092E, U0919 ] }; //
key <AB08> { [ U094d, U0906 ] }; //
key <AB09> { [ U0902, U0965 ] };
key <AB10> { [ U0903, U0964 ] };
// space, space, Zero-Width-Non-Joiner (ZWNJ), Zero-Width-Joiner (ZWJ):
include “nbsp(zwnj3zwj4)”
// begin modifier mappings
// modifier_map Shift { Shift_L };
// modifier_map Lock { Caps_Lock };
// modifier_map Control{ Control_L };
// modifier_map Mod3 { Mode_switch };
include “level3(ralt_switch)”
};
………………………………………………………………………………………….
2. add this to evdev.xml
…………………………………………………………………………….
<variant>
<configItem>
<name>sa</name>
<description>sanskrit</description>
<languageList>
<iso639Id>sa</iso639Id>
</languageList>
</configItem>
</variant>
…………………………………………………………………………….
3. Open termial and run this as superuser
………………………………….
setxkbmap -layout ‘us,sa’
………………………………….
4. Set switching keys in keyboard options.
That’s all.
Note that I was unable to put ligatures in this keyboard. So, if you want to type प्र you have to press p + , + r . Just pressing shift + p will not work (as was in the case of ‘medhA for windows’).
Another thing, I was not able to activate this keyboard with GUI and any change made there caused loss of medhA. I hope someone will help me.
Update: Follow Github “https://github.com/lalitaalaalitah/medhA-keyboard_layout/tree/master/Linux” for any updates.