如何使用xkbprint?


9

手册中没有例子,我尝试的每个文件都需要一些几何形状

$ xkbcomp /usr/share/X11/xkb/symbols/ua tmp/ua.xkm

$ xkbprint tmp/ua.xkm
Cannot open "tmp/ua.xkm" to read geometry

$ xkbprint /usr/share/X11/xkb/symbols/ua
Error: Couldn't read geometry from XKM file "/usr/share/X11/xkb/symbols/ua"
Exiting

Answers:


4

要基于gioele的answer来预览自定义键盘布局,您还可以xkbcomp像这样使用:

setxkbmap ua -print | xkbcomp - - | xkbprint - - | ps2pdf - > ua.pdf

ua 是所需的键盘布局。

检查setxkbmap -print-它提供xkbcomp了几何图形,符号,键码,...


6
The source can be ... or an X display specification.

xkbprint :0 -o xkbprint_output.ps


1
直接在bash中查看:zathura <(xkbprint :0 -o - | ps2pdf -)
Janus Troelsen,2015年

3

问题是您正在使用xkbcomp符号表而不是几何进行编译。

尝试

$ xkbcomp /usr/share/X11/xkb/geometry/ua - tmp/ua.xkm
$ xkbprint -color tmp/ua.xkm

或(没有临时文件,带有PDF输出):

$ xkbcomp /usr/share/X11/xkb/geometry/ua - | xkbprint -color -o - - | ps2pdf - > ua.pdf
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.