On 11.04.2009 15:53, Timo Juhani Lindfors wrote:
bear in mind that I do not have a physical keyboard at all.

Nevertheless, the behavior of xte (i.e. the set of supported characters) depends on the current keyboard layout. From the debug log I guess that in your case it's the Finnish layout, where the @ character is AltGr+2. Unfortunately, this does not work in the current version of xte (see my previous message). The patch I have submitted should fix that.

If you want to try it you can get the patched version at:
http://www.steinacher.info/temp/xautomation-1.02-special_chars_patch.tar.gz (source code)
http://www.steinacher.info/temp/xte (binary compiled for Debian Lenny)

As a temporary workaround you could try to configure a different keyboard layout. With the US layout, for example, the @-sign will work. However, other characters will stop working if you switch the keyboard layout (e.g. ö or ä).


>> complicated key sequence (e.g. involving Multi_key). A workaround is
>> specifying the key sequence explicitly:
>
> This is bit tricky since I need to figure out how to convert clipboard
> contents into a sequence of str and keydown events to be able to
> "paste" it using xte.

With my patch, all characters that can be typed with any combination of Shift + AltGr + any key of the current keyboard layout will work. However, if your application should be able to paste any text, this is not sufficient, because in order to type characters like ï or ŭ most keyboard layouts require the use of the compose key (Multi_key) plus a sequence of two characters. As I have pointed out in the previous message, one would have to look up the corresponding key sequence somewhere (eg. in /usr/share/X11/locale/en_US.UTF-8/Compose) to implement this (either in your program or in xte).

Cheers,
Marco



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to