In-client echo of input methods?
microcai
microcai at fedoraproject.org
Tue Aug 14 23:22:49 PDT 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2012年08月15日 08:45, Bill Spitzak wrote:
> Does the proposed input methods support clients being able to show intermediate results? This is
certainly useful to make "dead keys" less "dead", and I am under the
impression that it is very useful for some Asian entry systems.
>
> X11 tried to do this with an input-method-controlled overlay, but this
was incredibly complex and messy and did not really work. I think
however that the clients can draw this, and often it will be trivial to
support it.
>
> Assuming there is an input method doing compose-key, here is what I
would expect to happen if the user types compose,a,e to make æ:
>
> 1. User presses & releases compose key.
>
> 2. User types 'a'. Input method then sends 'a' to the client. Client
inserts it into the text as though the user typed it, but remembers it
came from the input method. This gives the user a preview of what they
typed, which I have found to be much better than normal "dead key" behavior.
>
> 3. User types 'e'. Input method sends a message to replace the
previous input with 'æ'. The client then deletes the 'a' and inserts the
'æ'.
>
> If at step 3 the user typed 'x' (and assuming ax is not a compose
sequence) the input method could then choose how to handle the error:
>
> 1. Input method says to also insert an 'x', resulting in "ax" (my
preference).
>
> 2. Input method says to replace the previous input with 'x'.
>
> 3. Input method says to replace the previous input with nothing
(matching what X11 compose key does).
>
> Is there anything like this in wayland's input method design?
I hate to have IM server. better just have IM as lib that client link to
or do dymanic load. It's up to the client to interpret the key stroke.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJQK0A5AAoJEKT4Uz7oTANZI7MH/i1jfXBUB3/fztOMxT+o68HZ
3MBEJ0lxkeDeEXxY+6OkQ8WF5aRgkUTxv+A4QpDU3C2dOgqQv74wTDQ2mK3UKYHi
0A7C8T2rAOtcTcIzClTzJQBakCVM7DVKyO/oUeuOTkXzKUJBfFvuGOmUMks9wRTW
jF29kWHI9tB/CyYQZjJDaSgQ2fY4fg3uyzSuhULAxGFpFCcu7s68R3ZFgkcXfNZB
Waaih0/nJSO9VZGiTMKx1E1cZQfzcKKE5nYVTFzVg9yjlj/T/nOkq8tLUVWaPyja
WI+XDwec/9uMxhdxiZwFPM7WHDspnIjHNdwdJbM832B0u5VeyYYS+kY0PMJmYSI=
=90CL
-----END PGP SIGNATURE-----
More information about the wayland-devel
mailing list