- A linux keyboard for typing pāli and sanskrit diactrics ( i.e ā ī ū ē ō ñ ṭ ḍ ṇ ḷ ḥ ś ṣ ṛ ṝ ṃ ŋ ṁ √ ) .
- Type diactrics with left alt key as modifier (ṅ = left alt + b, ñ = left alt + y, ŋ = left alt + <) .
-
Install as a alternative layout of us ( easiest ).
1.
sudo mv /usr/share/X11/xkb/symbols/us /usr/share/X11/xkb/symbols/us.backup
.
2.sudo mv us-pali /usr/share/X11/xkb/symbols/us
.
3. reboot . -
Install as a optional layout .
1.
sudo mv us-pali /usr/share/X11/xkb/symbols/pi
.
2.under /usr/share/X11/xkb/rules, add layout item to evdev.xml and base.xml's tag.<layout> <configItem> <name>pi</name> <shortDescription>us-pali</shortDescription> <description>us-pali</description> <languageList> <iso639Id>pi</iso639Id> </languageList> </configItem> <variantList/> </layout> </layoutList>
3.reboot .
4.open system settings > keyboard > layouts .
5.click '+', search and activeus-pali
.
mkdir -p ~/.xkb/symbols
mv us-pali ~/.xkb/symbols
.- add relevant snippet in the sway config file .
input type:keyboard {
xkb_layout us-pali
}
- reboot .
- Instead of left alt key, you can set right alt key as the modifier by replace
lalt_switch
withralt_switch
in us-pali .