Since Squeeze has been released, I'm bringing back this topic, as I find it quite important.
Le samedi 06 novembre 2010 à 17:52 +0100, Samuel Thibault a écrit : > Thibaut Girka, le Sat 06 Nov 2010 17:43:39 +0100, a écrit : [...] > > > You mean XLookupString ? > > > > Well, XLookupString works, but i thought there was a better way. > > I've made a quick and dirty modification to matchbox-keyboard, and it > > kinda works, but I'm not sure storing a list of keycode is really a good > > idea. > > What do you mean by "storing a list of keycode"? In a package? In the keyboard definition, so, in a package, yes. > I mean you can fetch it dynamically from the X server, and automatically > display a keyboard appropriately. I'm not sure how it works. We need some really special keyboard, not the geometry of a real keyboard. > You can even watch for layout > reconfiguration, thus no need to explicitely connect with console-setup, > just watch it change the X server layout. That would be the best way to do it I think! > > > Have a look at xkbprint, it exactly is able to show your keyboard as X > > > knows it. > > > > xkbprint prints the name of the keysyms, not the corresponding > > character... or I'm missing something. > > Well, yes, you can use XLookupString to convert the few ones where it'd > be needed to get a nicer output for the user (like eacute -> é, degree > -> °). I guess I just don't see what you think is missing from the X11 > protocol. Yeah, XLookupString is what I've ended up using.
signature.asc
Description: This is a digitally signed message part