On Fri, May 15, 2009 at 10:34 PM, Peter Åstrand <astrand@cendio.se> wrote:
 The idea of generating keymaps from it using a perl script or similar is nice.

I totally disagree. We're missing something important here.

XKB is two things. On one hand, the Xorg's XKB *database* is a pretty rich database of worldwide keyboard layouts. On the other hand, it's an X11 extension with an API.

The database is not a standard. Assuming that any XKB layout that names itself "us" gonna look the same is technically incorrect. That's why I'm against pregenerating keymaps offline. We should look at what the user has in runtime (through the XKB API), instead of assuming everyone who has "us" or "ru" keyboard layout necessarily loaded it from the Xorg 7.0 database.

Also, XKB layouts can be tricky. It can be "us", it can be "us+ru" or "us+ru+il(pc105)" or whatever. Again, we're trying to be too smart here, instead of doing the RIGHT thing and asking the server, in runtime.