When using xkbprint to print keyboard layout with symbols, it will use keysym
name to display. Because the space on a key is limited, the symbol names will
display uglily and this is not so useful, for example
I would like to propose a patch to display characters (in my case is Thai)
instead of symbol names. It is more useful for a user, for example (the same
layout with patch)
My patch is located at
It includes Thai pfa font (GPL license), and code to detect if the layout
includes Thai or not. If there is a Thai keyboard defined, it will setup font
and display Thai characters. If there is no Thai keyboard, it will not set
anything about Thai displaying.
I think this approach is useful for other languages also.
Created attachment 1713 [details] [review]
Patch for xkbprint to display characters instead of keysym names
Created attachment 1714 [details]
Output (PDF) of xkbprint without patch
Created attachment 1715 [details]
Output (PDF) of xkbprint _with_ patch
Here are the commands to create the sample.
$ setxkbmap -layout us,th_tis
$ xkbprint -nokc -nkg 2 -eps -label symbols -color :0 xkbprint_traditional.eps
Sorry, but X.Org does not accept code under the GPL license.