[Y-devel] keyboard layouts (continued)

Alexey Boyko smartly at gala.net
Sun Feb 29 18:00:34 GMT 2004


> https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=KeybrdDesi
>gn
>
> If giving the hints was the only problem, we could simply generate a second
> type of event that contains only intermediate characters. The application
> could choose to ignore them, because the actual string of characters would
> always be sent later anyway. Or it could use the information to give visual
> feedback to the user.

I think the same.

> Unfortunately, that still leaves the problem that it is not always possible
> to display intermediate characters in the font being used even though the
> combined character is valid.

I believe, there will be free font with mostly all characters.

> What do you think is the best approach? Sending modifier events separately
> or sending a modifier state along with normal keys that are pressed?

For character entering better sending modifier state with keys. But some 
programs may want to react on modifiers key pressing.

> Let's call the physical location of the q key on a qwerty and the a on an
> azerty VK_TOPLEFTLETTER. Let's also assume the location of the q on azerty
> generates VK_LEFTCENTERLETTER.

if virtual keys will have names like VK_TOPLEFTLETTER, how applications will 
parse strings like "Ctrl+C DoCopy"? where they find, that 'C' have virtual 
key VK_SOMEWHEREINBOTTOM? ;)

...

May be I badly explains, but I have two convertion maps. First in keyboard 
driver (keymap), second in character module (charmap).

key layout (qwerty/azerty) is described as keymap in keyboard driver, so 
topleft key on qwerty keyboard will be converted to VK_q (with code 113), and 
on azerty it will be VK_a (code 97).

Shortcuts will bound to output of keyboard driver after such conversion.

Next, virtual keys will be processed by character tree in character module. 
For latin only languages charmap will be simple:
a->a
b->b
c->c
...
z->z
A->A
...
Z->Z

but more complex for other languages. 

Naturally, I looks on that from my own belltower. May be this two maps must be 
in one file, because they probably changed synchronously. May be we must have 
another data flow model.


> 2) You express shortcuts in the characters that are output, which is keymap
>    dependent, so you would have a set of shortcuts for each keymap you use.
>    Result: You can switch between Cyrillic and QWERTY as long as you have
>            two shortcuts (ctrl + arch with slash = quit) and (ctrl + q =
> quit).

What is "arch with slash"? ;) On 'q' key I have cyrillic_short_i letter: 'й';

> Didn't someone mention 1 keymap per focus? I think there should be 1 keymap
> and 1 input tree state per focusable object.

Agreed. Under widget I means focusable object.

> You wouldn't mind if the shortcuts were bound to both letters on the same
> key. For all you know that is already the case ;)

In russian Microsoft Word shortcuts in menu changed accordingly to current 
layout. Ctrl+S (Save) in latin mode, and Ctrl+ы in russian mode. ;))
But I think it is profusion.

I used two cyrillic letters in this mail. Mail is in utf-8 encoding.




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved