翻译: english, esperanto, 𐑖𐑨𐑝𐑨 𐑧𐑕𐑐𐑧𐑮𐑨𐑵𐑑𐑩, español, العربية, português, русский, bahasa, türkçe, български
我不是安装键盘布局的专家,这些说明可能不适用于所有 Linux 用户.
1. 首先,通过运行这些命令备份一些文件:
cp /usr/share/X11/xkb/symbols/epo /usr/share/X11/xkb/symbols/epo.old
cp /usr/share/X11/xkb/rules/evdev.xml /usr/share/X11/xkb/rules/evdev.xml.old
如果出现错误,请首先运行以下命令: su root
, 然后尝试再次运行命令,或将“cp”替换为“sudo cp”.
2. 打开文件 /usr/share/X11/xkb/symbols/epo
并将以下文本块附加到文件末尾:
// homepage: salif.github.io/shaw-eo
// version: 1
partial alphanumeric_keys
xkb_symbols "shaw_eo" {
include "us(basic)"
name[Group1]= "Esperanto (Shavian)";
key <AD01> { [ U10456, scircumflex ] };
key <AD02> { [ U10461, gcircumflex] };
key <AD03> { [ U10467, e] };
key <AD04> { [ U1046E, r] };
key <AD05> { [ U10451, t] };
key <AD06> { [ U10458, ubreve] };
key <AD07> { [ U1046A, u] };
key <AD08> { [ U10466, i] };
key <AD09> { [ U10469, o] };
key <AD10> { [ U10450, p] };
key <AD11> { [ U10460, jcircumflex] };
key <AD12> { [ U10459, hcircumflex] };
key <AC01> { [ U10468, a ] };
key <AC02> { [ U10455, s ] };
key <AC03> { [ U1045B, d ] };
key <AC04> { [ U10453, f ] };
key <AC05> { [ U1045C, g ] };
key <AC06> { [ U10463, h ] };
key <AC07> { [ U10462, j ] };
key <AC08> { [ U10452, k ] };
key <AC09> { [ U10464, l ] };
key <AB01> { [ U1045F, z ] };
key <AB02> { [ U10457, ccircumflex ] };
key <AB03> { [ U10454, c ] };
key <AB04> { [ U1045D, v ] };
key <AB05> { [ U1045A, b ] };
key <AB06> { [ U10475, n ] };
key <AB07> { [ U1046B, m ] };
include "level3(ralt_switch)"
};
3. 打开文件 /usr/share/X11/xkb/rules/evdev.xml
并在变体后面插入以下文本块 Esperanto (legacy)
:
<variant>
<configItem>
<name>shaw_eo</name>
<description>Esperanto (Shavian)</description>
</configItem>
</variant>
4. 然后加 Esperanto (Shavian)
通过桌面环境的设置.
要卸载,请恢复旧文件或撤消您所做的一切:
mv /usr/share/X11/xkb/symbols/epo.old /usr/share/X11/xkb/symbols/epo
mv /usr/share/X11/xkb/rules/evdev.xml.old /usr/share/X11/xkb/rules/evdev.xml
卸载旧版本并安装新版本.
当拥有该目录的软件包更新时,您对“/usr/share/X11/xkb”目录中的文件所做的更改将会丢失,例如在 Arch Linux 上,该软件包称为“xkeyboard-config”。您必须在每次更新此软件包时进行相同的更改,或者关闭此软件包的更新。您还可以选择制作包含这些更改的自定义包并替换原始包.
1. 首先,通过运行这些命令备份一些文件:
cp /usr/share/X11/xkb/symbols/epo /usr/share/X11/xkb/symbols/epo.old
cp /usr/share/X11/xkb/rules/evdev.xml /usr/share/X11/xkb/rules/evdev.xml.old
如果出现错误,请首先运行以下命令: su root
, 然后尝试再次运行命令,或将“cp”替换为“sudo cp”.
2. 打开文件 /usr/share/X11/xkb/symbols/epo
并将以下文本块附加到文件末尾:
// homepage: salif.github.io/shaw-eo
// version: 1
partial alphanumeric_keys
xkb_symbols "shaw_eo_colemak" {
include "us(colemak)"
name[Group1]= "Esperanto (Shavian Colemak)";
key <AD01> { [ U10460, jcircumflex ] };
key <AD02> { [ U10456, scircumflex ] };
key <AD03> { [ U10453, f ] };
key <AD04> { [ U10450, p ] };
key <AD05> { [ U1045C, g ] };
key <AD06> { [ U10462, j ] };
key <AD07> { [ U10464, l ] };
key <AD08> { [ U1046A, u ] };
key <AD09> { [ U10458, ubreve ] };
key <AD10> { [ U10461, gcircumflex ] };
key <AC01> { [ U10468, a ] };
key <AC02> { [ U1046E, r ] };
key <AC03> { [ U10455, s ] };
key <AC04> { [ U10451, t ] };
key <AC05> { [ U1045B, d ] };
key <AC06> { [ U10463, h ] };
key <AC07> { [ U10475, n ] };
key <AC08> { [ U10467, e ] };
key <AC09> { [ U10466, i ] };
key <AC10> { [ U10469, o ] };
key <AC11> { [ U10459, hcircumflex ] };
key <AB01> { [ U1045F, z ] };
key <AB02> { [ U10457, ccircumflex ] };
key <AB03> { [ U10454, c ] };
key <AB04> { [ U1045D, v ] };
key <AB05> { [ U1045A, b ] };
key <AB06> { [ U10452, k ] };
key <AB07> { [ U1046B, m ] };
include "level3(ralt_switch)"
};
3. 打开文件 /usr/share/X11/xkb/rules/evdev.xml
并在变体后面插入以下文本块 Esperanto (legacy)
:
<variant>
<configItem>
<name>shaw_eo_colemak</name>
<description>Esperanto (Shavian Colemak)</description>
</configItem>
</variant>
4. 然后加 Esperanto (Shavian Colemak)
通过桌面环境的设置.
要卸载,请恢复旧文件或撤消您所做的一切:
mv /usr/share/X11/xkb/symbols/epo.old /usr/share/X11/xkb/symbols/epo
mv /usr/share/X11/xkb/rules/evdev.xml.old /usr/share/X11/xkb/rules/evdev.xml
卸载旧版本并安装新版本.
当拥有该目录的软件包更新时,您对“/usr/share/X11/xkb”目录中的文件所做的更改将会丢失,例如在 Arch Linux 上,该软件包称为“xkeyboard-config”。您必须在每次更新此软件包时进行相同的更改,或者关闭此软件包的更新。您还可以选择制作包含这些更改的自定义包并替换原始包.