键盘布局里'cn'和'us'有什么区别

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 键盘布局里'cn'和'us'有什么区别

#2

帖子 vickycq » 2016-09-18 10:49

科学之子 写了:键盘布局里'cn'
/usr/share/X11/xkb/symbols/cn
文件开头有 "// Default Chinese is the same as American" 字样
其后主要包含藏语,维语这两个 Variant 的定义
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

Re: 键盘布局里'cn'和'us'有什么区别

#3

帖子 科学之子 » 2016-09-18 11:33

vickycq 写了:
科学之子 写了:键盘布局里'cn'
/usr/share/X11/xkb/symbols/cn
文件开头有 "// Default Chinese is the same as American" 字样
其后主要包含藏语,维语这两个 Variant 的定义
:Adore
怎么搜索到的啊
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 键盘布局里'cn'和'us'有什么区别

#4

帖子 vickycq » 2016-09-18 11:45

科学之子 写了:怎么搜索到的啊
一开始先 apt install console-data; find /usr/share/keymaps | grep cn 无结果
后来想到 find /usr/share/X11/xkb/ | grep cn 得到 /usr/share/X11/xkb/symbols/cn
打开一看

代码: 全选

// Default Chinese is the same as American
default  partial alphanumeric_keys
xkb_symbols "basic" {
    include "us(basic)"

    name[Group1]= "Chinese";
};
后面是 Tibetan Standard, Tibetan Standard with ASCII numerals 和 Uyghur Standard 的定义
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复