XKB Geometry documentation

Daniel Stone daniel at fooishbar.org
Sun Feb 4 04:58:47 PST 2007


On Sat, Feb 03, 2007 at 11:14:57AM +0100, Tim Ri wrote:
> This week I started writing a small parser for geometry files. I was wondering 
> if someone could point me to some documentation/specifications for the 
> grammar used in these files.
> 
> The most useful links I found (http://www.xfree86.org/current/XKBlib.pdf and 
> http://www.charvolant.org/~doug/xkb/index.html) are unfortunately not 
> sufficiently up-to date. Some oddities from the geometry files in my distro 
> (Debian and Ubuntu):
> 
> * Use of new attributes in text doodads (e.g. setWidth).
> * Use of cornerRadius attribute for a solid (maybe this is allowed, but I 
> cannot find that explicitly in the spec).
> * Use of fractional numbers for gaps, coordinates etc. (perhaps this has to do 
> with the "1mm = 0,1 mm" strangeness noted by Doug Palmer).
> * Use of numerical expressions (e.g. 10 + 12) for attribute values.
> 
> At the moment I have a working parser, that is, I fiddled with it long enough 
> that it is now capable to recognize all my distro's geometry files as valid, 
> but I would _love_ to see some official/officious specification to back it 
> up.

As with most things XKB, I guess that the most accurate specification
is, as you've already discovered, the union of all files currently in
use, and/or the xkbcomp source code[0].

Cheers,
Daniel

[0]: xkbcomp badly needs a rewrite, if you're that keen ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070204/95dcbacb/attachment.pgp>


More information about the xorg mailing list