|
|
Hi all
During some discussions at #ui-review, there appeared a new idea
regarding the xkb meta-info (namely base.xml file). The point is provide
the vendor information for the keyboards - so UI utilities would be able
to group them by the vendor. This requires some enhancement of the xml
format. I offer very simple idea: add the "vendorList" tag (and
something inside it):
<vendorList>
<vendor>
<configItem>
<name>general</name>
<description>General</description>
<description xml:lang="ru">Стандартные</description>
</configItem>
</vendor>
<vendor>
<configItem>
<name>logitech</name>
<description>Logitech</description>
</configItem>
</vendor>
...
</vendorList>
Also, the <model> tag would get the "vendor" attribude pointing to the
vendor's id:
<model vendor="general">
<configItem>
<name>pc101</name>
<description>Generic 101-key PC</description>
</configItem>
</model>
Sure, for the compatibility reasons, this <vendorList> is optional -
same about the "vendor" attribute.
Also (another, not related thing) - would it make sense to add
attributes like usb id to the vendor and to the model? This could help
hotplug scripts to detect and setup the correct keyboard (I know,
currently X does not support this - but why not think about the
future?).
For example:
<vendor>
<configItem>
<name>microsoft</name>
<description>Microsoft</description>
<busId bus="usb">045e</busId>
</configItem>
</vendor>
...
<model vendor="microsoft">
<configItem>
...
<description>Natural Keyboard Pro</description>
<busId bus="usb">001d</busId>
</configItem>
</model>
What do you think, folks?
As you can see, I am trying to bind all the things into <configItem> -
probably I am wrong. If you thinkg we should make our XML more complex
and less uniform - feel free to argue.
Cheers,
Sergey
|
|