Bug 2327 - [PATCH] To display Thai characters in xkbprint
Summary: [PATCH] To display Thai characters in xkbprint
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: * Other (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium enhancement
Assignee: Xorg Project Team
QA Contact:
URL: http://linux.thai.net/~poonlap/code/x...
Whiteboard:
Keywords: i18n
Depends on:
Blocks:
 
Reported: 2005-01-19 06:30 UTC by Poonlap Veerathanabutr
Modified: 2005-09-30 07:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch for xkbprint to display characters instead of keysym names (153.43 KB, patch)
2005-01-19 06:31 UTC, Poonlap Veerathanabutr
no flags Details | Splinter Review
Output (PDF) of xkbprint without patch (42.69 KB, application/pdf)
2005-01-19 06:36 UTC, Poonlap Veerathanabutr
no flags Details
Output (PDF) of xkbprint _with_ patch (37.16 KB, application/pdf)
2005-01-19 06:36 UTC, Poonlap Veerathanabutr
no flags Details

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.