[Y-devel] keyboard layouts (continued)
Rupert Mazzucco maz at ap.univie.ac.at
Tue Mar 2 16:12:27 GMT 2004
> > Please can we accept XKB as a base model and concentrate on making some
> > sensible modifications? A lot of energy is going towards re-inventing a
> > perfectly good system. And please don't argue this point until you
> > understand how XKB works.
>
> Which means by that standard nobody will argue. Which is exactly why
> cloning XKB is a Bad Idea[tm].
Very good point :^) Still, I want to point out some ways in which out
design has to differ from XKB. As far as I see it, XKB treats on its
lowest level scancodes and transaltes them into keycodes. We don't do
that, because the OS input driver gives us some symbolic event codes
already and we made a strategic decision to rely on OS drivers (well,
the truth is I just suggested to make this decision. But nobody contradicted
me so far. But keep it coming :^)
Then there is the subject of "modifiers". XKB has them for backwards
compatibility, but we don't need backwards compatibility. Not
conceptually, at least. Of course there will be keys - or key
sequences - that work as "modifiers" as expected, but we don't
have a need for mod1-mod5 in the core.
As concerns "levels": From a Unicode point of view, there must be
modifiers that mean "compose" and "change case", because those are
concepts that are in the standard. So a event processor that can produce
"case-able" or "composable" characters should always allow to produce
cased or composed versions of them. So our take slightly differs from
XKB's here.
The "group" concept is useful, the question is how to support it.
An obvious way is to define an event that signals to swap the event
processor. But it could also be a sequence that is handled internally
by the EP. Maybe the second method should be the rule and the first
a kind of contigency plan.
The way to support all the effort that went into XKB is to figure
out how to build pluggable event processors from XKB keymap rules.
But IMO this has not much to do with the basic design of our Input
Event Manager.
Regards,
Rupert
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved