Bug 2327

Summary: [PATCH] To display Thai characters in xkbprint
Product: xorg Reporter: Poonlap Veerathanabutr <poonlap>
Component: * OtherAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: medium Keywords: i18n
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
URL: http://linux.thai.net/~poonlap/code/xkbprint_thai.patch
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch for xkbprint to display characters instead of keysym names
none
Output (PDF) of xkbprint without patch
none
Output (PDF) of xkbprint _with_ patch none

Description Poonlap Veerathanabutr 2005-01-19 06:30:32 UTC
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
Comment 1 Poonlap Veerathanabutr 2005-01-19 06:31:51 UTC
Created attachment 1713 [details] [review]
Patch for xkbprint to display characters instead of keysym names
Comment 2 Poonlap Veerathanabutr 2005-01-19 06:36:05 UTC
Created attachment 1714 [details]
Output (PDF) of xkbprint without patch
Comment 3 Poonlap Veerathanabutr 2005-01-19 06:36:42 UTC
Created attachment 1715 [details]
Output (PDF) of xkbprint _with_ patch
Comment 4 Poonlap Veerathanabutr 2005-01-19 06:38:42 UTC
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
Comment 5 Alan Coopersmith 2005-10-01 00:21:09 UTC
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.