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 http://linux.thai.net/~poonlap/images/xkbprint_traditional.pdf 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) http://linux.thai.net/~poonlap/images/tis-820.2538.pdf My patch is located at http://linux.thai.net/~poonlap/code/xkbprint_thai.patch 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. --- Poonlap
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.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.